Skip to content

Commit fba90a7

Browse files
[PWGCF] Additional cuts on track selection for systematics (#14584)
1 parent 5343330 commit fba90a7

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

PWGCF/EbyEFluctuations/Tasks/MeanptFluctuations.cxx

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
#include <TH2F.h>
3535
#include <THn.h>
3636
#include <TList.h>
37-
#include <TLorentzVector.h>
3837
#include <TMath.h>
3938
#include <TObjArray.h>
4039
#include <TPDGCode.h>
@@ -72,6 +71,7 @@ struct MeanptFluctuationsAnalysis {
7271
Configurable<int> cfgITScluster{"cfgITScluster", 1, "Minimum Number of ITS cluster"};
7372
Configurable<int> cfgTPCcluster{"cfgTPCcluster", 80, "Minimum Number of TPC cluster"};
7473
Configurable<int> cfgTPCnCrossedRows{"cfgTPCnCrossedRows", 70, "Minimum Number of TPC crossed-rows"};
74+
Configurable<float> cfgTPCnCrossedRowsOverFindableCls{"cfgTPCnCrossedRowsOverFindableCls", 0.8, "Minimum ratio of crossed rows over findable clusters TPC"};
7575
ConfigurableAxis nchAxis{"nchAxis", {500, 0.5, 500.5}, "Axis for multiplicity of GlobalTracks/PVTracks"};
7676
ConfigurableAxis nchAxis2{"nchAxis2", {1000, 0.5, 30000.5}, "Axis for multiplicity of FT0A/FT0C/FV0A"};
7777
ConfigurableAxis nchAxis3{"nchAxis3", {1000, 0.5, 100000.5}, "Axis for multiplicity of FT0A/FT0C/FV0A"};
@@ -126,6 +126,7 @@ struct MeanptFluctuationsAnalysis {
126126

127127
O2_DEFINE_CONFIGURABLE(cfgUse22sEventCut, bool, true, "Use 22s event cut on mult correlations")
128128
O2_DEFINE_CONFIGURABLE(cfgUseSmallIonAdditionalEventCut, bool, true, "Use additional event cut on mult correlations for small ions")
129+
O2_DEFINE_CONFIGURABLE(cfgUseSmallIonAdditionalEventCutInMC, bool, false, "Use additional event cut on mult correlations for small ions while using MC generated")
129130

130131
// Filter command***********
131132
Filter collisionFilter = nabs(aod::collision::posZ) < cfgCutVertex;
@@ -177,6 +178,8 @@ struct MeanptFluctuationsAnalysis {
177178
histos.add("hCentrality", ";centrality (%)", kTH1F, {{90, 0, 90}});
178179
histos.add("hDcaXY", ";#it{dca}_{XY}", kTH1F, {{1000, -5, 5}});
179180
histos.add("hDcaZ", ";#it{dca}_{Z}", kTH1F, {{1000, -5, 5}});
181+
histos.add("his2DdcaXYvsPt", "", {HistType::kTH2D, {ptAxis, {1000, -1, 1}}});
182+
histos.add("his2DdcaZvsPt", "", {HistType::kTH2D, {ptAxis, {1000, -1, 1}}});
180183
histos.add("hMeanPt", "", kTProfile, {centAxis});
181184
histos.add("Hist2D_globalTracks_PVTracks", "", {HistType::kTH2D, {nchAxis, nchAxis}});
182185
histos.add("Hist2D_cent_nch", "", {HistType::kTH2D, {nchAxis, centAxis}});
@@ -417,7 +420,7 @@ struct MeanptFluctuationsAnalysis {
417420
histos.fill(HIST("MultCorrelationPlots/AfterSelection/His2D_V0ATracks_T0CTracks_afterSel"), coll.multFT0C(), coll.multFV0A());
418421
}
419422

420-
void processMCGen(aod::McCollision const& mcCollision, aod::McParticles const& mcParticles, const soa::SmallGroups<EventCandidatesMC>& collisions)
423+
void processMCGen(aod::McCollision const& mcCollision, aod::McParticles const& mcParticles, const soa::SmallGroups<EventCandidatesMC>& collisions, MyMCTracks const& tracks)
421424
{
422425
histos.fill(HIST("MCGenerated/hMC"), 0.5);
423426
if (std::abs(mcCollision.posZ()) < cfgCutVertex) {
@@ -458,7 +461,7 @@ struct MeanptFluctuationsAnalysis {
458461
if (cfgEvSelUseGoodZvtxFT0vsPV && !(collision.selection_bit(o2::aod::evsel::kIsGoodZvtxFT0vsPV))) {
459462
continue;
460463
}
461-
if (cfgUseSmallIonAdditionalEventCut && !eventSelectedSmallion(collision, mcParticles.size(), cent)) {
464+
if (cfgUseSmallIonAdditionalEventCutInMC && !eventSelectedSmallion(collision, tracks.size(), cent)) {
462465
continue;
463466
}
464467

@@ -568,6 +571,7 @@ struct MeanptFluctuationsAnalysis {
568571
fillMultCorrPlotsAfterSel(collision, tracks);
569572
}
570573

574+
histos.fill(HIST("MCGenerated/hMC"), 5.5);
571575
histos.fill(HIST("hZvtx_after_sel"), collision.posZ());
572576

573577
double cent = 0.0;
@@ -616,7 +620,7 @@ struct MeanptFluctuationsAnalysis {
616620
if (!track.isPVContributor()) {
617621
continue;
618622
}
619-
if (!(track.itsNCls() > cfgITScluster) || !(track.tpcNClsFound() >= cfgTPCcluster) || !(track.tpcNClsCrossedRows() >= cfgTPCnCrossedRows)) {
623+
if (!(track.itsNCls() > cfgITScluster) || !(track.tpcNClsFound() >= cfgTPCcluster) || !(track.tpcNClsCrossedRows() >= cfgTPCnCrossedRows) || !(track.tpcCrossedRowsOverFindableCls() >= cfgTPCnCrossedRowsOverFindableCls)) {
620624
continue;
621625
}
622626

@@ -628,6 +632,8 @@ struct MeanptFluctuationsAnalysis {
628632
histos.fill(HIST("hPhi"), track.phi());
629633
histos.fill(HIST("hDcaXY"), track.dcaXY());
630634
histos.fill(HIST("hDcaZ"), track.dcaZ());
635+
histos.fill(HIST("his2DdcaXYvsPt"), track.pt(), track.dcaXY());
636+
histos.fill(HIST("his2DdcaZvsPt"), track.pt(), track.dcaZ());
631637
histos.fill(HIST("MCGenerated/hPtParticleVsTrack"), particle.pt(), track.pt());
632638
histos.fill(HIST("MCGenerated/hEtaParticleVsTrack"), particle.eta(), track.eta());
633639
histos.fill(HIST("MCGenerated/hPhiParticleVsTrack"), particle.phi(), track.phi());
@@ -737,7 +743,7 @@ struct MeanptFluctuationsAnalysis {
737743
continue;
738744
}
739745

740-
if (!(track.itsNCls() > cfgITScluster) || !(track.tpcNClsFound() >= cfgTPCcluster) || !(track.tpcNClsCrossedRows() >= cfgTPCnCrossedRows)) {
746+
if (!(track.itsNCls() > cfgITScluster) || !(track.tpcNClsFound() >= cfgTPCcluster) || !(track.tpcNClsCrossedRows() >= cfgTPCnCrossedRows) || !(track.tpcCrossedRowsOverFindableCls() >= cfgTPCnCrossedRowsOverFindableCls)) {
741747
continue;
742748
}
743749

@@ -747,6 +753,8 @@ struct MeanptFluctuationsAnalysis {
747753
histos.fill(HIST("hPhi"), track.phi());
748754
histos.fill(HIST("hDcaXY"), track.dcaXY());
749755
histos.fill(HIST("hDcaZ"), track.dcaZ());
756+
histos.fill(HIST("his2DdcaXYvsPt"), track.pt(), track.dcaXY());
757+
histos.fill(HIST("his2DdcaZvsPt"), track.pt(), track.dcaZ());
750758

751759
pTsum += track.pt();
752760
nN += 1.0;

0 commit comments

Comments
 (0)