Skip to content

Commit 9c18f17

Browse files
adding extra histograms for PbPb
1 parent 8aeef94 commit 9c18f17

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Common/TableProducer/eventSelection.cxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,6 +1198,7 @@ struct LumiTask {
11981198
void init(InitContext&)
11991199
{
12001200
histos.add("hCounterTVX", "", kTH1D, {{1, 0., 1.}});
1201+
histos.add("hCounterTVXZDC", "", kTH1D, {{1, 0., 1.}});
12011202
histos.add("hCounterTCE", "", kTH1D, {{1, 0., 1.}});
12021203
histos.add("hCounterZEM", "", kTH1D, {{1, 0., 1.}});
12031204
histos.add("hCounterZNC", "", kTH1D, {{1, 0., 1.}});
@@ -1401,6 +1402,7 @@ struct LumiTask {
14011402
bool isTriggerZNA = TESTBIT(selection, kIsBBZNA);
14021403
bool isTriggerZNC = TESTBIT(selection, kIsBBZNC);
14031404
bool isTriggerZEM = isTriggerZNA || isTriggerZNC;
1405+
bool isTriggerHAD = isTriggerTVX && isTriggerZNA && isTriggerZNC;
14041406

14051407
// determine pileup correction
14061408
int64_t orbit = bc.globalBC() / nBCsPerOrbit;
@@ -1428,6 +1430,9 @@ struct LumiTask {
14281430
if (isTriggerTVX) {
14291431
histos.get<TH1>(HIST("hCounterTVX"))->Fill(srun, 1);
14301432
histos.get<TH1>(HIST("hLumiTVX"))->Fill(srun, lumiTVX);
1433+
if (isTriggerZNA && isTriggerZNC) {
1434+
histos.get<TH1>(HIST("hCounterTVXZDC"))->Fill(srun, 1);
1435+
}
14311436
if (noBorder) {
14321437
histos.get<TH1>(HIST("hCounterTVXafterBCcuts"))->Fill(srun, 1);
14331438
histos.get<TH1>(HIST("hLumiTVXafterBCcuts"))->Fill(srun, lumiTVX);

Common/Tools/EventSelectionModule.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1554,6 +1554,7 @@ class LumiModule
15541554
}
15551555

15561556
histos.add("luminosity/hCounterTVX", "", framework::kTH1D, {{1, 0., 1.}});
1557+
histos.add("luminosity/hCounterTVXZDC", "", framework::kTH1D, {{1, 0., 1.}});
15571558
histos.add("luminosity/hCounterTCE", "", framework::kTH1D, {{1, 0., 1.}});
15581559
histos.add("luminosity/hCounterZEM", "", framework::kTH1D, {{1, 0., 1.}});
15591560
histos.add("luminosity/hCounterZNC", "", framework::kTH1D, {{1, 0., 1.}});
@@ -1803,6 +1804,9 @@ class LumiModule
18031804
if (isTriggerTVX) {
18041805
histos.template get<TH1>(HIST("luminosity/hCounterTVX"))->Fill(srun, 1);
18051806
histos.template get<TH1>(HIST("luminosity/hLumiTVX"))->Fill(srun, lumiTVX);
1807+
if (isTriggerZNA && isTriggerZNC) {
1808+
histos.template get<TH1>(HIST("luminosity/hCounterTVXZDC"))->Fill(srun, 1);
1809+
}
18061810
if (noBorder) {
18071811
histos.template get<TH1>(HIST("luminosity/hCounterTVXafterBCcuts"))->Fill(srun, 1);
18081812
histos.template get<TH1>(HIST("luminosity/hLumiTVXafterBCcuts"))->Fill(srun, lumiTVX);

0 commit comments

Comments
 (0)