![]() |
ATLAS Offline Software
|
Input object for PanTau. More...
#include <TauConstituent.h>
Public Types | |
| enum | Type { t_NoType = 0 , t_Charged = 1 , t_Neutral = 2 , t_Pi0Neut = 3 , t_nTypes = 8 } |
| Type enumeration to specify type of this tau constituent. More... | |
Public Member Functions | |
| TauConstituent () | |
| Default Constructor for POOL. | |
| TauConstituent (const TLorentzVector &itsMomentum, int itsCharge, const std::vector< int > &itsType, double itsBDTValue, const xAOD::PFO *itsPFO) | |
| virtual | ~TauConstituent () |
| Destructor. | |
| TauConstituent (const TauConstituent &tauConst) | |
| Copy Constructor. | |
| TauConstituent & | operator= (const TauConstituent &tauConst) |
| Assignment operator. | |
Functions for getting and setting user properties | |
| template<class T> | |
| XAOD_AUXDATA_DEPRECATED T & | auxdata (const std::string &name, const std::string &clsname="") |
| Fetch an aux data variable, as a non-const reference. | |
| template<class T> | |
| XAOD_AUXDATA_DEPRECATED const T & | auxdata (const std::string &name, const std::string &clsname="") const |
| Fetch an aux data variable, as a const reference. | |
| template<class T> | |
| XAOD_AUXDATA_DEPRECATED bool | isAvailable (const std::string &name, const std::string &clsname="") const |
| Check if a user property is available for reading or not. | |
| template<class T> | |
| XAOD_AUXDATA_DEPRECATED bool | isAvailableWritable (const std::string &name, const std::string &clsname="") const |
| Check if a user property is available for writing or not. | |
Static Public Member Functions | |
| static double | DefaultBDTValue () |
| static double | DefaultCharge () |
| static std::string | AllConstituentsName () |
| static std::string | getTypeName (PanTau::TauConstituent::Type aType) |
| static bool | isNeutralType (int tauConstituentType) |
xAOD::IParticle functions | |
These are already virtual due to IParticle | |
| typedef IParticle::FourMom_t | FourMom_t |
| Definition of the 4-momentum type. | |
| FourMom_t | m_p4 |
| 4-momentum object | |
| std::vector< int > | m_TypeFlags |
| double | m_BDTValue |
| int | m_Charge |
| const xAOD::PFO * | m_PFO |
| std::vector< TauConstituent * > | m_Shots |
| int | m_nPhotonsInShot |
| virtual double | pt () const |
| The transverse momentum ( \(p_T\)) of the particle. | |
| virtual double | eta () const |
| The pseudorapidity ( \(\eta\)) of the particle. | |
| virtual double | phi () const |
| The azimuthal angle ( \(\phi\)) of the particle. | |
| virtual double | m () const |
| The invariant mass of the particle. | |
| virtual double | e () const |
| The total energy of the particle. | |
| virtual double | rapidity () const |
| The true rapidity (y) of the particle. | |
| virtual FourMom_t | p4 () const |
| The full 4-momentum of the particle as a TLorentzVector. | |
| virtual xAOD::Type::ObjectType | type () const |
| The type of the object as a simple enumeration, remains pure virtual in e/gamma. | |
| void | setP4 (float pt, float eta, float phi, float m) |
| set the 4-vec | |
| void | setPt (float pt) |
| set the Pt | |
| void | setEta (float eta) |
| set the eta | |
| void | setPhi (float phi) |
| set the phi | |
| void | setM (float m) |
| set the Mass | |
| void | removeTypeFlag (TauConstituent::Type aType) |
| std::vector< std::string > | getTypeName () const |
| std::string | getTypeNameString () const |
| const std::vector< int > & | getTypeFlags () const |
| bool | isOfType (TauConstituent::Type aType) const |
| double | getBDTValue () const |
| int | getCharge () const |
| const xAOD::PFO * | getPFO () const |
| void | addShot (TauConstituent *shot) |
| const std::vector< TauConstituent * > & | getShots () const |
| unsigned int | getNShots () const |
| void | setNPhotonsInShot (int nPhotons) |
| int | getNPhotonsInShot () const |
Mainly a 4-vector with additional information about its type (charged, neutral, pi0 tagged)
Definition at line 25 of file TauConstituent.h.
| typedef IParticle::FourMom_t PanTau::TauConstituent::FourMom_t |
Definition of the 4-momentum type.
Definition at line 110 of file TauConstituent.h.
Type enumeration to specify type of this tau constituent.
t_NoType: This is used in default constructors when no type is specified t_Charged: Used to represent objects considered as 'charged' by input substructure reco t_Neutral: Use for objects considered neutral by input substructure algorithm t_Pi0Neut: If a particle passes pi0 ID, use this flag t_OutChrg: Charged objects in 0.2 to 0.4 t_OutNeut: Neutral objects in 0.2 to 0.4 t_NeutLowA: (Core) Neutrals with lower Et cut -> removed t_NeutLowB: (Core) Neutrals with even lower Et cut -> removed t_nTypes: Dont use this, just tell number of types
| Enumerator | |
|---|---|
| t_NoType | |
| t_Charged | |
| t_Neutral | |
| t_Pi0Neut | |
| t_nTypes | |
Definition at line 42 of file TauConstituent.h.
| PanTau::TauConstituent::TauConstituent | ( | ) |
Default Constructor for POOL.
Do not use!
Definition at line 7 of file TauConstituent.cxx.
| PanTau::TauConstituent::TauConstituent | ( | const TLorentzVector & | itsMomentum, |
| int | itsCharge, | ||
| const std::vector< int > & | itsType, | ||
| double | itsBDTValue, | ||
| const xAOD::PFO * | itsPFO ) |
| itsMomentum | The P4EEtaPhiM of this particle |
| itsType | The type of this particle using this class' enumeration |
| itsBDTValue | If a BDT was used ot ID this particle, provide the BDT response |
Definition at line 20 of file TauConstituent.cxx.
|
virtual |
Destructor.
Definition at line 42 of file TauConstituent.cxx.
|
default |
Copy Constructor.
| void PanTau::TauConstituent::addShot | ( | TauConstituent * | shot | ) |
Definition at line 232 of file TauConstituent.cxx.
|
inlinestatic |
Definition at line 56 of file TauConstituent.h.
|
inlineinherited |
Fetch an aux data variable, as a non-const reference.
This function provides an easy way for users to decorate objects with auxiliary data.
Take note that this function is slow. Should not be used inside time-critical code.
| name | Name of the aux variable |
| clsname | The name of the associated class. May be blank |
Definition at line 98 of file Event/xAOD/xAODBase/xAODBase/IParticle.h.
|
inlineinherited |
Fetch an aux data variable, as a const reference.
This function provides an easy way for users to retrieve auxiliary decorations from an object.
Take note that this function is slow. Should not be used inside time-critical code.
| name | Name of the aux variable |
| clsname | The name of the associated class. May be blank |
Definition at line 118 of file Event/xAOD/xAODBase/xAODBase/IParticle.h.
|
inlinestatic |
Definition at line 54 of file TauConstituent.h.
|
inlinestatic |
Definition at line 55 of file TauConstituent.h.
|
virtual |
The total energy of the particle.
Implements xAOD::IParticle.
Definition at line 92 of file TauConstituent.cxx.
|
virtual |
The pseudorapidity ( \(\eta\)) of the particle.
Implements xAOD::IParticle.
Definition at line 77 of file TauConstituent.cxx.
| double PanTau::TauConstituent::getBDTValue | ( | ) | const |
Definition at line 203 of file TauConstituent.cxx.
| int PanTau::TauConstituent::getCharge | ( | ) | const |
Definition at line 222 of file TauConstituent.cxx.
| int PanTau::TauConstituent::getNPhotonsInShot | ( | ) | const |
Definition at line 252 of file TauConstituent.cxx.
| unsigned int PanTau::TauConstituent::getNShots | ( | ) | const |
Definition at line 242 of file TauConstituent.cxx.
Definition at line 227 of file TauConstituent.cxx.
| const std::vector< PanTau::TauConstituent * > & PanTau::TauConstituent::getShots | ( | ) | const |
Definition at line 237 of file TauConstituent.cxx.
| const std::vector< int > & PanTau::TauConstituent::getTypeFlags | ( | ) | const |
Definition at line 208 of file TauConstituent.cxx.
| std::vector< std::string > PanTau::TauConstituent::getTypeName | ( | ) | const |
Definition at line 180 of file TauConstituent.cxx.
|
static |
Definition at line 158 of file TauConstituent.cxx.
| std::string PanTau::TauConstituent::getTypeNameString | ( | ) | const |
Definition at line 192 of file TauConstituent.cxx.
|
inlineinherited |
Check if a user property is available for reading or not.
This function should be used to check if a user property which may or may not exist, is set on the object.
| name | Name of the auxiliary variable |
| clsname | The name of the associated class. May be blank |
Definition at line 135 of file Event/xAOD/xAODBase/xAODBase/IParticle.h.
|
inlineinherited |
Check if a user property is available for writing or not.
This function can be used to check whether it will be possible to set a user property on the object.
| name | Name of the auxiliary variable |
| clsname | The name of the associated class. May be blank |
Definition at line 152 of file Event/xAOD/xAODBase/xAODBase/IParticle.h.
|
static |
Definition at line 169 of file TauConstituent.cxx.
| bool PanTau::TauConstituent::isOfType | ( | TauConstituent::Type | aType | ) | const |
Definition at line 213 of file TauConstituent.cxx.
|
virtual |
The invariant mass of the particle.
Implements xAOD::IParticle.
Definition at line 87 of file TauConstituent.cxx.
| PanTau::TauConstituent & PanTau::TauConstituent::operator= | ( | const TauConstituent & | tauConst | ) |
Assignment operator.
Definition at line 52 of file TauConstituent.cxx.
|
virtual |
The full 4-momentum of the particle as a TLorentzVector.
Implements xAOD::IParticle.
Definition at line 100 of file TauConstituent.cxx.
|
virtual |
The azimuthal angle ( \(\phi\)) of the particle.
Implements xAOD::IParticle.
Definition at line 82 of file TauConstituent.cxx.
|
virtual |
The transverse momentum ( \(p_T\)) of the particle.
Implements xAOD::IParticle.
Definition at line 72 of file TauConstituent.cxx.
|
virtual |
The true rapidity (y) of the particle.
Implements xAOD::IParticle.
Definition at line 96 of file TauConstituent.cxx.
| void PanTau::TauConstituent::removeTypeFlag | ( | TauConstituent::Type | aType | ) |
Definition at line 151 of file TauConstituent.cxx.
| void PanTau::TauConstituent::setEta | ( | float | eta | ) |
set the eta
Definition at line 124 of file TauConstituent.cxx.
| void PanTau::TauConstituent::setM | ( | float | m | ) |
| void PanTau::TauConstituent::setNPhotonsInShot | ( | int | nPhotons | ) |
Definition at line 247 of file TauConstituent.cxx.
| void PanTau::TauConstituent::setP4 | ( | float | pt, |
| float | eta, | ||
| float | phi, | ||
| float | m ) |
set the 4-vec
Definition at line 104 of file TauConstituent.cxx.
| void PanTau::TauConstituent::setPhi | ( | float | phi | ) |
| void PanTau::TauConstituent::setPt | ( | float | pt | ) |
|
virtual |
The type of the object as a simple enumeration, remains pure virtual in e/gamma.
Implements xAOD::IParticle.
Definition at line 146 of file TauConstituent.cxx.
|
protected |
Definition at line 163 of file TauConstituent.h.
|
protected |
Definition at line 164 of file TauConstituent.h.
|
protected |
Definition at line 170 of file TauConstituent.h.
|
private |
4-momentum object
Definition at line 157 of file TauConstituent.h.
Definition at line 166 of file TauConstituent.h.
|
protected |
Definition at line 169 of file TauConstituent.h.
|
protected |
Definition at line 162 of file TauConstituent.h.