-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Other Jpsi decays and trigger for various particles in dpmjet
- Loading branch information
Showing
6 changed files
with
103 additions
and
3 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
MC/config/PWGUD/external/generator/DecayTablesEvtGen/JPSI.4PRONG.DEC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Decay J/psi | ||
0.33 p+ anti-p- pi+ pi- PHSP; | ||
0.33 pi+ pi- pi+ pi- PHSP; | ||
0.33 pi+ pi- K+ K- PHSP; | ||
Enddecay | ||
End | ||
|
6 changes: 6 additions & 0 deletions
6
MC/config/PWGUD/external/generator/DecayTablesEvtGen/JPSI.6PRONG.DEC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Decay J/psi | ||
0.5 pi+ pi- pi+ pi- K+ K- PHSP; | ||
0.5 pi+ pi- pi+ pi- pi+ pi- PHSP; | ||
Enddecay | ||
End | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
R__ADD_INCLUDE_PATH($O2DPG_MC_CONFIG_ROOT) | ||
#include <TParticle.h> | ||
#include "Generators/Trigger.h" | ||
|
||
/// ================================================================================================================================= | ||
/// Select events with at least one particle in a given rapidity or eta window | ||
/// ================================================================================================================================= | ||
|
||
o2::eventgen::Trigger triggerDzero(double rapidityMin = -1., double rapidityMax = -1.) | ||
{ | ||
return [rapidityMin, rapidityMax](const std::vector<TParticle>& particles) -> bool { | ||
for (const auto& particle : particles) { | ||
if (TMath::Abs(particle.GetPdgCode()) == 421) | ||
if ((particle.Y() > rapidityMin) && (particle.Y() < rapidityMax)) | ||
return kTRUE; | ||
} | ||
return kFALSE; | ||
}; | ||
} | ||
|
||
o2::eventgen::Trigger triggerDcharged(double rapidityMin = -1., double rapidityMax = -1.) | ||
{ | ||
return [rapidityMin, rapidityMax](const std::vector<TParticle>& particles) -> bool { | ||
for (const auto& particle : particles) { | ||
if (TMath::Abs(particle.GetPdgCode()) == 411) | ||
if ((particle.Y() > rapidityMin) && (particle.Y() < rapidityMax)) | ||
return kTRUE; | ||
} | ||
return kFALSE; | ||
}; | ||
} | ||
|
||
o2::eventgen::Trigger triggerDstar(double rapidityMin = -1., double rapidityMax = -1.) | ||
{ | ||
return [rapidityMin, rapidityMax](const std::vector<TParticle>& particles) -> bool { | ||
for (const auto& particle : particles) { | ||
if ((TMath::Abs(particle.GetPdgCode()) == 413) || (TMath::Abs(particle.GetPdgCode()) == 423)) | ||
if ((particle.Y() > rapidityMin) && (particle.Y() < rapidityMax)) | ||
return kTRUE; | ||
} | ||
return kFALSE; | ||
}; | ||
} | ||
|
||
o2::eventgen::Trigger triggerPhi(double rapidityMin = -1., double rapidityMax = -1.) | ||
{ | ||
return [rapidityMin, rapidityMax](const std::vector<TParticle>& particles) -> bool { | ||
for (std::vector<TParticle>::size_type i = 0; i != (particles.size()-1); i++) { | ||
if ((particles[i].GetPdgCode() == 321 && particles[i+1].GetPdgCode() == -321) || (particles[i].GetPdgCode() == -321 && particles[i+1].GetPdgCode() == 321)) | ||
if ((particles[i].Eta() > rapidityMin) && (particles[i].Eta() < rapidityMax) && (particles[i+1].Eta() > rapidityMin) && (particles[i+1].Eta() < rapidityMax)) | ||
return kTRUE; | ||
} | ||
return kFALSE; | ||
}; | ||
} | ||
|
||
o2::eventgen::Trigger triggerKstar(double rapidityMin = -1., double rapidityMax = -1.) | ||
{ | ||
return [rapidityMin, rapidityMax](const std::vector<TParticle>& particles) -> bool { | ||
for (std::vector<TParticle>::size_type i = 0; i != (particles.size()-1); i++) { | ||
if ((particles[i].GetPdgCode() == 321 && particles[i+1].GetPdgCode() == -211) || (particles[i].GetPdgCode() == -211 && particles[i+1].GetPdgCode() == 321)) | ||
if ((particles[i].Eta() > rapidityMin) && (particles[i].Eta() < rapidityMax) && (particles[i+1].Eta() > rapidityMin) && (particles[i+1].Eta() < rapidityMax)) | ||
return kTRUE; | ||
} | ||
return kFALSE; | ||
}; | ||
} | ||
|
||
|
||
|