@@ -24,8 +24,9 @@ using namespace o2::its;
2424
2525std::string TrackingParameters::asString () const
2626{
27- std::string str = std::format (" NZb:{} NPhB:{} PerVtx:{} DropFail:{} ClSh:{} TtklMinPt:{:.2f} MinCl:{} MaxHoles:{} HoleMask:{:#x}" ,
28- ZBins, PhiBins, PerPrimaryVertexProcessing, DropTFUponFailure, ClusterSharing, TrackletMinPt, MinTrackLength, MaxHoles, HoleLayerMask);
27+ std::string str = std::format (" NZb:{} NPhB:{} PerVtx:{} DropFail:{} TtklMinPt:{:.2f} MinCl:{}" , ZBins, PhiBins, PerPrimaryVertexProcessing, DropTFUponFailure, TrackletMinPt, MinTrackLength);
28+ auto isSet = [](auto e) { return e >= 0 ; };
29+ auto isAnySet = [&isSet](auto v) { return !v.empty () && std::any_of (v.begin (), v.end (), isSet); };
2930 bool first = true ;
3031 for (int il = NLayers; il >= MinTrackLength; il--) {
3132 int slot = NLayers - il;
@@ -37,18 +38,27 @@ std::string TrackingParameters::asString() const
3738 str += std::format (" L{}:{:.2f} " , il, MinPt[slot]);
3839 }
3940 }
40- if (!SystErrorY2. empty ( ) || !SystErrorZ2. empty ( )) {
41+ if (isAnySet (SystErrorY2 ) || isAnySet (SystErrorZ2 )) {
4142 str += " SystErrY/Z:" ;
4243 for (size_t i = 0 ; i < SystErrorY2.size (); i++) {
4344 str += std::format (" {:.2e}/{:.2e} " , SystErrorY2[i], SystErrorZ2[i]);
4445 }
4546 }
46- if (!AddTimeError. empty ( )) {
47+ if (isAnySet (AddTimeError )) {
4748 str += " AddTimeError:" ;
4849 for (unsigned int i : AddTimeError) {
4950 str += std::format (" {} " , i);
5051 }
5152 }
53+ if (SharedMaxClusters) {
54+ str += std::format (" ShaMaxCls:{} " , SharedMaxClusters);
55+ }
56+ if (AllowSharingFirstCluster) {
57+ str += std::format (" ShaClsDPhi:{} ShaClsDEta:{} ShaClsSign:{}" , SharedClusterMaxDeltaPhi, SharedClusterMaxDeltaEta, SharedClusterOppositeSign);
58+ }
59+ if (MaxHoles) {
60+ str += std::format (" MaxHoles:{} HoleMask:{}" , MaxHoles, HoleLayerMask.asString ());
61+ }
5262 if (std::numeric_limits<size_t >::max () != MaxMemory) {
5363 str += std::format (" MemLimit {:.2f} GB" , double (MaxMemory) / constants::GB);
5464 }
0 commit comments