AnalysisTree
Loading...
Searching...
No Matches
AnalysisTree::Particle Class Reference
Inheritance diagram for AnalysisTree::Particle:
Inheritance graph
Collaboration diagram for AnalysisTree::Particle:
Collaboration graph

Public Member Functions

 Particle (size_t id)
 Particle (size_t id, const BranchConfig &branch) noexcept
 Particle (const Container &cont)
 Particle (const Track &track)
 Particle (const Particle &particle)=default
 Particle (Particle &&particle)=default
Particle & operator= (Particle &&)=default
Particle & operator= (const Particle &particle)=default
ANALYSISTREE_ATTR_NODISCARD Floating_t GetRapidity () const
ANALYSISTREE_ATTR_NODISCARD PdgCode_t GetPid () const
ANALYSISTREE_ATTR_NODISCARD Floating_t GetMass () const
void SetMass (Floating_t mass)
void SetCharge (Int_t charge)
void SetPid (PdgCode_t pid)
void SetIsAllowedSetMassAndChargeExplicitly (bool is=true)
void CheckIsAllowedSetMassAndChargeExplicitly () const
ANALYSISTREE_ATTR_NODISCARD Floating_t GetEnergy () const
ANALYSISTREE_ATTR_NODISCARD Floating_t GetKineticEnergy () const
template<typename T>
GetField (Integer_t iField) const
template<typename T>
void SetField (T value, Int_t field_id)
Public Member Functions inherited from AnalysisTree::Track
 Track (size_t id) noexcept
 Track (const Container &cont)
 Track (size_t id, const BranchConfig &branch) noexcept
 Track (const Track &track)=default
 Track (Track &&track)=default
Track & operator= (Track &&)=default
Track & operator= (const Track &track)=default
void SetMomentum (Floating_t px, Floating_t py, Floating_t pz) noexcept
void SetMomentum3 (const TVector3 &momentum) noexcept
void SetCharge (Int_t charge) noexcept
ANALYSISTREE_ATTR_NODISCARD Floating_t GetPx () const noexcept
ANALYSISTREE_ATTR_NODISCARD Floating_t GetPy () const noexcept
ANALYSISTREE_ATTR_NODISCARD Floating_t GetPz () const noexcept
ANALYSISTREE_ATTR_NODISCARD Floating_t GetPt () const noexcept
ANALYSISTREE_ATTR_NODISCARD Floating_t GetPhi () const noexcept
ANALYSISTREE_ATTR_NODISCARD Floating_t GetEta () const noexcept
ANALYSISTREE_ATTR_NODISCARD Floating_t GetP () const noexcept
ANALYSISTREE_ATTR_NODISCARD Integer_t GetCharge () const noexcept
ANALYSISTREE_ATTR_NODISCARD TVector3 GetMomentum3 () const noexcept
ANALYSISTREE_ATTR_NODISCARD Floating_t GetRapidity (PdgCode_t pdg) const
ANALYSISTREE_ATTR_NODISCARD Floating_t GetRapidityByMass (float mass) const noexcept
template<typename T>
GetField (Integer_t id) const
template<typename T>
void SetField (T value, Int_t field_id)
void Print () const noexcept override
Public Member Functions inherited from AnalysisTree::Container
 Container (size_t id)
 Container (size_t id, const BranchConfig &branch)
 Container (const Container &container)=default
 Container (Container &&container)=default
Container & operator= (Container &&)=default
Container & operator= (const Container &part)=default
template<class T>
std::vector< T > & Vector ()
template<class T>
const std::vector< T > & GetVector () const
template<typename T>
void SetField (T value, Integer_t field_id)
template<typename T>
ANALYSISTREE_ATTR_NODISCARD T GetField (Integer_t field_id) const
template<typename T>
ANALYSISTREE_ATTR_NODISCARD size_t GetSize () const
void Init (const BranchConfig &branch)
template<>
std::vector< int > & Vector ()
template<>
std::vector< float > & Vector ()
template<>
std::vector< bool > & Vector ()
template<>
const std::vector< int > & GetVector () const
template<>
const std::vector< float > & GetVector () const
template<>
const std::vector< bool > & GetVector () const
Public Member Functions inherited from AnalysisTree::IndexedObject
 IndexedObject (size_t id)
 IndexedObject (const IndexedObject &indexedObject)=default
 IndexedObject (IndexedObject &&indexedObject)=default
IndexedObject & operator= (IndexedObject &&)=default
IndexedObject & operator= (const IndexedObject &indexedObject)=default
ANALYSISTREE_ATTR_NODISCARD size_t GetId () const

Protected Member Functions

 ClassDefOverride (Particle, 3)
Protected Member Functions inherited from AnalysisTree::Track
 ClassDefOverride (Track, 3)
Protected Member Functions inherited from AnalysisTree::Container
 ClassDefOverride (Container, 2)

Protected Attributes

Floating_t mass_ {-1000.f}
PdgCode_t pid_ {0}
bool is_allowed_set_charge_and_mass_explicitly_ {false}
Protected Attributes inherited from AnalysisTree::Track
Floating_t px_ {UndefValueFloat}
 x-component of track's momentum
Floating_t py_ {UndefValueFloat}
 y-component of track's momentum
Floating_t pz_ {UndefValueFloat}
 z-component of track's momentum
Integer_t charge_ {-1000}
Protected Attributes inherited from AnalysisTree::Container
std::vector< float > floats_ {}
std::vector< int > ints_ {}
std::vector< bool > bools_ {}

Additional Inherited Members

Static Protected Member Functions inherited from AnalysisTree::Track
static float GetMassByPdgId (PdgCode_t pdg)
static int GetChargeByPdgId (PdgCode_t pdg)

The documentation for this class was generated from the following files: