Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions PWGUD/TableProducer/DGCandProducer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -217,13 +217,13 @@ struct DGCandProducer {
registry.add("reco/fddA", "FDDA amplitudes", {HistType::kTH2F, {{20001, -0.5, 20000.5}, {13, -0.5, 12.5}}});
registry.add("reco/fddC", "FDDC amplitudes", {HistType::kTH2F, {{20001, -0.5, 20000.5}, {13, -0.5, 12.5}}});

std::string labels[nXbinsInStatH] = {"all","hasBC","selected","FITveto","MID trk","global PV trk","not global PB trk",
"ITS-only PV trk","TOF PV trk fraction","n PV trks","PID","pt","eta","net charge",
"inv mass","TF border","no pile-up","ITSROF","z-vtx","ITSTPC vtx","","","","",""};
std::string labels[nXbinsInStatH] = {"all", "hasBC", "selected", "FITveto", "MID trk", "global PV trk", "not global PB trk",
"ITS-only PV trk", "TOF PV trk fraction", "n PV trks", "PID", "pt", "eta", "net charge",
"inv mass", "TF border", "no pile-up", "ITSROF", "z-vtx", "ITSTPC vtx", "", "", "", "", ""};

registry.get<TH1>(HIST("reco/Stat"))->SetNdivisions(nXbinsInStatH,"X");
for (int iXbin(1); iXbin < nXbinsInStatH+1; iXbin++){
registry.get<TH1>(HIST("reco/Stat"))->GetXaxis()->ChangeLabel(iXbin,45,0.03,33,-1,-1,labels[iXbin-1]);
registry.get<TH1>(HIST("reco/Stat"))->SetNdivisions(nXbinsInStatH, "X");
for (int iXbin(1); iXbin < nXbinsInStatH + 1; iXbin++) {
registry.get<TH1>(HIST("reco/Stat"))->GetXaxis()->ChangeLabel(iXbin, 45, 0.03, 33, -1, -1, labels[iXbin - 1]);
}

LOGF(debug, "<DGCandProducer> end of init reached");
Expand Down