Skip to content

Commit 11e53ac

Browse files
authored
Add configuration for FT0C centrality and update joins
1 parent 4b85dad commit 11e53ac

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

‎PWGCF/EbyEFluctuations/Tasks/meanPtFlucId.cxx‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ struct MeanPtFlucId {
9898
Configurable<float> cfgP1corr{"cfgP1corr", 0.0001, "p_{1} for corrected N_{TPC} "};
9999
Configurable<float> cfgP2corr{"cfgP2corr", 0.0001, "p_{2} for corrected N_{TPC} "};
100100
Configurable<bool> cfgSel8{"cfgSel8", true, "Sel8 trigger"};
101+
Configurable<bool> cfgCentFT0C{"cfgCentFT0C", false, "Use FT0C for centrality instead of FT0M"};
101102
Configurable<bool> cfgNoSameBunchPileup{"cfgNoSameBunchPileup", true, "kNoSameBunchPileup"};
102103
Configurable<bool> cfgIsVertexITSTPC{"cfgIsVertexITSTPC", true, "kIsVertexITSTPC"};
103104
Configurable<bool> cfgLightIonCuts{"cfgLightIonCuts", false, "Light Ion Cuts"};
@@ -599,8 +600,11 @@ struct MeanPtFlucId {
599600
template <typename T>
600601
bool selRun3Col(T const& col)
601602
{
602-
603-
centFT0M = col.centFT0M();
603+
if (cfgCentFT0C) {
604+
centFT0M = col.centFT0C();
605+
} else {
606+
centFT0M = col.centFT0M();
607+
}
604608
nTPC = col.multNTracksHasTPC();
605609
nFT0M = col.multFT0M();
606610
hist.fill(HIST("QA/after/h_counts_evSelCuts"), kBeforeSelCol);
@@ -1447,8 +1451,8 @@ struct MeanPtFlucId {
14471451
aod::pidTOFFullPi, aod::pidTPCFullPi, aod::pidTOFFullPr, aod::pidTPCFullPr,
14481452
aod::pidTOFFullKa, aod::pidTPCFullKa, aod::pidTOFFullEl, aod::pidTPCFullEl,
14491453
aod::pidTOFbeta, aod::pidTOFmass>;
1450-
using MyRun3Collisions = soa::Join<aod::Collisions, aod::EvSels, aod::Mults, aod::MultsExtra, aod::CentFT0Ms>;
1451-
using MyRun3MCCollisions = soa::Join<aod::Collisions, aod::EvSels, aod::Mults, aod::MultsExtra, aod::CentFT0Ms, aod::McCollisionLabels>;
1454+
using MyRun3Collisions = soa::Join<aod::Collisions, aod::EvSels, aod::Mults, aod::MultsExtra, aod::CentFT0Ms, aod::CentFT0Cs>;
1455+
using MyRun3MCCollisions = soa::Join<aod::Collisions, aod::EvSels, aod::Mults, aod::MultsExtra, aod::CentFT0Ms, aod::CentFT0Cs, aod::McCollisionLabels>;
14521456
using MyMCTracks = soa::Join<aod::Tracks, aod::TrackSelection, aod::TracksExtra, aod::TracksDCA,
14531457
aod::pidTOFFullPi, aod::pidTPCFullPi, aod::pidTOFFullPr, aod::pidTPCFullPr,
14541458
aod::pidTOFFullKa, aod::pidTPCFullKa, aod::pidTOFFullEl, aod::pidTPCFullEl,

0 commit comments

Comments
 (0)