ATLAS Offline Software
Namespaces | Functions
HepMCHelpers.h File Reference
#include <vector>
#include <cmath>
#include <algorithm>
#include <array>
#include <cstdlib>
#include <set>
#include "TruthUtils/MagicNumbers.h"
#include "AtlasPID.h"
Include dependency graph for HepMCHelpers.h:

Go to the source code of this file.

Namespaces

 MC
 
 MC::Pythia8
 

Functions

template<class T >
bool MC::Pythia8::isConditionA (const T &p)
 To be understood. More...
 
template<class T >
bool MC::Pythia8::isConditionB (const T &p)
 
template<class T >
bool MC::Pythia8::isConditionC (const T &p)
 
template<class T >
bool MC::isInteracting (const T &p)
 Identify if the particle with given PDG ID would not interact with the detector, i.e. not a neutrino or WIMP. More...
 
template<class T >
bool MC::isChargedNonShowering (const T &p)
 Identify if the particle with given PDG ID would produce ID tracks but not shower in the detector if stable. More...
 
template<class T >
bool MC::isBeam (const T &p)
 Identify if the particle is beam particle. More...
 
template<class T >
bool MC::isDecayed (const T &p)
 Identify if the particle decayed. More...
 
template<class T >
bool MC::isStable (const T &p)
 Identify if the particle is stable, i.e. has not decayed. More...
 
template<class T >
bool MC::isFinalState (const T &p)
 Identify if the particle is final state particle. More...
 
template<class T >
bool MC::isPhysical (const T &p)
 Identify if the particle is physical, i.e. is stable or decayed. More...
 
template<class T >
bool MC::isGenStable (const T &p)
 Determine if the particle is stable at the generator (not det-sim) level,. More...
 
template<class T >
bool MC::isSimStable (const T &p)
 Identify if the particle is considered stable at the post-detector-sim stage. More...
 
template<class T >
bool MC::isSimInteracting (const T &p)
 Identify if the particle could interact with the detector during the simulation, e.g. not a neutrino or WIMP. More...
 
template<class T >
bool MC::isStableOrSimDecayed (const T &p)
 Identify if particle is satble or decayed in simulation. More...
 
template<class T >
bool MC::isZeroEnergyPhoton (const T &p)
 Identify a photon with zero energy. Probably a workaround for a generator bug. More...
 
template<class T >
bool MC::isSingleParticle (const T &p)
 Identify a particlegun particle. More...
 
template<class T >
bool MC::isSpecialNonInteracting (const T &p)
 Identify a special non-interacting particles. More...
 
template<class T >
MC::findMother (T thePart)
 Function to get a mother of particle. MCTruthClassifier legacy. More...
 
template<class C , class T >
MC::findMatching (C TruthContainer, T p)
 Function to find a particle in container. More...
 
template<class T >
void MC::findParticleAncestors (T thePart, std::set< T > &allancestors)
 Function to find all ancestors of the particle. More...
 
template<class T >
void MC::findParticleStableDescendants (T thePart, std::set< T > &allstabledescendants)
 Function to get the particle stable MC daughters. More...
 
template<class T >
bool MC::isHardScatteringVertex (T pVert)
 Function to classify the vertex as hard scattering vertex. More...
 
template<class T >
bool MC::isFromHadron (T p, T hadron, bool &fromTau, bool &fromBSM)
 Function to classify the particle. More...
 
template<class T >
auto MC::findSimulatedEndVertex (T thePart) -> decltype(thePart->end_vertex())
 Function to find the end vertex of a particle. More...
 
template<class V >
auto MC::findFinalStateParticles (V theVert) -> decltype(theVert->particles_out())
 Function to find the stable particle descendants of the given vertex.. More...
 

Detailed Description

ATLAS-specific HepMC functions

Definition in file HepMCHelpers.h.