Skip to content

Commit 8c168fe

Browse files
authored
Centrality work towards vertex-Z profiles for CCDB (#4983)
1 parent b109c1c commit 8c168fe

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Analysis/Tasks/multiplicityQa.cxx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@
77
// In applying this license CERN does not waive the privileges and immunities
88
// granted to it by virtue of its status as an Intergovernmental Organization
99
// or submit itself to any jurisdiction.
10+
//
11+
// This code calculates output histograms for centrality calibration
12+
// as well as vertex-Z dependencies of raw variables (either for calibration
13+
// of vtx-Z dependencies or for the calibration of those).
14+
//
15+
// This task is not strictly necessary in a typical analysis workflow,
16+
// except for centrality calibration! The necessary task is the multiplicity
17+
// tables.
18+
1019
#include "Framework/runDataProcessing.h"
1120
#include "Framework/AnalysisTask.h"
1221
#include "Framework/AnalysisDataModel.h"
@@ -25,6 +34,12 @@ struct MultiplicityQaTask {
2534
OutputObj<TH1F> hMultZNC{TH1F("hMultZNC", "", 600, 0., 240000.)};
2635
OutputObj<TH2F> hMultV0MvsT0M{TH2F("hMultV0MvsT0M", ";V0M;T0M", 200, 0., 50000., 200, 0., 200000.)};
2736

37+
//For vertex-Z corrections
38+
OutputObj<TProfile> hVtxProfV0M{TProfile("hVtxProfV0M", "", 600, 0., 240000.)};
39+
OutputObj<TProfile> hVtxProfT0M{TProfile("hVtxProfT0M", "", 10000, 0., 200000.)};
40+
OutputObj<TProfile> hVtxProfZNA{TProfile("hVtxProfZNA", "", 600, 0., 240000.)};
41+
OutputObj<TProfile> hVtxProfZNC{TProfile("hVtxProfZNC", "", 600, 0., 240000.)};
42+
2843
OutputObj<TProfile> hMultNtrackletsVsV0M{TProfile("hMultNtrackletsVsV0M", "", 50000, 0., 50000.)};
2944

3045
Configurable<bool> isMC{"isMC", 0, "0 - data, 1 - MC"};
@@ -56,6 +71,12 @@ struct MultiplicityQaTask {
5671
hMultZNC->Fill(col.multZNC());
5772
hMultV0MvsT0M->Fill(col.multV0M(), col.multT0M());
5873
hMultNtrackletsVsV0M->Fill(col.multV0M(), col.multTracklets());
74+
75+
//Vertex-Z dependencies
76+
hVtxProfV0M->Fill(col.posZ(), col.multV0M());
77+
hVtxProfT0M->Fill(col.posZ(), col.multT0M());
78+
hVtxProfZNA->Fill(col.posZ(), col.multZNA());
79+
hVtxProfZNC->Fill(col.posZ(), col.multZNC());
5980
}
6081
};
6182

0 commit comments

Comments
 (0)