Skip to content

Commit d2c9eed

Browse files
committed
Added BC/AC histograms and changed config names
1 parent 07535ad commit d2c9eed

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

PWGLF/Tasks/Resonances/f0980pbpbanalysis.cxx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include <cmath>
2222
#include <cstdlib>
2323
// #include <iostream>
24+
#include <iostream>
2425
#include <memory>
2526
#include <string>
2627
#include <vector>
@@ -597,7 +598,7 @@ struct F0980pbpbanalysis {
597598
if (cfgPhiDeepAngleSel && !pairAngleSelection(trk1, trk2)) {
598599
continue;
599600
}
600-
601+
601602
pion1 = ROOT::Math::PxPyPzMVector(trk1.px(), trk1.py(), trk1.pz(), massPtl);
602603
pion2 = ROOT::Math::PxPyPzMVector(trk2.px(), trk2.py(), trk2.pz(), massPtl);
603604
reco = pion1 + pion2;
@@ -694,12 +695,14 @@ struct F0980pbpbanalysis {
694695

695696
void processOnce(EventCandidatesOrigin const& events)
696697
{
697-
nTotalEvents += events.size();
698-
auto hTotalEvents = histos.get<TH1>(HIST("EventQA/hnEvents"));
699-
if (hTotalEvents)
700-
hTotalEvents->SetBinContent(1, static_cast<double>(nTotalEvents));
701-
// std::cout << "Total number of events processed: " << nTotalEvents << std::endl;
702-
}
698+
if (cfgQAEventCut) {
699+
nTotalEvents += events.size();
700+
auto hTotalEvents = histos.get<TH1>(HIST("EventQA/hnEvents"));
701+
if (hTotalEvents)
702+
hTotalEvents->SetBinContent(1, static_cast<double>(nTotalEvents));
703+
// std::cout << "Total number of events processed: " << nTotalEvents << std::endl;
704+
}
705+
}
703706
PROCESS_SWITCH(F0980pbpbanalysis, processOnce, "fill Total nEvents once", true);
704707

705708
void init(o2::framework::InitContext&)

0 commit comments

Comments
 (0)