Skip to content

Commit

Permalink
[PWGLF] Update of occupancy bins (AliceO2Group#9094)
Browse files Browse the repository at this point in the history
Co-authored-by: sarjeeta gami <[email protected]>
  • Loading branch information
sarjeetagami and sarjeeta gami authored Dec 26, 2024
1 parent 5880c77 commit b8923b6
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions PWGLF/Tasks/Resonances/phianalysisrun3_PbPb.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ struct phianalysisrun3_PbPb {
Configurable<float> nsigmaCutCombined{"nsigmaCutCombined", 3.0, "Value of the TOF Nsigma cut"};
Configurable<int> cfgNoMixedEvents{"cfgNoMixedEvents", 5, "Number of mixed events per event"};
Configurable<bool> fillOccupancy{"fillOccupancy", true, "fill Occupancy"};
Configurable<int> cfgOccupancyCut{"cfgOccupancyCut", 2500, "Occupancy cut"};
Configurable<int> cfgOccupancyCut1{"cfgOccupancyCut1", 500, "Occupancy cut"};
Configurable<int> cfgOccupancyCut2{"cfgOccupancyCut2", 1500, "Occupancy cut"};
Configurable<bool> isNoTOF{"isNoTOF", false, "isNoTOF"};
Configurable<bool> additionalEvSel2{"additionalEvSel2", true, "Additional evsel2"};
Configurable<bool> additionalEvSel3{"additionalEvSel3", true, "Additional evsel3"};
Expand All @@ -98,12 +99,10 @@ struct phianalysisrun3_PbPb {
Configurable<bool> avoidsplitrackMC{"avoidsplitrackMC", false, "avoid split track in MC"};
void init(o2::framework::InitContext&)
{
std::vector<double> occupancyBinning = {0.0, 500.0, 1000.0, 1500.0, 2000.0, 3000.0, 4000.0, 5000.0, 50000.0};
AxisSpec occupancyAxis = {occupancyBinning, "Occupancy"};

histos.add("hCentrality", "Centrality distribution", kTH1F, {{200, 0.0, 200.0}});
histos.add("hVtxZ", "Vertex distribution in Z;Z (cm)", kTH1F, {{400, -20.0, 20.0}});
histos.add("hOccupancy", "Occupancy distribution", kTH1F, {occupancyAxis});
histos.add("hOccupancy", "Occupancy distribution", kTH1F, {{500, 0, 50000}});
if (!isMC) {
histos.add("h3PhiInvMassUnlikeSign", "Invariant mass of Phi meson Unlike Sign", kTH3F, {{200, 0.0, 200.0}, {200, 0.0f, 20.0f}, {200, 0.9, 1.1}});
histos.add("h3PhiInvMassMixed", "Invariant mass of Phi meson Mixed", kTH3F, {{200, 0.0, 200.0}, {200, 0.0f, 20.0f}, {200, 0.9, 1.1}});
Expand All @@ -120,6 +119,7 @@ struct phianalysisrun3_PbPb {
histos.add("h1Phimassgen", "Phi meson gen", kTH1F, {{200, 0.9, 1.1}});
histos.add("h1Phimassrec", "Phi meson Rec", kTH1F, {{200, 0.9, 1.1}});
histos.add("h1Phipt", "Phi meson Rec", kTH1F, {{200, 0.0f, 20.0f}});
histos.add("hOccupancy1", "Occupancy distribution", kTH1F, {{500, 0, 50000}});
}

// DCA QA
Expand Down Expand Up @@ -262,8 +262,7 @@ struct phianalysisrun3_PbPb {
return;
}
int occupancy = collision.trackOccupancyInTimeRange();
if (fillOccupancy && occupancy > cfgOccupancyCut) // occupancy info is available for this collision (*)
{
if (fillOccupancy && !(occupancy > cfgOccupancyCut1 && occupancy < cfgOccupancyCut2)) {
return;
}
float multiplicity{-1};
Expand Down Expand Up @@ -344,8 +343,10 @@ struct phianalysisrun3_PbPb {
}
int occupancy1 = c1.trackOccupancyInTimeRange();
int occupancy2 = c2.trackOccupancyInTimeRange();
if (fillOccupancy && occupancy1 > cfgOccupancyCut && occupancy2 > cfgOccupancyCut) // occupancy info is available for this collision (*)
{
if (fillOccupancy && !(occupancy1 > cfgOccupancyCut1 && occupancy1 < cfgOccupancyCut2)) {
return;
}
if (fillOccupancy && !(occupancy2 > cfgOccupancyCut1 && occupancy2 < cfgOccupancyCut2)) {
return;
}
float multiplicity;
Expand Down Expand Up @@ -400,8 +401,7 @@ struct phianalysisrun3_PbPb {
continue;
}
int occupancy = RecCollision.trackOccupancyInTimeRange();
if (fillOccupancy && occupancy > cfgOccupancyCut) // occupancy info is available for this collision (*)
{
if (fillOccupancy && !(occupancy > cfgOccupancyCut1 && occupancy < cfgOccupancyCut2)) {
return;
}
if (TMath::Abs(RecCollision.posZ()) > cfgCutVertex) {
Expand Down Expand Up @@ -582,10 +582,10 @@ struct phianalysisrun3_PbPb {
continue;
}
int occupancy = collision.trackOccupancyInTimeRange();
if (fillOccupancy && occupancy > cfgOccupancyCut) // occupancy info is available for this collision (*)
{
continue;
if (fillOccupancy && !(occupancy > cfgOccupancyCut1 && occupancy < cfgOccupancyCut2)) {
return;
}
histos.fill(HIST("hOccupancy1"), occupancy);
multiplicity = collision.centFT0C();
histos.fill(HIST("Centgen"), multiplicity);
SelectedEvents[nevts++] = collision.mcCollision_as<aod::McCollisions>().globalIndex();
Expand Down Expand Up @@ -636,8 +636,7 @@ struct phianalysisrun3_PbPb {
return;
}
int occupancy = collision.trackOccupancyInTimeRange();
if (fillOccupancy && occupancy > cfgOccupancyCut) // occupancy info is available for this collision (*)
{
if (fillOccupancy && !(occupancy > cfgOccupancyCut1 && occupancy < cfgOccupancyCut2)) {
return;
}
auto multiplicity = collision.centFT0C();
Expand Down

0 comments on commit b8923b6

Please sign in to comment.