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"
21 
22 // ROOT include(s):
23 #include "Math/Vector4D.h"
24 
25 namespace xAOD {
26 
39  class TrigElectron_v1 : public IParticle {
40 
41  public:
44 
47 
49  virtual double pt() const;
51  virtual double eta() const { return caloEta(); }
53  virtual double phi() const { return caloPhi(); }
55  virtual double m() const { return 0.510998928; }
57  virtual double e() const;
59  virtual double rapidity() const;
60 
62  virtual FourMom_t p4() const;
63 
65  typedef ROOT::Math::LorentzVector<ROOT::Math::PtEtaPhiM4D<double> > GenVecFourMom_t;
66 
68  GenVecFourMom_t genvecP4() const;
69 
71  virtual Type::ObjectType type() const { return Type::TrigElectron; }
72 
74 
77 
79  uint32_t roiWord() const;
81  void setRoiWord( uint32_t roi );
82 
84  float zvtx() const;
86  void setZvtx( float zVtx );
87 
89  float charge() const;
91  void setCharge( float charge );
92 
94  int nTRTHits() const;
96  void setNTRTHits( int nTRTHits );
97 
99  int nTRTHiThresholdHits() const;
102 
104  float rcore() const;
106  void setRcore( float rcore );
107 
109  float eratio() const;
111  void setEratio( float eratio );
112 
114  float etHad() const;
116  void setEtHad( float etHad );
117 
119  float etHad1() const;
121  void setEtHad1( float etHad1 );
122 
124  float f0() const;
126  void setF0( float value );
127 
129  float f1() const;
131  void setF1( float value );
132 
134  float f2() const;
136  void setF2( float value );
137 
139  float f3() const;
141  void setF3( float value );
142 
144 
147 
148 
150  float trkEtaAtCalo() const;
152  void setTrkEtaAtCalo( float trEta );
153 
155  float trkPhiAtCalo() const;
157  void setTrkPhiAtCalo( float trPhi );
158 
160  float etOverPt() const;
162  void setEtOverPt( float etOverpt );
163 
165  float trkClusDeta() const;
167  float trkClusDphi() const;
168 
170  void setPt( double pt );
171 
173  float caloEta() const;
175  void setCaloEta( float caloEta );
176 
178  float caloPhi() const;
180  void setCaloPhi( float caloPhi );
181 
183 
186 
189 
191  const TrigEMCluster* emCluster() const;
196 
199 
201  const TrackParticle* trackParticle() const;
206 
208 
210  void init( uint32_t roi,
211  float trkEtaAtCalo, float trkPhiAtCalo, float etOverPt,
212  const EMClusterLink_t& clLink,
213  const TrackParticleLink_t& tpLink );
214 
215 
216  }; // class TrigElectron_v1
217 
218 } // namespace xAOD
219 
220 #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:39
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:65
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.
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:188
xAOD::TrigElectron_v1::TrackParticleLink_t
ElementLink< TrackParticleContainer > TrackParticleLink_t
The type of the track particle link.
Definition: TrigElectron_v1.h:198
xAOD::TrigElectron_v1::m
virtual double m() const
The invariant mass of the particle.
Definition: TrigElectron_v1.h:55
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:53
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:51
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:71
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.