Skip to content

Commit 6807285

Browse files
committed
changed occupancy to int and added QA
1 parent 48b09fd commit 6807285

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

PWGJE/DataModel/GammaJetAnalysisTree.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ DECLARE_SOA_COLUMN(Multiplicity, multiplicity, float);
3131
DECLARE_SOA_COLUMN(Centrality, centrality, float);
3232
DECLARE_SOA_COLUMN(Rho, rho, float);
3333
DECLARE_SOA_COLUMN(EventSel, eventSel, uint8_t);
34-
DECLARE_SOA_COLUMN(Occupancy, occupancy, float);
34+
DECLARE_SOA_COLUMN(Occupancy, occupancy, int);
3535
DECLARE_SOA_BITMAP_COLUMN(Alias, alias, 32);
3636
} // namespace gjevent
3737
DECLARE_SOA_TABLE(GjEvents, "AOD", "GJEVENT", o2::soa::Index<>, gjevent::Multiplicity, gjevent::Centrality, gjevent::Rho, gjevent::EventSel, gjevent::Occupancy, gjevent::Alias)

PWGJE/Tasks/gammajettreeproducer.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ struct GammaJetTreeProducer {
102102
const o2Axis m02Axis{100, 0, 3, "m02"};
103103
const o2Axis etaAxis{100, -1, 1, "#eta"};
104104
const o2Axis phiAxis{100, 0 , 2*TMath::Pi(), "#phi"};
105-
105+
const o2Axis occupancyAxis{300, 0, 30000, "occupancy"};
106106
mHistograms.add("clusterE", "Energy of cluster", o2HistType::kTH1F, {energyAxis});
107107
mHistograms.add("trackPt", "pT of track", o2HistType::kTH1F, {ptAxis});
108108
mHistograms.add("chjetPt", "pT of charged jet", o2HistType::kTH1F, {ptAxis});
@@ -111,6 +111,7 @@ struct GammaJetTreeProducer {
111111

112112
// track QA THnSparse
113113
mHistograms.add("trackPtEtaPhi", "Track QA", o2HistType::kTHnSparseF, {ptAxis, etaAxis, phiAxis});
114+
mHistograms.add("trackPtEtaOccupancy", "Track QA vs occupancy", o2HistType::kTHnSparseF, {ptAxis, etaAxis, occupancyAxis});
114115
}
115116

116117
// ---------------------
@@ -217,7 +218,7 @@ struct GammaJetTreeProducer {
217218
collisionMapping[collision.globalIndex()] = eventsTable.lastIndex();
218219

219220
// loop over tracks one time for QA
220-
runTrackQA(tracks);
221+
runTrackQA(collision, tracks);
221222

222223
// loop over clusters
223224
for (auto cluster : clusters) {

0 commit comments

Comments
 (0)