4242void CheckClustersITS3 (const std ::string & clusfile = "o2clus_its.root" ,
4343 const std ::string & hitfile = "o2sim_HitsIT3.root" ,
4444 const std ::string & inputGeom = "" ,
45- std ::string dictfile = ".. /ccdb/IT3/Calib/ClusterDictionary/snapshot.root" ,
45+ std ::string dictfile = "./ccdb/IT3/Calib/ClusterDictionary/snapshot.root" ,
4646 bool batch = false)
4747{
4848 gROOT -> SetBatch (batch );
@@ -63,7 +63,8 @@ void CheckClustersITS3(const std::string& clusfile = "o2clus_its.root",
6363 std ::vector < HitVec * > hitVecPool ;
6464 std ::vector < MC2HITS_map > mc2hitVec ;
6565
66- ULong_t cPattValid {0 }, cPattInvalid {0 }, cLabelInvalid {0 }, cNoMC {0 };
66+ ULong_t cPattValidIB {0 }, cPattInvalidIB {0 }, cLabelInvalidIB {0 }, cNoMCIB {0 };
67+ ULong_t cPattValidOB {0 }, cPattInvalidOB {0 }, cLabelInvalidOB {0 }, cNoMCOB {0 };
6768
6869 TFile fout ("CheckClusters.root" , "recreate" );
6970 TNtuple nt ("ntc" , "cluster ntuple" , "ev:lab:hlx:hlz:hgx:hgz:tx:tz:cgx:cgy:cgz:clx:cly:clz:dx:dy:dz:ex:ez:patid:rof:npx:id:eta:row:col:lay" );
@@ -103,6 +104,7 @@ void CheckClustersITS3(const std::string& clusfile = "o2clus_its.root",
103104 } else {
104105 LOG (info ) << "Running without dictionary !" ;
105106 }
107+ dict .print ();
106108
107109 // ROFrecords
108110 std ::vector < ROFRec > rofRecVec , * rofRecVecP = & rofRecVec ;
@@ -179,22 +181,22 @@ void CheckClustersITS3(const std::string& clusfile = "o2clus_its.root",
179181 o2 ::itsmft ::ClusterPattern patt (pattIt );
180182 locC = dict .getClusterCoordinates (cluster , patt , false);
181183 LOGP (debug , "I am invalid and I am on chip {}" , chipID );
182- ++ cPattInvalid ;
184+ ( isIB ) ? ++ cPattInvalidIB : ++ cPattInvalidOB ;
183185 continue ;
184186 } else {
185187 locC = dict .getClusterCoordinates (cluster );
186188 errX = dict .getErrX (pattID , isIB );
187189 errZ = dict .getErrZ (pattID , isIB );
188190 npix = dict .getNpixels (pattID , isIB );
189- ++ cPattValid ;
191+ ( isIB ) ? ++ cPattValidIB : ++ cPattValidOB ;
190192 }
191193
192194 // Transformation to the local --> global
193195 auto gloC = gman -> getMatrixL2G (chipID )(locC );
194196 const auto& lab = (clusLabArr -> getLabels (clEntry ))[0 ];
195197
196198 if (!lab .isValid ()) {
197- ++ cLabelInvalid ;
199+ ( isIB ) ? ++ cLabelInvalidIB : ++ cLabelInvalidOB ;
198200 continue ;
199201 }
200202
@@ -206,7 +208,7 @@ void CheckClustersITS3(const std::string& clusfile = "o2clus_its.root",
206208 auto hitEntry = mc2hit .find (key );
207209 if (hitEntry == mc2hit .end ()) {
208210 LOG (debug ) << "Failed to find MC hit entry for Tr" << trID << " chipID" << chipID ;
209- ++ cNoMC ;
211+ ( isIB ) ? ++ cNoMCIB : ++ cNoMCOB ;
210212 continue ;
211213 }
212214 const auto& hit = (* hitArray )[hitEntry -> second ];
@@ -261,8 +263,10 @@ void CheckClustersITS3(const std::string& clusfile = "o2clus_its.root",
261263 }
262264 }
263265
264- LOGP (info , "There were {} valid PatternIDs and {} ({:.1f}%) invalid ones" , cPattValid , cPattInvalid , ((float )cPattInvalid / (float )(cPattInvalid + cPattValid )) * 100 );
265- LOGP (info , "There were {} invalid Labels and {} with No MC Hit information " , cLabelInvalid , cNoMC );
266+ LOGP (info , "IB {} valid PatternIDs and {} ({:.1f}%) invalid ones" , cPattValidIB , cPattInvalidIB , ((float )cPattInvalidIB / (float )(cPattInvalidIB + cPattValidIB )) * 100 );
267+ LOGP (info , "IB {} invalid Labels and {} with No MC Hit information " , cLabelInvalidIB , cNoMCIB );
268+ LOGP (info , "OB {} valid PatternIDs and {} ({:.1f}%) invalid ones" , cPattValidOB , cPattInvalidOB , ((float )cPattInvalidOB / (float )(cPattInvalidOB + cPattValidOB )) * 100 );
269+ LOGP (info , "OB {} invalid Labels and {} with No MC Hit information " , cLabelInvalidOB , cNoMCOB );
266270
267271 auto canvCgXCgY = new TCanvas ("canvCgXCgY" , "" , 1600 , 1600 );
268272 canvCgXCgY -> Divide (2 , 2 );
0 commit comments