Skip to content

Commit 3e38b12

Browse files
authored
[PWGDQ] add acceptance cut for pbpb (#16077)
1 parent 229e092 commit 3e38b12

3 files changed

Lines changed: 14 additions & 0 deletions

File tree

PWGDQ/Core/CutsLibrary.cxx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4661,6 +4661,15 @@ AnalysisCut* o2::aod::dqcuts::GetAnalysisCut(const char* cutName)
46614661
return cut;
46624662
}
46634663

4664+
if (!nameStr.compare("acceptance_PbPb5360")) {
4665+
cut->AddCut(VarManager::kMCY, -0.9, 0.9);
4666+
cut->AddCut(VarManager::kMCP1, 1.0, 1000.0);
4667+
cut->AddCut(VarManager::kMCP2, 1.0, 1000.0);
4668+
cut->AddCut(VarManager::kMCEta1, -0.9, 0.9);
4669+
cut->AddCut(VarManager::kMCEta2, -0.9, 0.9);
4670+
return cut;
4671+
}
4672+
46644673
// ---------------------------------------------------
46654674
// MC generated particle acceptance cuts
46664675

PWGDQ/Core/VarManager.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1953,6 +1953,7 @@ void VarManager::SetDefaultVarNames()
19531953
fgVarNamesMap["kMCEventWeight"] = kMCEventWeight;
19541954
fgVarNamesMap["kMCEventImpParam"] = kMCEventImpParam;
19551955
fgVarNamesMap["kMCEventPlaneAngle"] = kMCEventPlaneAngle;
1956+
fgVarNamesMap["kMCEventCentrFT0C"] = kMCEventCentrFT0C;
19561957
fgVarNamesMap["kQ1ZNAX"] = kQ1ZNAX;
19571958
fgVarNamesMap["kQ1ZNAY"] = kQ1ZNAY;
19581959
fgVarNamesMap["kQ1ZNCX"] = kQ1ZNCX;

PWGDQ/Core/VarManager.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,8 +715,10 @@ class VarManager : public TObject
715715
// MC pair variables
716716
kMCPt1,
717717
kMCEta1,
718+
kMCP1,
718719
kMCPt2,
719720
kMCEta2,
721+
kMCP2,
720722
kMCCosThetaHE,
721723
kMCPhiHE,
722724
kMCPhiTildeHE,
@@ -4201,6 +4203,8 @@ void VarManager::FillPairMC(T1 const& t1, T2 const& t2, float* values)
42014203
values[kMCPt2] = t2.pt();
42024204
values[kMCEta1] = t1.eta();
42034205
values[kMCEta2] = t2.eta();
4206+
values[kMCP1] = t1.p();
4207+
values[kMCP2] = t2.p();
42044208

42054209
// polarization parameters
42064210
bool useHE = fgUsedVars[kMCCosThetaHE] || fgUsedVars[kMCPhiHE]; // helicity frame

0 commit comments

Comments
 (0)