Skip to content

Commit 56df3a0

Browse files
DelloStrittoLuigi Dello Stritto
andauthored
PWGHF: add histo for mult/cent normalization (#6898)
* PWGHF: add histo for mult/cent normalization * fix name histo --------- Co-authored-by: Luigi Dello Stritto <ldellost@alicecerno2.cern.ch>
1 parent fbce4c7 commit 56df3a0

7 files changed

Lines changed: 21 additions & 18 deletions

PWGHF/TableProducer/candidateCreator2Prong.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ struct HfCandidateCreator2Prong {
606606
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMask<true, CentralityEstimator::None, aod::BCsWithTimestamps>(collision, centrality, ccdb);
607607

608608
/// monitor the satisfied event selections
609-
hfEvSel.fillHistograms(collision, rejectionMask);
609+
hfEvSel.fillHistograms(collision, rejectionMask, centrality);
610610

611611
} /// end loop over collisions
612612
}
@@ -623,7 +623,7 @@ struct HfCandidateCreator2Prong {
623623
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMask<true, CentralityEstimator::FT0C, aod::BCsWithTimestamps>(collision, centrality, ccdb);
624624

625625
/// monitor the satisfied event selections
626-
hfEvSel.fillHistograms(collision, rejectionMask);
626+
hfEvSel.fillHistograms(collision, rejectionMask, centrality);
627627

628628
} /// end loop over collisions
629629
}
@@ -640,7 +640,7 @@ struct HfCandidateCreator2Prong {
640640
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMask<true, CentralityEstimator::FT0M, aod::BCsWithTimestamps>(collision, centrality, ccdb);
641641

642642
/// monitor the satisfied event selections
643-
hfEvSel.fillHistograms(collision, rejectionMask);
643+
hfEvSel.fillHistograms(collision, rejectionMask, centrality);
644644

645645
} /// end loop over collisions
646646
}

PWGHF/TableProducer/candidateCreator3Prong.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ struct HfCandidateCreator3Prong {
406406
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMask<true, CentralityEstimator::None, aod::BCsWithTimestamps>(collision, centrality, ccdb);
407407

408408
/// monitor the satisfied event selections
409-
hfEvSel.fillHistograms(collision, rejectionMask);
409+
hfEvSel.fillHistograms(collision, rejectionMask, centrality);
410410

411411
} /// end loop over collisions
412412
}
@@ -423,7 +423,7 @@ struct HfCandidateCreator3Prong {
423423
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMask<true, CentralityEstimator::FT0C, aod::BCsWithTimestamps>(collision, centrality, ccdb);
424424

425425
/// monitor the satisfied event selections
426-
hfEvSel.fillHistograms(collision, rejectionMask);
426+
hfEvSel.fillHistograms(collision, rejectionMask, centrality);
427427

428428
} /// end loop over collisions
429429
}
@@ -440,7 +440,7 @@ struct HfCandidateCreator3Prong {
440440
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMask<true, CentralityEstimator::FT0M, aod::BCsWithTimestamps>(collision, centrality, ccdb);
441441

442442
/// monitor the satisfied event selections
443-
hfEvSel.fillHistograms(collision, rejectionMask);
443+
hfEvSel.fillHistograms(collision, rejectionMask, centrality);
444444

445445
} /// end loop over collisions
446446
}

PWGHF/TableProducer/candidateCreatorCascade.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ struct HfCandidateCreatorCascade {
384384
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMask<true, CentralityEstimator::None, aod::BCsWithTimestamps>(collision, centrality, ccdb);
385385

386386
/// monitor the satisfied event selections
387-
hfEvSel.fillHistograms(collision, rejectionMask);
387+
hfEvSel.fillHistograms(collision, rejectionMask, centrality);
388388

389389
} /// end loop over collisions
390390
}
@@ -401,7 +401,7 @@ struct HfCandidateCreatorCascade {
401401
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMask<true, CentralityEstimator::FT0C, aod::BCsWithTimestamps>(collision, centrality, ccdb);
402402

403403
/// monitor the satisfied event selections
404-
hfEvSel.fillHistograms(collision, rejectionMask);
404+
hfEvSel.fillHistograms(collision, rejectionMask, centrality);
405405

406406
} /// end loop over collisions
407407
}
@@ -418,7 +418,7 @@ struct HfCandidateCreatorCascade {
418418
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMask<true, CentralityEstimator::FT0M, aod::BCsWithTimestamps>(collision, centrality, ccdb);
419419

420420
/// monitor the satisfied event selections
421-
hfEvSel.fillHistograms(collision, rejectionMask);
421+
hfEvSel.fillHistograms(collision, rejectionMask, centrality);
422422

423423
} /// end loop over collisions
424424
}

PWGHF/TableProducer/candidateCreatorDstar.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ struct HfCandidateCreatorDstar {
454454
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMask<true, CentralityEstimator::None, aod::BCsWithTimestamps>(collision, centrality, ccdb);
455455

456456
/// monitor the satisfied event selections
457-
hfEvSel.fillHistograms(collision, rejectionMask);
457+
hfEvSel.fillHistograms(collision, rejectionMask, centrality);
458458

459459
} /// end loop over collisions
460460
}
@@ -471,7 +471,7 @@ struct HfCandidateCreatorDstar {
471471
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMask<true, CentralityEstimator::FT0C, aod::BCsWithTimestamps>(collision, centrality, ccdb);
472472

473473
/// monitor the satisfied event selections
474-
hfEvSel.fillHistograms(collision, rejectionMask);
474+
hfEvSel.fillHistograms(collision, rejectionMask, centrality);
475475

476476
} /// end loop over collisions
477477
}
@@ -488,7 +488,7 @@ struct HfCandidateCreatorDstar {
488488
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMask<true, CentralityEstimator::FT0M, aod::BCsWithTimestamps>(collision, centrality, ccdb);
489489

490490
/// monitor the satisfied event selections
491-
hfEvSel.fillHistograms(collision, rejectionMask);
491+
hfEvSel.fillHistograms(collision, rejectionMask, centrality);
492492

493493
} /// end loop over collisions
494494
}

PWGHF/TableProducer/candidateCreatorXic0Omegac0.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ struct HfCandidateCreatorXic0Omegac0 {
608608
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMask<true, CentralityEstimator::None, aod::BCsWithTimestamps>(collision, centrality, ccdb);
609609

610610
/// monitor the satisfied event selections
611-
hfEvSel.fillHistograms(collision, rejectionMask);
611+
hfEvSel.fillHistograms(collision, rejectionMask, centrality);
612612

613613
} /// end loop over collisions
614614
}
@@ -625,7 +625,7 @@ struct HfCandidateCreatorXic0Omegac0 {
625625
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMask<true, CentralityEstimator::FT0C, aod::BCsWithTimestamps>(collision, centrality, ccdb);
626626

627627
/// monitor the satisfied event selections
628-
hfEvSel.fillHistograms(collision, rejectionMask);
628+
hfEvSel.fillHistograms(collision, rejectionMask, centrality);
629629

630630
} /// end loop over collisions
631631
}
@@ -642,7 +642,7 @@ struct HfCandidateCreatorXic0Omegac0 {
642642
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMask<true, CentralityEstimator::FT0M, aod::BCsWithTimestamps>(collision, centrality, ccdb);
643643

644644
/// monitor the satisfied event selections
645-
hfEvSel.fillHistograms(collision, rejectionMask);
645+
hfEvSel.fillHistograms(collision, rejectionMask, centrality);
646646

647647
} /// end loop over collisions
648648
}

PWGHF/TableProducer/trackIndexSkimCreator.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ struct HfTrackIndexSkimCreatorTagSelCollisions {
137137
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMask<applyTrigSel, centEstimator, BCs>(collision, centrality, ccdb);
138138

139139
if (fillHistograms) {
140-
hfEvSel.fillHistograms(collision, rejectionMask);
140+
hfEvSel.fillHistograms(collision, rejectionMask, centrality);
141141
// additional centrality histos
142142
if constexpr (centEstimator != o2::hf_centrality::None) {
143143
if (rejectionMask == 0) {

PWGHF/Utils/utilsEvSelHf.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,14 @@ struct HfEventSelection : o2::framework::ConfigurableGroup {
9494

9595
// histogram names
9696
static constexpr char nameHistCollisions[] = "hCollisions";
97+
static constexpr char nameHistSelCollisionsCent[] = "hSelCollisionsCent";
9798
static constexpr char nameHistPosZBeforeEvSel[] = "hPosZBeforeEvSel";
9899
static constexpr char nameHistPosZAfterEvSel[] = "hPosZAfterEvSel";
99100
static constexpr char nameHistPosXAfterEvSel[] = "hPosXAfterEvSel";
100101
static constexpr char nameHistPosYAfterEvSel[] = "hPosYAfterEvSel";
101102
static constexpr char nameHistNumPvContributorsAfterSel[] = "hNumPvContributorsAfterSel";
102103

103-
std::shared_ptr<TH1> hCollisions, hPosZBeforeEvSel, hPosZAfterEvSel, hPosXAfterEvSel, hPosYAfterEvSel, hNumPvContributorsAfterSel;
104+
std::shared_ptr<TH1> hCollisions, hSelCollisionsCent, hPosZBeforeEvSel, hPosZAfterEvSel, hPosXAfterEvSel, hPosYAfterEvSel, hNumPvContributorsAfterSel;
104105

105106
// util to retrieve trigger mask in case of software triggers
106107
Zorro zorro;
@@ -111,6 +112,7 @@ struct HfEventSelection : o2::framework::ConfigurableGroup {
111112
void addHistograms(o2::framework::HistogramRegistry& registry)
112113
{
113114
hCollisions = registry.add<TH1>(nameHistCollisions, "HF event counter;;# of accepted collisions", {o2::framework::HistType::kTH1D, {axisEvents}});
115+
hSelCollisionsCent = registry.add<TH1>(nameHistSelCollisionsCent, "HF event counter;T0M;# of accepted collisions", {o2::framework::HistType::kTH1D, {{100, 0., 100.}}});
114116
hPosZBeforeEvSel = registry.add<TH1>(nameHistPosZBeforeEvSel, "all events;#it{z}_{prim. vtx.} (cm);entries", {o2::framework::HistType::kTH1D, {{400, -20., 20.}}});
115117
hPosZAfterEvSel = registry.add<TH1>(nameHistPosZAfterEvSel, "selected events;#it{z}_{prim. vtx.} (cm);entries", {o2::framework::HistType::kTH1D, {{400, -20., 20.}}});
116118
hPosXAfterEvSel = registry.add<TH1>(nameHistPosXAfterEvSel, "selected events;#it{x}_{prim. vtx.} (cm);entries", {o2::framework::HistType::kTH1D, {{200, -0.5, 0.5}}});
@@ -220,7 +222,7 @@ struct HfEventSelection : o2::framework::ConfigurableGroup {
220222
/// \param collision analysed collision
221223
/// \param rejectionMask bitmask storing the info about which ev. selections are not satisfied by the collision
222224
template <typename Coll>
223-
void fillHistograms(Coll const& collision, const uint16_t rejectionMask)
225+
void fillHistograms(Coll const& collision, const uint16_t rejectionMask, float& centrality)
224226
{
225227
hCollisions->Fill(EventRejection::None);
226228
const float posZ = collision.posZ();
@@ -237,6 +239,7 @@ struct HfEventSelection : o2::framework::ConfigurableGroup {
237239
hPosYAfterEvSel->Fill(collision.posY());
238240
hPosZAfterEvSel->Fill(posZ);
239241
hNumPvContributorsAfterSel->Fill(collision.numContrib());
242+
hSelCollisionsCent->Fill(centrality);
240243
}
241244
};
242245

0 commit comments

Comments
 (0)