Skip to content

Commit a823217

Browse files
committed
add more cuts
1 parent f6d98c8 commit a823217

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

PWGDQ/Core/CutsLibrary.cxx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4317,6 +4317,24 @@ AnalysisCut* o2::aod::dqcuts::GetAnalysisCut(const char* cutName)
43174317
return cut;
43184318
}
43194319

4320+
if (!nameStr.compare("acceptance_pp13600")) {
4321+
cut->AddCut(VarManager::kMCY, -0.8, 0.8);
4322+
cut->AddCut(VarManager::kMCPt1, 1.0, 1000.0);
4323+
cut->AddCut(VarManager::kMCPt2, 1.0, 1000.0);
4324+
cut->AddCut(VarManager::kMCEta1, -0.8, 0.8);
4325+
cut->AddCut(VarManager::kMCEta2, -0.8, 0.8);
4326+
return cut;
4327+
}
4328+
4329+
if (!nameStr.compare("acceptance_pp5360")) {
4330+
cut->AddCut(VarManager::kMCY, -0.9, 0.9);
4331+
cut->AddCut(VarManager::kMCPt1, 1.0, 1000.0);
4332+
cut->AddCut(VarManager::kMCPt2, 1.0, 1000.0);
4333+
cut->AddCut(VarManager::kMCEta1, -0.9, 0.9);
4334+
cut->AddCut(VarManager::kMCEta2, -0.9, 0.9);
4335+
return cut;
4336+
}
4337+
43204338
// ---------------------------------------------------
43214339
// MC generated particle acceptance cuts
43224340

PWGDQ/Core/VarManager.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,10 @@ class VarManager : public TObject
659659
kMCMotherPdgCode,
660660

661661
// MC pair variables
662+
kMCPt1,
663+
kMCEta1,
664+
kMCPt2,
665+
kMCEta2,
662666
kMCCosThetaHE,
663667
kMCPhiHE,
664668
kMCPhiTildeHE,
@@ -3716,6 +3720,10 @@ void VarManager::FillPairMC(T1 const& t1, T2 const& t2, float* values)
37163720
values[kMCEta] = v12.Eta();
37173721
values[kMCPhi] = v12.Phi();
37183722
values[kMCY] = -v12.Rapidity();
3723+
values[kMCPt1] = t1.pt();
3724+
values[kMCPt2] = t2.pt();
3725+
values[kMCEta1] = t1.eta();
3726+
values[kMCEta2] = t2.eta();
37193727

37203728
// polarization parameters
37213729
bool useHE = fgUsedVars[kMCCosThetaHE] || fgUsedVars[kMCPhiHE]; // helicity frame

0 commit comments

Comments
 (0)