99// granted to it by virtue of its status as an Intergovernmental Organization
1010// or submit itself to any jurisdiction.
1111
12+ #include < format>
13+ #include " ITStracking/Constants.h"
14+
1215#include " ITStracking/Configuration.h"
1316
1417namespace o2 ::its
1518{
19+
1620std::string asString (TrackingMode mode)
1721{
1822 switch (mode) {
@@ -28,9 +32,15 @@ std::string asString(TrackingMode mode)
2832 return " unknown" ;
2933}
3034
35+ std::ostream& operator <<(std::ostream& os, TrackingMode v)
36+ {
37+ os << asString (v);
38+ return os;
39+ }
40+
3141std::string TrackingParameters::asString () const
3242{
33- std::string str = fmt ::format (" NZb:{} NPhB:{} NROFIt:{} PerVtx:{} DropFail:{} ClSh:{} TtklMinPt:{:.2f} MinCl:{}" ,
43+ std::string str = std ::format (" NZb:{} NPhB:{} NROFIt:{} PerVtx:{} DropFail:{} ClSh:{} TtklMinPt:{:.2f} MinCl:{}" ,
3444 ZBins, PhiBins, nROFsPerIterations, PerPrimaryVertexProcessing, DropTFUponFailure, ClusterSharing, TrackletMinPt, MinTrackLength);
3545 bool first = true ;
3646 for (int il = NLayers; il >= MinTrackLength; il--) {
@@ -40,19 +50,22 @@ std::string TrackingParameters::asString() const
4050 first = false ;
4151 str += " MinPt: " ;
4252 }
43- str += fmt ::format (" L{}:{:.2f} " , il, MinPt[slot]);
53+ str += std ::format (" L{}:{:.2f} " , il, MinPt[slot]);
4454 }
4555 }
4656 str += " SystErrY/Z:" ;
4757 for (size_t i = 0 ; i < SystErrorY2.size (); i++) {
48- str += fmt ::format (" {:.2e}/{:.2e} " , SystErrorY2[i], SystErrorZ2[i]);
58+ str += std ::format (" {:.2e}/{:.2e} " , SystErrorY2[i], SystErrorZ2[i]);
4959 }
60+ str += std::format (" MemLimit {:.2f} GB" , double (MaxMemory) / constants::GB);
5061 return str;
5162}
5263
53- std::ostream& operator <<(std::ostream& os, TrackingMode v)
64+ std::string VertexingParameters::asString () const
5465{
55- os << asString (v);
56- return os;
66+ std::string str = std::format (" NZb:{} NPhB:{} DRof:{} ClsCont:{} MaxTrkltCls:{} ZCut:{} PhCut:{}" , ZBins, PhiBins, deltaRof, clusterContributorsCut, maxTrackletsPerCluster, zCut, phiCut);
67+ str += std::format (" MemLimit {:.2f} GB" , double (MaxMemory) / constants::GB);
68+ return str;
5769}
70+
5871} // namespace o2::its
0 commit comments