![]() |
ATLAS Offline Software
|
Em/Tau RoI class for analysis. More...
#include <EmTau_ROI.h>
Public Types | |
typedef std::vector< std::string > | thresholds_type |
Type storing the names of the passed thresholds. More... | |
typedef std::vector< float > | thr_value_type |
Type storing the values of the passed thresholds. More... | |
enum | Kind { P4EETAPHIM, P4IPTCOTTHPHIM, P4PTETAPHIM, P4PXPYPZE, UNKNOWN } |
Public Member Functions | |
EmTau_ROI (uint32_t roiWord, float eta, float phi, uint32_t thrPattern) | |
Constructor used when creating the object from RoIBResult data. More... | |
EmTau_ROI () | |
Default constructor (for persistency purposes) More... | |
virtual | ~EmTau_ROI () |
Destructor. More... | |
uint32_t | getROIWord () const |
Return the RoI word produced by the L1Calo hardware. More... | |
float | getEta () const |
Legacy function returning the eta coordinate of the RoI. More... | |
float | getPhi () const |
Legacy function returning the phi coordinate of the RoI. More... | |
float | getCore () const |
Return the ET of the RoI Core cluster (2x2 towers, EM+Had) More... | |
float | getEMClus () const |
Return the deposited ET from the "EM cluster". More... | |
float | getTauClus () const |
Return the deposited ET from the "tau cluster". More... | |
float | getEMIsol () const |
Return the EM calorimeter isolation (outer ring of EM towers) More... | |
float | getHadIsol () const |
Return the hadron calorimeter isolation (outer ring of had towers) More... | |
float | getHadCore () const |
Return the ET deposited in the inner hadronic isolation region (2x2 core) More... | |
uint32_t | getThrPattern () const |
Return the bit-pattern describing the passed thresholds. More... | |
const thresholds_type & | getThresholdNames () const |
Return the names of the passed threshodlds. More... | |
const thr_value_type & | getThresholdValues () const |
Return the values of the passed thresholds. More... | |
void | addThresholdName (thresholds_type::value_type thr) |
Add the name of a threshold that this RoI passed. More... | |
void | addThresholdValue (thr_value_type::value_type thr) |
Add the value of a threshold that this RoI passed. More... | |
void | setCore (float value) |
Set the ET deposited in the "RoI core". More... | |
void | setEMClus (float value) |
Set the deposited ET in the "EM cluster". More... | |
void | setTauClus (float value) |
Set the deposited ET in the "tau cluster". More... | |
void | setEMIsol (float value) |
Set the EM calorimeter isolation (outer ring of EM towers) More... | |
void | setHadIsol (float value) |
Set the hadron calorimeter isolation (outer ring of Had towers) More... | |
void | setHadCore (float value) |
Set the ET deposited in the inner hadronic isolation region (2x2 core) More... | |
virtual double | pt () const |
Return the pT of the highest threshold passed. More... | |
virtual double | eta () const |
Return the eta coordinate of the center of the RoI. More... | |
virtual double | phi () const |
Return the phi coordinate of the center of the RoI. More... | |
virtual double | m () const |
Return the mass of the object, always 0.0 for RoIs. More... | |
virtual double | px () const |
x component of momentum More... | |
virtual double | py () const |
y component of momentum More... | |
virtual double | pz () const |
z component of momentum More... | |
virtual double | e () const |
energy More... | |
virtual double | p () const |
magnitude of 3-momentum. More... | |
virtual double | p2 () const |
square of momentum magnitude More... | |
virtual double | m2 () const |
mass squared More... | |
virtual double | et () const |
transverse energy defined to be e*sin(theta) More... | |
virtual double | iPt () const |
inverse of transverse momentum More... | |
virtual double | rapidity () const |
rapidity More... | |
virtual double | cosPhi () const |
cosinus phi More... | |
virtual double | sinPhi () const |
sinus phi More... | |
virtual double | cotTh () const |
cottan theta More... | |
virtual double | cosTh () const |
cosinus theta More... | |
virtual double | sinTh () const |
sinus theta More... | |
virtual double | tanTh () const |
tan theta More... | |
virtual CLHEP::HepLorentzVector | hlv () const |
HepLorentzVector Special implementation from Frank Paige : if negative energy, points in opposite direction but eta and phi still the same More... | |
virtual const I4MomentumError * | errors () const |
Access to errors, if available; returns 0 if no errors. More... | |
virtual void | set4Mom (const I4Momentum &theI4Mom) |
set all 4-mom from another I4Momentum reference DUMMY IMPLEMENTATION More... | |
virtual void | set4Mom (const I4Momentum *const theI4Mom) |
set all 4-mom from another I4Momentum pointer DUMMY IMPLEMENTATION More... | |
virtual void | set4Mom (const CLHEP::HepLorentzVector &theHlv) |
set all 4-mom from a CLHEP HepLorentzVector DUMMY IMPLEMENTATION More... | |
I4Momentum::Kind | kind () const |
tells what kind of P4XYZT this is More... | |
virtual std::ostream & | dump (std::ostream &out) const |
Print I4Momentum content. More... | |
virtual void | fillToken (INavigationToken &) const |
virtual void | fillToken (INavigationToken &, const std::any &) const |
virtual AthenaBarCode_t | getAthenaBarCode () const |
virtual void | setAthenaBarCode (AthenaBarCode_t) |
virtual bool | hasSameAthenaBarCode (const IAthenaBarCode &) const |
virtual bool | hasSameAthenaBarCodeExceptVersion (const IAthenaBarCode &) const |
virtual AthenaBarCodeVersion_t | getVersion () const |
virtual void | newVersion () |
virtual void | setVersion (AthenaBarCodeVersion_t) |
Static Public Attributes | |
static const AthenaBarCode_t | UNDEFINEDBARCODE = (AthenaBarCode_t)(-1) |
static const AthenaBarCode_t | UNDEFINEDVERSION = UNDEFINEDBARCODE |
Private Attributes | |
uint32_t | m_roiWord |
32bit encoded ROI word More... | |
float | m_eta |
eta coordinate of RoI More... | |
float | m_phi |
phi coordinate of RoI More... | |
uint32_t | m_thrPattern |
threshold bit pattern More... | |
thresholds_type | m_thresholdNames |
Names of the passed thresholds. More... | |
thr_value_type | m_thresholdValues |
Values of the passed thresholds. More... | |
float | m_Core |
ET of RoI core cluster (used to select window) More... | |
float | m_EMClus |
Deposited ET in the "EM cluster". More... | |
float | m_TauClus |
Deposited ET in the "tau cluster". More... | |
float | m_EMIsol |
EM calorimeter isolation. More... | |
float | m_HadIsol |
Outer Hadron calorimeter isolation. More... | |
float | m_HadCore |
ET of inner hadronic isolation sum. More... | |
Em/Tau RoI class for analysis.
As the others, this RoI class also inherits from INavigable4Momentum to make handling it a bit easier in analyses.
Definition at line 32 of file EmTau_ROI.h.
typedef std::vector< float > EmTau_ROI::thr_value_type |
Type storing the values of the passed thresholds.
Definition at line 47 of file EmTau_ROI.h.
typedef std::vector< std::string > EmTau_ROI::thresholds_type |
Type storing the names of the passed thresholds.
Definition at line 45 of file EmTau_ROI.h.
|
inherited |
Enumerator | |
---|---|
P4EETAPHIM | |
P4IPTCOTTHPHIM | |
P4PTETAPHIM | |
P4PXPYPZE | |
UNKNOWN |
Definition at line 33 of file I4Momentum.h.
EmTau_ROI::EmTau_ROI | ( | uint32_t | roiWord, |
float | eta, | ||
float | phi, | ||
uint32_t | thrPattern | ||
) |
Constructor used when creating the object from RoIBResult data.
This is the constructor used by the RoIBResultToAOD algorithm.
It shouldn't be too interesting to the users.
Definition at line 15 of file EmTau_ROI.cxx.
EmTau_ROI::EmTau_ROI | ( | ) |
Default constructor (for persistency purposes)
This constructor just initialises every member to a reasonable starting value.
Definition at line 30 of file EmTau_ROI.cxx.
|
virtual |
Destructor.
The destructor is virtual, since the base classes have virtual functions...
Definition at line 46 of file EmTau_ROI.cxx.
|
inline |
|
inline |
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
Print I4Momentum
content.
Implements I4Momentum.
Definition at line 147 of file P4PtEtaPhiMBase.cxx.
|
virtualinherited |
|
virtualinherited |
Access to errors, if available; returns 0 if no errors.
Implements I4Momentum.
Reimplemented in P4PtEtaPhiM.
Definition at line 162 of file P4PtEtaPhiMBase.cxx.
|
virtualinherited |
transverse energy defined to be e*sin(theta)
Implements I4Momentum.
Definition at line 101 of file P4PtEtaPhiMBase.cxx.
|
inlinevirtual |
Return the eta coordinate of the center of the RoI.
Implements I4Momentum.
Definition at line 96 of file EmTau_ROI.h.
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
Reimplemented in Rec::TrackParticle, Analysis::ParticleShallowClone, ParticleSigStateImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleImpl< INavigable_t, I4Momentum_t, IParticle_t >, and AthenaBarCodeBase.
Definition at line 67 of file AthenaKernel/AthenaKernel/IAthenaBarCode.h.
|
inline |
Return the ET of the RoI Core cluster (2x2 towers, EM+Had)
Definition at line 56 of file EmTau_ROI.h.
|
inline |
|
inline |
Return the EM calorimeter isolation (outer ring of EM towers)
Definition at line 62 of file EmTau_ROI.h.
|
inline |
|
inline |
Return the ET deposited in the inner hadronic isolation region (2x2 core)
Definition at line 66 of file EmTau_ROI.h.
|
inline |
Return the hadron calorimeter isolation (outer ring of had towers)
Definition at line 64 of file EmTau_ROI.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtualinherited |
Reimplemented in Analysis::ParticleShallowClone, Rec::TrackParticle, ParticleSigStateImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleImpl< INavigable_t, I4Momentum_t, IParticle_t >, and AthenaBarCodeBase.
Definition at line 85 of file AthenaKernel/AthenaKernel/IAthenaBarCode.h.
|
inlinevirtualinherited |
Reimplemented in AthenaBarCodeBase, Rec::TrackParticle, Analysis::ParticleShallowClone, ParticleSigStateImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >, ParticleSigStateImpl< Navigable< DataVector< INavigable4Momentum >, double, std::vector< std::pair< ElementLink< DataVector< INavigable4Momentum > >, double > > >, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleImpl< NavigableTerminalNode, P4ImplEEtaPhiM, ParticleEvent::Base >, ParticleImpl< TruthParticleNavigation, TruthParticleMomentum, TruthParticleBase >, ParticleImpl< CompositeParticleNavigation, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4PtEtaPhiM >, ParticleImpl< ::Analysis::TauJetNavigation, ::P4ImplEEtaPhiM >, ParticleImpl< Navigable< DataVector< INavigable4Momentum >, double, std::vector< std::pair< ElementLink< DataVector< INavigable4Momentum > >, double > > >, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< egammaNavigation, P4ImplEEtaPhiM >, ParticleImpl< ::Analysis::MuonNavigation, ::P4ImplIPtCotThPhiM >, ParticleImpl< NavigableTerminalNode, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4ImplIPtCotThPhiM, ParticleEvent::Base >, and ParticleImpl< NeutrinoNavigation, P4ImplPxPyPzE >.
Definition at line 77 of file AthenaKernel/AthenaKernel/IAthenaBarCode.h.
|
inlinevirtualinherited |
Reimplemented in AthenaBarCodeBase, Rec::TrackParticle, Analysis::ParticleShallowClone, ParticleSigStateImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >, ParticleSigStateImpl< Navigable< DataVector< INavigable4Momentum >, double, std::vector< std::pair< ElementLink< DataVector< INavigable4Momentum > >, double > > >, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleImpl< NavigableTerminalNode, P4ImplEEtaPhiM, ParticleEvent::Base >, ParticleImpl< TruthParticleNavigation, TruthParticleMomentum, TruthParticleBase >, ParticleImpl< CompositeParticleNavigation, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4PtEtaPhiM >, ParticleImpl< ::Analysis::TauJetNavigation, ::P4ImplEEtaPhiM >, ParticleImpl< Navigable< DataVector< INavigable4Momentum >, double, std::vector< std::pair< ElementLink< DataVector< INavigable4Momentum > >, double > > >, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< egammaNavigation, P4ImplEEtaPhiM >, ParticleImpl< ::Analysis::MuonNavigation, ::P4ImplIPtCotThPhiM >, ParticleImpl< NavigableTerminalNode, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4ImplIPtCotThPhiM, ParticleEvent::Base >, and ParticleImpl< NeutrinoNavigation, P4ImplPxPyPzE >.
Definition at line 81 of file AthenaKernel/AthenaKernel/IAthenaBarCode.h.
|
virtualinherited |
HepLorentzVector Special implementation from Frank Paige : if negative energy, points in opposite direction but eta and phi still the same
Implements I4Momentum.
Definition at line 128 of file P4PtEtaPhiMBase.cxx.
|
virtualinherited |
inverse of transverse momentum
Implements I4Momentum.
Definition at line 106 of file P4PtEtaPhiMBase.cxx.
|
inlinevirtualinherited |
tells what kind of P4XYZT this is
Implements I4Momentum.
Definition at line 64 of file P4PtEtaPhiMBase.h.
|
inlinevirtual |
Return the mass of the object, always 0.0 for RoIs.
Implements I4Momentum.
Definition at line 100 of file EmTau_ROI.h.
|
virtualinherited |
|
inlinevirtualinherited |
Reimplemented in Rec::TrackParticle, ParticleSigStateImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >, ParticleSigStateImpl< Navigable< DataVector< INavigable4Momentum >, double, std::vector< std::pair< ElementLink< DataVector< INavigable4Momentum > >, double > > >, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleImpl< NavigableTerminalNode, P4ImplEEtaPhiM, ParticleEvent::Base >, ParticleImpl< TruthParticleNavigation, TruthParticleMomentum, TruthParticleBase >, ParticleImpl< CompositeParticleNavigation, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4PtEtaPhiM >, ParticleImpl< ::Analysis::TauJetNavigation, ::P4ImplEEtaPhiM >, ParticleImpl< Navigable< DataVector< INavigable4Momentum >, double, std::vector< std::pair< ElementLink< DataVector< INavigable4Momentum > >, double > > >, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< egammaNavigation, P4ImplEEtaPhiM >, ParticleImpl< ::Analysis::MuonNavigation, ::P4ImplIPtCotThPhiM >, ParticleImpl< NavigableTerminalNode, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4ImplIPtCotThPhiM, ParticleEvent::Base >, ParticleImpl< NeutrinoNavigation, P4ImplPxPyPzE >, and AthenaBarCodeBase.
Definition at line 89 of file AthenaKernel/AthenaKernel/IAthenaBarCode.h.
|
virtualinherited |
magnitude of 3-momentum.
Special implementation from Frank Paige : if negative energy p is negative but eta and phi still the same.
Implements I4Momentum.
Definition at line 27 of file P4PtEtaPhiMBase.cxx.
|
virtualinherited |
square of momentum magnitude
Implements I4Momentum.
Definition at line 40 of file P4PtEtaPhiMBase.cxx.
|
inlinevirtual |
Return the phi coordinate of the center of the RoI.
Implements I4Momentum.
Definition at line 98 of file EmTau_ROI.h.
|
virtual |
Return the pT of the highest threshold passed.
The pT of the EM/Tau RoI is calculated as the highest threshold value that this RoI passed.
It's not too useful like this, but that's on purpose. Any analysis has to use the detailed properties of the RoI, not just a single value describing its transverse momentum.
Implements I4Momentum.
Definition at line 58 of file EmTau_ROI.cxx.
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
set all 4-mom from a CLHEP HepLorentzVector DUMMY IMPLEMENTATION
Implements I4Momentum.
Reimplemented in P4PtEtaPhiM.
Definition at line 180 of file P4PtEtaPhiMBase.cxx.
|
virtualinherited |
set all 4-mom from another I4Momentum reference DUMMY IMPLEMENTATION
Implements I4Momentum.
Reimplemented in P4PtEtaPhiM.
Definition at line 167 of file P4PtEtaPhiMBase.cxx.
|
virtualinherited |
set all 4-mom from another I4Momentum pointer DUMMY IMPLEMENTATION
Implements I4Momentum.
Reimplemented in P4PtEtaPhiM.
Definition at line 173 of file P4PtEtaPhiMBase.cxx.
|
inlinevirtualinherited |
Reimplemented in Rec::TrackParticle, ParticleSigStateImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >, ParticleSigStateImpl< Navigable< DataVector< INavigable4Momentum >, double, std::vector< std::pair< ElementLink< DataVector< INavigable4Momentum > >, double > > >, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleImpl< NavigableTerminalNode, P4ImplEEtaPhiM, ParticleEvent::Base >, ParticleImpl< TruthParticleNavigation, TruthParticleMomentum, TruthParticleBase >, ParticleImpl< CompositeParticleNavigation, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4PtEtaPhiM >, ParticleImpl< ::Analysis::TauJetNavigation, ::P4ImplEEtaPhiM >, ParticleImpl< Navigable< DataVector< INavigable4Momentum >, double, std::vector< std::pair< ElementLink< DataVector< INavigable4Momentum > >, double > > >, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< egammaNavigation, P4ImplEEtaPhiM >, ParticleImpl< ::Analysis::MuonNavigation, ::P4ImplIPtCotThPhiM >, ParticleImpl< NavigableTerminalNode, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4ImplIPtCotThPhiM, ParticleEvent::Base >, ParticleImpl< NeutrinoNavigation, P4ImplPxPyPzE >, and AthenaBarCodeBase.
Definition at line 71 of file AthenaKernel/AthenaKernel/IAthenaBarCode.h.
|
inline |
Set the ET deposited in the "RoI core".
Definition at line 81 of file EmTau_ROI.h.
|
inline |
Set the deposited ET in the "EM cluster".
Definition at line 83 of file EmTau_ROI.h.
|
inline |
Set the EM calorimeter isolation (outer ring of EM towers)
Definition at line 87 of file EmTau_ROI.h.
|
inline |
Set the ET deposited in the inner hadronic isolation region (2x2 core)
Definition at line 91 of file EmTau_ROI.h.
|
inline |
Set the hadron calorimeter isolation (outer ring of Had towers)
Definition at line 89 of file EmTau_ROI.h.
|
inline |
Set the deposited ET in the "tau cluster".
Definition at line 85 of file EmTau_ROI.h.
|
inlinevirtualinherited |
Reimplemented in Rec::TrackParticle, ParticleSigStateImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >, ParticleSigStateImpl< Navigable< DataVector< INavigable4Momentum >, double, std::vector< std::pair< ElementLink< DataVector< INavigable4Momentum > >, double > > >, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleImpl< NavigableTerminalNode, P4ImplEEtaPhiM, ParticleEvent::Base >, ParticleImpl< TruthParticleNavigation, TruthParticleMomentum, TruthParticleBase >, ParticleImpl< CompositeParticleNavigation, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4PtEtaPhiM >, ParticleImpl< ::Analysis::TauJetNavigation, ::P4ImplEEtaPhiM >, ParticleImpl< Navigable< DataVector< INavigable4Momentum >, double, std::vector< std::pair< ElementLink< DataVector< INavigable4Momentum > >, double > > >, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< egammaNavigation, P4ImplEEtaPhiM >, ParticleImpl< ::Analysis::MuonNavigation, ::P4ImplIPtCotThPhiM >, ParticleImpl< NavigableTerminalNode, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4ImplIPtCotThPhiM, ParticleEvent::Base >, ParticleImpl< NeutrinoNavigation, P4ImplPxPyPzE >, and AthenaBarCodeBase.
Definition at line 93 of file AthenaKernel/AthenaKernel/IAthenaBarCode.h.
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
|
private |
ET of RoI core cluster (used to select window)
Definition at line 113 of file EmTau_ROI.h.
|
private |
Deposited ET in the "EM cluster".
Definition at line 114 of file EmTau_ROI.h.
|
private |
EM calorimeter isolation.
Definition at line 116 of file EmTau_ROI.h.
|
private |
eta coordinate of RoI
Definition at line 105 of file EmTau_ROI.h.
|
private |
ET of inner hadronic isolation sum.
Definition at line 118 of file EmTau_ROI.h.
|
private |
Outer Hadron calorimeter isolation.
Definition at line 117 of file EmTau_ROI.h.
|
private |
phi coordinate of RoI
Definition at line 106 of file EmTau_ROI.h.
|
private |
32bit encoded ROI word
Definition at line 103 of file EmTau_ROI.h.
|
private |
Deposited ET in the "tau cluster".
Definition at line 115 of file EmTau_ROI.h.
|
private |
Names of the passed thresholds.
Definition at line 110 of file EmTau_ROI.h.
|
private |
Values of the passed thresholds.
Definition at line 111 of file EmTau_ROI.h.
|
private |
threshold bit pattern
Definition at line 108 of file EmTau_ROI.h.
|
staticinherited |
Definition at line 52 of file AthenaKernel/AthenaKernel/IAthenaBarCode.h.
|
staticinherited |
Definition at line 53 of file AthenaKernel/AthenaKernel/IAthenaBarCode.h.