95 if (pdg > 1000000000) {
99 const int kNstable = 18;
100 int pdgStable[kNstable] = {
122 for (
int i = 0;
i < kNstable; ++
i) {
123 if (pdg == std::abs(pdgStable[
i])) {
Definition of the MCTrack class.
static void encodeParticleStatusAndTracking(TParticle &particle, bool wanttracking=true)
static o2::MCTrack const * getMother(o2::MCTrack const &p, std::vector< o2::MCTrack > const &pcontainer)
Given an MCTrack p; Return it's direct mother or nullptr. (we follow only first mother)
static bool isPhysicalPrimary(o2::MCTrack const &p, std::vector< o2::MCTrack > const &pcontainer)
ClassDefNV(MCTrackNavigator, 1)
static o2::MCTrack const & getFirstPrimary(o2::MCTrack const &p, std::vector< o2::MCTrack > const &pcontainer)
static o2::MCTrack const * getDaughter1(o2::MCTrack const &p, std::vector< o2::MCTrack > const &pcontainer)
Given an MCTrack p; Return it's second direct daughter or nullptr.
static bool isFromPrimaryDecayChain(o2::MCTrack const &p, std::vector< o2::MCTrack > const &pcontainer)
static o2::MCTrack const * getDaughter(o2::MCTrack const &p, std::vector< o2::MCTrack > const &pcontainer)
Given an MCTrack p; Return it's direct daughter or nullptr. (we follow only first daughter)
static o2::MCTrack const * getDaughter0(o2::MCTrack const &p, std::vector< o2::MCTrack > const &pcontainer)
Given an MCTrack p; Return it's first direct daughter or nullptr.
static bool isKeepPhysics(o2::MCTrack const &p, std::vector< o2::MCTrack > const &pcontainer)
bool isStable(int pdg)
Determine if a particle (identified by pdg) is stable.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...