ATLAS Offline Software
TrigElectron_v1.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // $Id: TrigElectron_v1.h 631115 2014-11-26 08:34:25Z gwatts $
8 #ifndef XAODTRIGEGAMMA_VERSIONS_TRIGELECTRON_V1_H
9 #define XAODTRIGEGAMMA_VERSIONS_TRIGELECTRON_V1_H
10 
11 // System include(s):
12 extern "C" {
13 # include <stdint.h>
14 }
15 
16 // EDM include(s):
17 #include "AthLinks/ElementLink.h"
18 #include "xAODBase/IParticle.h"
22 
23 // ROOT include(s):
24 #include "Math/Vector4D.h"
25 
26 namespace xAOD {
27 
40  class TrigElectron_v1 : public IParticle {
41 
42  public:
45 
48 
50  virtual double pt() const;
52  virtual double eta() const { return caloEta(); }
54  virtual double phi() const { return caloPhi(); }
56  virtual double m() const { return ParticleConstants::electronMassInMeV; }
58  virtual double e() const;
60  virtual double rapidity() const;
61 
63  virtual FourMom_t p4() const;
64 
66  typedef ROOT::Math::LorentzVector<ROOT::Math::PtEtaPhiM4D<double> > GenVecFourMom_t;
67 
69  GenVecFourMom_t genvecP4() const;
70 
72  virtual Type::ObjectType type() const { return Type::TrigElectron; }
73 
75 
78 
80  uint32_t roiWord() const;
82  void setRoiWord( uint32_t roi );
83 
85  float zvtx() const;
87  void setZvtx( float zVtx );
88 
90  float charge() const;
92  void setCharge( float charge );
93 
95  int nTRTHits() const;
97  void setNTRTHits( int nTRTHits );
98 
100  int nTRTHiThresholdHits() const;
103 
105  float rcore() const;
107  void setRcore( float rcore );
108 
110  float eratio() const;
112  void setEratio( float eratio );
113 
115  float etHad() const;
117  void setEtHad( float etHad );
118 
120  float etHad1() const;
122  void setEtHad1( float etHad1 );
123 
125  float f0() const;
127  void setF0( float value );
128 
130  float f1() const;
132  void setF1( float value );
133 
135  float f2() const;
137  void setF2( float value );
138 
140  float f3() const;
142  void setF3( float value );
143 
145 
148 
149 
151  float trkEtaAtCalo() const;
153  void setTrkEtaAtCalo( float trEta );
154 
156  float trkPhiAtCalo() const;
158  void setTrkPhiAtCalo( float trPhi );
159 
161  float etOverPt() const;
163  void setEtOverPt( float etOverpt );
164 
166  float trkClusDeta() const;
168  float trkClusDphi() const;
169 
171  void setPt( double pt );
172 
174  float caloEta() const;
176  void setCaloEta( float caloEta );
177 
179  float caloPhi() const;
181  void setCaloPhi( float caloPhi );
182 
184 
187 
190 
192  const TrigEMCluster* emCluster() const;
197 
200 
202  const TrackParticle* trackParticle() const;
207 
209 
211  void init( uint32_t roi,
212  float trkEtaAtCalo, float trkPhiAtCalo, float etOverPt,
213  const EMClusterLink_t& clLink,
214  const TrackParticleLink_t& tpLink );
215 
216 
217  }; // class TrigElectron_v1
218 
219 } // namespace xAOD
220 
221 #endif // not XAODTRIGEGAMMA_VERSIONS_TRIGELECTRON_V1_H
xAOD::TrigElectron_v1::f3
float f3() const
Documentation to be added.
xAOD::TrigElectron_v1::setEratio
void setEratio(float eratio)
Documentation to be added.
xAOD::TrigElectron_v1
Class describing an electron reconstructed in the HLT.
Definition: TrigElectron_v1.h:40
xAOD::TrigElectron_v1::e
virtual double e() const
The total energy of the particle.
Definition: TrigElectron_v1.cxx:41
xAOD::TrigElectron_v1::etHad1
float etHad1() const
Documentation to be added.
xAOD::TrigElectron_v1::GenVecFourMom_t
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiM4D< double > > GenVecFourMom_t
Base 4 Momentum type for egamma.
Definition: TrigElectron_v1.h:66
IParticle.h
xAOD::TrigElectron_v1::nTRTHiThresholdHits
int nTRTHiThresholdHits() const
Get the number of high-threshold TRT hits used in the reconstruction.
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
xAOD::TrigElectron_v1::roiWord
uint32_t roiWord() const
Get the RoI word that seeded the reconstruction of this object.
xAOD::TrigElectron_v1::setPt
void setPt(double pt)
Set the transverse momentum ( ) of the electron.
xAOD::TrigElectron_v1::pt
virtual double pt() const
The transverse momentum ( ) of the particle.
athena.value
value
Definition: athena.py:124
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::TrigElectron_v1::f2
float f2() const
Documentation to be added.
xAOD::IParticle
Class providing the definition of the 4-vector interface.
Definition: Event/xAOD/xAODBase/xAODBase/IParticle.h:41
xAOD::TrigElectron_v1::emCluster
const TrigEMCluster * emCluster() const
The associated EM cluster, as a simple pointer.
xAOD::TrigElectron_v1::trkClusDeta
float trkClusDeta() const
The absolute value of the track-calo eta measurement difference.
xAOD::TrigElectron_v1::setTrackParticleLink
void setTrackParticleLink(const TrackParticleLink_t &value)
Set the ElementLink pointing to the track particle constituent.
xAOD::TrigElectron_v1::setRoiWord
void setRoiWord(uint32_t roi)
Set the RoI word that seeded the reconstruction of this object.
xAOD::TrigElectron_v1::setNTRTHiThresholdHits
void setNTRTHiThresholdHits(int nTRTHiThresholdHits)
Set the number of high-threshold TRT hits used in the reconstruction.
xAOD::TrigElectron_v1::setF1
void setF1(float value)
Documentation to be added.
xAOD::IParticle::FourMom_t
TLorentzVector FourMom_t
Definition of the 4-momentum type.
Definition: Event/xAOD/xAODBase/xAODBase/IParticle.h:69
xAOD::TrigElectron_v1::trkEtaAtCalo
float trkEtaAtCalo() const
Get the track's pseudorapidity extrapolated to the calorimeter.
xAOD::TrigElectron_v1::setF0
void setF0(float value)
Documentation to be added.
xAOD::TrigElectron_v1::eratio
float eratio() const
Documentation to be added.
ParticleConstants.h
xAOD::TrigElectron_v1::trkPhiAtCalo
float trkPhiAtCalo() const
Get the track's azimuthal angle extrapolated to the calorimeter.
xAOD::TrigElectron_v1::setEmClusterLink
void setEmClusterLink(const EMClusterLink_t &value)
Set the ElementLink pointing to the EM cluster constituent.
xAOD::TrigElectron_v1::setTrkPhiAtCalo
void setTrkPhiAtCalo(float trPhi)
Set the track's azimuthal angle extrapolated to the calorimeter.
xAOD::TrigElectron_v1::setCharge
void setCharge(float charge)
Set the charge of the electron.
xAOD::TrigElectron_v1::etOverPt
float etOverPt() const
Get for the electron.
xAOD::TrigElectron_v1::emClusterLink
const EMClusterLink_t & emClusterLink() const
The associated EM cluster, as an ElementLink.
xAOD::TrigElectron_v1::setNTRTHits
void setNTRTHits(int nTRTHits)
Set the number of TRT hits that were used in the reconstruction.
xAOD::TrigElectron_v1::trackParticleLink
const TrackParticleLink_t & trackParticleLink() const
The associated track particle, as an ElementLink.
xAOD::TrigElectron_v1::charge
float charge() const
Get the charge of the electron.
xAOD::TrigElectron_v1::rcore
float rcore() const
Documentation to be added.
xAOD::TrigElectron_v1::EMClusterLink_t
ElementLink< TrigEMClusterContainer > EMClusterLink_t
Type of the EM cluster link.
Definition: TrigElectron_v1.h:189
xAOD::TrigElectron_v1::TrackParticleLink_t
ElementLink< TrackParticleContainer > TrackParticleLink_t
The type of the track particle link.
Definition: TrigElectron_v1.h:199
xAOD::TrigElectron_v1::m
virtual double m() const
The invariant mass of the particle.
Definition: TrigElectron_v1.h:56
xAOD::TrigElectron_v1::setCaloEta
void setCaloEta(float caloEta)
Set the pseudorapidity ( ) of the electron in the calorimeter.
xAOD::TrigElectron_v1::phi
virtual double phi() const
The azimuthal angle ( ) of the particle.
Definition: TrigElectron_v1.h:54
xAOD::TrigElectron_v1::f1
float f1() const
Documentation to be added.
xAOD::TrigElectron_v1::setCaloPhi
void setCaloPhi(float caloPhi)
Set the azimuthal angle ( ) of the electron in the calorimeter.
xAOD::TrigElectron_v1::init
void init(uint32_t roi, float trkEtaAtCalo, float trkPhiAtCalo, float etOverPt, const EMClusterLink_t &clLink, const TrackParticleLink_t &tpLink)
Initialisation function, setting most properties of the object.
xAOD::TrigElectron_v1::eta
virtual double eta() const
The pseudorapidity ( ) of the particle.
Definition: TrigElectron_v1.h:52
xAOD::TrigElectron
TrigElectron_v1 TrigElectron
Declare the latest version of the class.
Definition: Event/xAOD/xAODTrigEgamma/xAODTrigEgamma/TrigElectron.h:16
xAOD::TrigElectron_v1::type
virtual Type::ObjectType type() const
The type of the object as a simple enumeration.
Definition: TrigElectron_v1.h:72
TrigEMClusterContainer.h
xAOD::TrigElectron_v1::zvtx
float zvtx() const
Get the Z position of the vertex that the electron is associated to.
xAOD::TrigElectron_v1::genvecP4
GenVecFourMom_t genvecP4() const
The full 4-momentum of the particle : internal egamma type.
Definition: TrigElectron_v1.cxx:69
xAOD::TrigElectron_v1::setF3
void setF3(float value)
Documentation to be added.
xAOD::TrigElectron_v1::setTrkEtaAtCalo
void setTrkEtaAtCalo(float trEta)
Set the track's pseudorapidity extrapolated to the calorimeter.
xAOD::TrigElectron_v1::trkClusDphi
float trkClusDphi() const
The absolute value of the track-calo phi measurement difference.
xAOD::TrigElectron_v1::nTRTHits
int nTRTHits() const
Get the number of TRT hits that were used in the reconstruction.
xAOD::TrigElectron_v1::p4
virtual FourMom_t p4() const
The full 4-momentum of the particle.
Definition: TrigElectron_v1.cxx:62
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
xAOD::TrigElectron_v1::caloPhi
float caloPhi() const
Azimuthal angle ( ) of the electron in the calorimeter.
xAOD::TrigElectron_v1::trackParticle
const TrackParticle * trackParticle() const
The associated track particle, as a simple pointer.
xAOD::TrigEMCluster_v1
Description of a trigger EM cluster.
Definition: TrigEMCluster_v1.h:28
xAODType::ObjectType
ObjectType
Type of objects that have a representation in the xAOD EDM.
Definition: ObjectType.h:32
xAOD::TrigElectron_v1::f0
float f0() const
Documentation to be added.
xAOD::TrigElectron_v1::setRcore
void setRcore(float rcore)
Documentation to be added.
xAOD::TrigElectron_v1::TrigElectron_v1
TrigElectron_v1()
Default constructor.
Definition: TrigElectron_v1.cxx:23
xAOD::TrigElectron_v1::setZvtx
void setZvtx(float zVtx)
Set the Z position of the vertex that the electron is associated to.
TrackParticleContainer.h
xAOD::TrigElectron_v1::caloEta
float caloEta() const
Pseudorapidity ( ) of the electron in the calorimeter.
xAOD::TrigElectron_v1::setEtHad1
void setEtHad1(float etHad1)
Documentation to be added.
xAOD::TrigElectron_v1::setEtHad
void setEtHad(float etHad)
Documentation to be added.
xAOD::TrigElectron_v1::rapidity
virtual double rapidity() const
The true rapidity (y) of the particle.
Definition: TrigElectron_v1.cxx:52
xAOD::TrigElectron_v1::setEtOverPt
void setEtOverPt(float etOverpt)
Set for the electron.
xAOD::TrigElectron_v1::etHad
float etHad() const
Documentation to be added.
xAOD::TrigElectron_v1::setF2
void setF2(float value)
Documentation to be added.
ParticleConstants::PDG2011::electronMassInMeV
constexpr double electronMassInMeV
the mass of the electron (in MeV)
Definition: ParticleConstants.h:26