Skip to content

Commit 61b53d5

Browse files
committed
ITS3: macro
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent 0939a9c commit 61b53d5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Detectors/Upgrades/ITS3/macros/test/CompareClustersAndDigits.C

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ struct Data {
7272
}
7373
};
7474

75-
void CompareClustersAndDigits(std::string clusfile = "o2clus_it3.root",
75+
void CompareClustersAndDigits(std::string clusfile = "o2clus_its.root",
7676
std::string digifile = "it3digits.root",
77-
std::string dictfile = "IT3dictionary.root",
77+
std::string dictfile = "../ccdb/IT3/Calib/ClusterDictionary/snapshot.root",
7878
std::string hitfile = "o2sim_HitsIT3.root",
7979
std::string inputGeom = "o2sim_geometry.root",
8080
bool batch = true)
@@ -274,7 +274,7 @@ void CompareClustersAndDigits(std::string clusfile = "o2clus_it3.root",
274274
uint64_t key = (uint64_t(trID) << 32) + chipID;
275275
auto hitEntry = mc2hit.find(key);
276276
if (hitEntry == mc2hit.end()) {
277-
LOG(error) << "Failed to find MC hit entry for Tr" << trID << " chipID" << chipID;
277+
LOG(debug) << "Failed to find MC hit entry for Tr" << trID << " chipID" << chipID;
278278
continue;
279279
}
280280
auto locC = dict.getClusterCoordinates(cluster);
@@ -341,7 +341,6 @@ void CompareClustersAndDigits(std::string clusfile = "o2clus_it3.root",
341341
auto& dat = data[iChip];
342342
gFile->cd();
343343
auto path = gman->getMatrixPath(iChip);
344-
/*TString path; // TODO wrong use above*/
345344
const std::string cpath{path.Data() + 39, path.Data() + path.Length()};
346345
const std::filesystem::path p{cpath};
347346
if (oFile->mkdir(p.parent_path().c_str(), "", true) == nullptr) {
@@ -374,7 +373,8 @@ void CompareClustersAndDigits(std::string clusfile = "o2clus_it3.root",
374373
}
375374

376375
dat.leg->Draw();
377-
canv->SetEditable(false);
376+
canv->Update();
377+
/*canv->SetEditable(false);*/
378378

379379
gDirectory->WriteTObject(canv);
380380
dat.clear();

0 commit comments

Comments
 (0)