ATLAS Offline Software
Loading...
Searching...
No Matches
TrigElectron Class Reference

File: TrigElectron.h. More...

#include <TrigElectron.h>

Inheritance diagram for TrigElectron:
Collaboration diagram for TrigElectron:

Public Types

enum  Kind {
  P4EETAPHIM , P4IPTCOTTHPHIM , P4PTETAPHIM , P4PXPYPZE ,
  UNKNOWN
}

Public Member Functions

 TrigElectron ()
 constructors; note: default constructor needed by POOL
 TrigElectron (unsigned int roi, float trkEtaAtCalo, float trkPhiAtCalo, float EToverPT, const TrigEMClusterContainer *cluster, unsigned int cl_index, const TrigInDetTrackCollection *track, unsigned int tr_index)
 constructor used to initialize TrigElectrons (there are no "set()" methods)
 TrigElectron (float pt, float eta, float phi, unsigned int roi, bool valid, float trkEtaAtCalo, float trkPhiAtCalo, float EToverPT, const ElementLink< TrigEMClusterContainer > &cluster, float caloEta, float caloPhi, float Rcore, float Eratio, float EThad, float F0, float F1, float F2, float F3, const ElementLink< TrigInDetTrackCollection > &track, TrigInDetTrack::AlgoId trackAlgo, float Zvtx, int nTRTHits, int nTRTHiThresholdHits)
 Initialize without accessing cluster/track objects.
 ~TrigElectron ()=default
int roiId () const
 accessor methods:
int roiWord () const
 OBSOLETE: should disappear in next iteration.
bool isValid () const
 accessor to get TrigElectron valid flag
TrigInDetTrack::AlgoId trackAlgo () const
 accessors to return the tracking quantities
float Zvtx () const
int nTRTHits () const
int nTRTHiThresholdHits () const
float nTRTHiTHitsRatio () const
int trackIndx () const
 accessor to return the track index in the collection and a reference to the TrigInDetTrackCollection itself
const TrigInDetTrackCollectiontrackColl () const
float trkPt () const
 accessor to get pT of electron candidate track
int charge () const
 accessor to return the track charge (sign of TrigInDetTrack pT)
float err_Pt () const
 accessors to get uncertainty in track parameters: Pt, eta, phi and Z of track perigee (Zvtx)
float err_trkPt () const
float err_eta () const
float err_phi () const
float err_Zvtx () const
float trkEtaAtCalo () const
 accessor to get eta and phi of electron candidate track extrapolated the calorimeter
float trkPhiAtCalo () const
float trkClusDeta () const
 accessors to get eta and phi difference between cluster and track extrapolated the calorimeter face (with -Pi,Pi limits)
float trkClusDphi () const
float DeltaEta1 () const
float DeltaPhi2 () const
float EtOverPt () const
 accessor to ratio of cluster Et to track Pt
float caloEta () const
 accessors to get cluster eta and phi (note baseclass eta and phi come from track)
float caloPhi () const
float Rcore () const
 accessors for shower shape quantities
float Reta () const
float Eratio () const
float EThad () const
float Ethad1 () const
float F0 () const
 accessors for calibrated energy fractions in each sampling - to reject noise
float F1 () const
float F2 () const
float F3 () const
const TrigEMClustercluster () const
 accessor to get pointer to cluster (TrigEMCluster)
const ElementLink< TrigEMClusterContainer > & clusterLink () const
const TrigInDetTracktrack () const
 accessor to get pointer to track (TrigInDetTrack)
const ElementLink< TrigInDetTrackCollection > & trackLink () const
virtual double pt () const
 get pt data member
virtual double eta () const
 get eta data member
virtual double phi () const
 get phi data member
virtual double m () const
 get mass data member
virtual void setPt (double thePt)
 set pt data member
virtual void setEta (double theEta)
 set eta data member
virtual void setPhi (double thePhi)
 set phi data member
virtual void setM (double theM)
 set mass data member
virtual void set4Mom (const I4Momentum &theI4Mom)
 set all 4-mom from another I4Momentum reference
virtual void set4Mom (const I4Momentum *const theI4Mom)
 set all 4-mom from another I4Momentum pointer
virtual void set4Mom (const CLHEP::HepLorentzVector &theHlv)
 set all 4-mom from a CLHEP HepLorentzVector
virtual const I4MomentumErrorerrors () const
 Access to errors, if available; returns 0 if no errors.
virtual void fillToken (INavigationToken &) const
virtual void fillToken (INavigationToken &, const std::any &) const
virtual double px () const
 x component of momentum
virtual double py () const
 y component of momentum
virtual double pz () const
 z component of momentum
virtual double e () const
 energy
virtual double p () const
 magnitude of 3-momentum.
virtual double p2 () const
 square of momentum magnitude
virtual double m2 () const
 mass squared
virtual double et () const
 transverse energy defined to be e*sin(theta)
virtual double iPt () const
 inverse of transverse momentum
virtual double rapidity () const
 rapidity
virtual double cosPhi () const
 cosinus phi
virtual double sinPhi () const
 sinus phi
virtual double cotTh () const
 cottan theta
virtual double cosTh () const
 cosinus theta
virtual double sinTh () const
 sinus theta
virtual double tanTh () const
 tan theta
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.
I4Momentum::Kind kind () const
 tells what kind of P4XYZT this is
virtual std::ostream & dump (std::ostream &out) const
 Print I4Momentum content.
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

Protected Attributes

double m_pt
double m_eta
double m_phi
double m_m

Private Attributes

unsigned int m_roiWord
 roi word unique to L1 RoI (note: different from HLT RoI id)
bool m_valid
 To certify "good" TrigElectrons: used to be necessary for studies; now basically always true for electrons produced by TrigL2IDCaloFex if not in AcceptAll mode (in which case this variable is always false).
TrigInDetTrack::AlgoId m_tr_Algo
 Tracking quantities: ID of the tracking algorithm that produced the track in this electron.
float m_tr_Zvtx
 Z of the track at closest approach (perigee) to the Z axis (maybe later to the beam?) given by the track finder.
int m_tr_nr_trt_hits
 number of TRT hits and high-threshold hits
int m_tr_nr_trt_hithresh_hits
float m_tr_eta_at_calo
 Track/Cluster matching quantities: eta and phi of track extrapolated to the calorimeter face.
float m_tr_phi_at_calo
float m_etoverpt
 Ratio of cluster transverse energy to track transv.momentum.
float m_cl_eta
 Calorimeter quantities:
Cluster eta and phi.
float m_cl_phi
float m_cl_Rcore
 Energy ratio in 3x7 and 7x7 cells in 2nd LAr sampling; Rcore = e237/e277.
float m_cl_Eratio
 Energy ratio in highest and 2nd highest strip pairs in 1st LAr sampling; Eratio = EmaxS1-E2ndS1 / EmaxS1+E2ndS1.
float m_cl_EThad
 ET in first hadronic sampling: EThad=Ehad1/cosh(fabs(eta)
float m_cl_e_frac_S0
 Calibrated overall and per-sampling energy - to be used for cuts.
float m_cl_e_frac_S1
float m_cl_e_frac_S2
float m_cl_e_frac_S3
ElementLink< TrigEMClusterContainerm_cluster
 ElementLinks to the track and calorimeter cluster in electron candidate.
ElementLink< TrigInDetTrackCollectionm_track

Detailed Description

File: TrigElectron.h.

Description: To be created by FEX algorithms in Level 2 chains. Encodes electron candidate. Should contain parameters that are used for cuts in L2 and point to original objects (track and EM cluster) so that the latter can be separated off for EDM slimming.

Design: Must be light and easy to serialize AND to store in ESD/AOD; since pointers don't work (copied by POOL), use ElementLinks instead (now – May 08 – being made serializable)

The idea is that the variables used for cuts should be kept in the TrigElectron class for redundancy. The remaining quantities, not used for cuts, are accessible from the ElementLinks to TrigEMCluster and TrigInDetTrack. This allows for EDM slimming (or thinning, whatever, removing unnecessary information) by not storing the cluster and track.

In practice, some calorimeter variables would have to be recalculated from the actual variables stored in TrigEMCluster. To avoid the time overhead, the original variables are copied.

Authour: R.Goncalo - Tue Sep 20 22:02:43 BST 2005

Modified: RG Mar 8 2006: replaced EMShowerMinimal with TrigEMCluster RG Mar 20 2006: added bool m_valid for hypos to validate elec. RG Nov 7 2006: to inherit from INav4M and 4-mom base RG May 22 2008: ElementLinks to track and cluster; change data members RG Apr 07 2009: add comparison and << operators RG May 18 2009: add TRT variables; remove obsolete validate() accessor RG Jun 22 2009: add some calorimeter vars. changed TRT accessor names

Definition at line 61 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

Member Enumeration Documentation

◆ Kind

enum I4Momentum::Kind
inherited
Enumerator
P4EETAPHIM 
P4IPTCOTTHPHIM 
P4PTETAPHIM 
P4PXPYPZE 
UNKNOWN 

Definition at line 33 of file I4Momentum.h.

Constructor & Destructor Documentation

◆ TrigElectron() [1/3]

TrigElectron::TrigElectron ( )

constructors; note: default constructor needed by POOL

File: TrigElectron.cxx.

Description: To be created by FEX algorithms in Level 2 chains. Encodes electron candidate. Should contain parameters that are used for cuts in L2 and point to original objects (track and EM cluster) so that the latter can be separated off for EDM slimming.

Design: Must be light and easy to serialize AND to store in ESD/AOD; since pointers don't work (copied by POOL), use ElementLinks instead (now – May 08 – being made serializable)

The idea is that the variables used for cuts should be kept in the TrigElectron class for redundancy. The remaining quantities, not used for cuts, are accessible from the ElementLinks to TrigEMCluster and TrigInDetTrack. This allows for EDM slimming (or thinning, whatever, removing unnecessary information) by not storing the cluster and track.

In practice, some calorimeter variables would have to be recalculated from the actual variables stored in TrigEMCluster. To avoid the time overhead, the original variables are copied.

Authour: R.Goncalo - Tue Sep 20 22:02:43 BST 2005

Modified: RG Mar 8 2006: replaced EMShowerMinimal with TrigEMCluster RG Mar 20 2006: added bool m_valid for hypos to validate elec. RG Nov 7 2006: to inherit from INav4M and 4-mom base RG May 22 2008: ElementLinks to track and cluster;change data members RG May 18 2009: add TRT variables Default constructor

Definition at line 46 of file TrigElectron.cxx.

46 :
49 m_roiWord(0),
50 m_valid(false),
52 m_tr_Zvtx(0),
57 m_etoverpt(0),
58 m_cl_eta(0),
59 m_cl_phi(0),
60 m_cl_Rcore(0),
61 m_cl_Eratio(0),
62 m_cl_EThad(0),
63 // m_cl_energy(0),
68{
69 m_cluster.reset();
70 m_track.reset();
71}
P4PtEtaPhiM()
default constructor
Definition P4PtEtaPhiM.h:83
float m_tr_eta_at_calo
Track/Cluster matching quantities: eta and phi of track extrapolated to the calorimeter face.
float m_cl_Eratio
Energy ratio in highest and 2nd highest strip pairs in 1st LAr sampling; Eratio = EmaxS1-E2ndS1 / Ema...
float m_cl_EThad
ET in first hadronic sampling: EThad=Ehad1/cosh(fabs(eta)
int m_tr_nr_trt_hits
number of TRT hits and high-threshold hits
float m_tr_Zvtx
Z of the track at closest approach (perigee) to the Z axis (maybe later to the beam?...
float m_cl_eta
Calorimeter quantities: Cluster eta and phi.
TrigInDetTrack::AlgoId m_tr_Algo
Tracking quantities: ID of the tracking algorithm that produced the track in this electron.
unsigned int m_roiWord
roi word unique to L1 RoI (note: different from HLT RoI id)
float m_cl_Rcore
Energy ratio in 3x7 and 7x7 cells in 2nd LAr sampling; Rcore = e237/e277.
ElementLink< TrigInDetTrackCollection > m_track
bool m_valid
To certify "good" TrigElectrons: used to be necessary for studies; now basically always true for elec...
ElementLink< TrigEMClusterContainer > m_cluster
ElementLinks to the track and calorimeter cluster in electron candidate.
float m_etoverpt
Ratio of cluster transverse energy to track transv.momentum.
float m_cl_e_frac_S0
Calibrated overall and per-sampling energy - to be used for cuts.
constexpr double electronMassInMeV
the mass of the electron (in MeV)

◆ TrigElectron() [2/3]

TrigElectron::TrigElectron ( unsigned int roi,
float trkEtaAtCalo,
float trkPhiAtCalo,
float EToverPT,
const TrigEMClusterContainer * cluster,
unsigned int cl_index,
const TrigInDetTrackCollection * track,
unsigned int tr_index )

constructor used to initialize TrigElectrons (there are no "set()" methods)

Constructor: Faster to pass TrigEMClusterContainer and TrigInDetTrackCollection pointers and indices to track and cluster, so that ElementLinks to track and EM cluster can be initialized quickly
Design choice: pass data member values as constructor parameters, rather than providing accessors to update these values later; 4-momentum variables can still be updated through the P4PtEtaPhiM maseclass accessors.

Set data members from tracking and calorimeter quantities. The idea is that the variables used for cuts should be kept in the TrigElectron class for redundancy. The remaining quantities, not used for cuts, are accessible from the ElementLinks to TrigEMCluster and TrigInDetTrack. This allows for EDM slimming (or thinning, whatever, removing unnecessary information) by not storing the cluster and track. In practice, some calorimeter variables would have to be recalculated from the actual variables stored in TrigEMCluster. To avoid the time overhead, the original variables are copied.

Set ElementLinks to TrigEMCluster and TriginDetTrack: use fast method with reference to collection + index (O(1)), instead of reference to track (O(n) for n elements in collection). Notes:

  1. the cluster container is held by steering; track container is per RoI
  2. if e-links not valid, just set data member links to default value

set data members from track quantities

Initialize 4-momentum base-class angular quantities from track data: assume that track parameters at perigee give better estimates of angular quantities near vertex

Set ElementLinks to TrigEMCluster and TriginDetTrack: use fast method with reference to collection + index (O(1)), instead of reference to track (O(n) for n elements in collection). Notes:

  1. the cluster container is held by steering; track container is per RoI
  2. if e-links not valid, just set data member links to default value

set data members from cluster quantities

Initialize 4-momentum base-class ET from cluster data: assume cluster quantities give better estimate of transverse energy

set other cluster-type data members

Definition at line 83 of file TrigElectron.cxx.

89 m_roiWord(roi),
90 m_valid(true),
91 m_tr_Zvtx(0),
96 m_etoverpt(EToverPT),
97 m_cl_eta(0),
98 m_cl_phi(0),
99 m_cl_Rcore(0),
100 m_cl_Eratio(0),
101 m_cl_EThad(0),
102 // m_cl_energy(0),
107{
108
119
120 // track variables
121 if (tr_coll != NULL && tr_coll->size() > tr_index) {
122
129 m_track.toIndexedElement(*tr_coll, tr_index);
130 if (!m_track.isValid()) {
131 m_track.reset();
132 m_valid = false;
133 }
134
136 const TrigInDetTrack* tr_ptr = (*tr_coll)[tr_index];
137
138 // get track author and nr. trt hits from track
139 m_tr_Algo = tr_ptr->algorithmId();
140 m_tr_nr_trt_hits = tr_ptr->NStrawHits();
142
146 if ( tr_ptr->param() != NULL ) {
147 m_tr_Zvtx = tr_ptr->param()->z0();
148 this->setEta(tr_ptr->param()->eta()); // set to track eta
149 this->setPhi(tr_ptr->param()->phi0()); // set to track phi
150 } else {
151 m_valid = false;
152 }
153
154 } else {
156 m_tr_Zvtx = 0;
157 m_valid = false;
158 }
159
160 // calorimeter variables
161 if (cl_coll != NULL && cl_coll->size() > cl_index) {
162
169 m_cluster.toIndexedElement(*cl_coll, cl_index);
170 if (!m_cluster.isValid()) {
171 m_cluster.reset();
172 m_valid = false;
173 }
174
176 const TrigEMCluster* cl_ptr = (*cl_coll)[cl_index];
177
180 this->setPt(cl_ptr->et()); // set to cluster ET
181
183 // eta-phi of cluster
184 m_cl_eta = cl_ptr->eta();
185 m_cl_phi = cl_ptr->phi();
186
187 // EThad
188 if (m_cl_eta != 0) {
189 m_cl_EThad = cl_ptr->ehad1()/cosh(fabs(m_cl_eta)); // Ehad1/cosh(fabs(eta) */
190 } else {
191 m_cl_EThad = cl_ptr->ehad1(); // Ehad1 (=EThad1)
192 }
193
194 // Rcore (test for positive energy to avoid zeros)
195 if (cl_ptr->e277() != 0) { // (VD) before it was '>'
196 m_cl_Rcore = cl_ptr->e237()/cl_ptr->e277();
197 } else {
198 m_cl_Rcore = 0;
199 m_valid = false;
200 }
201
202 // Eratio (test for positive energy to avoid zeros)
203 if (cl_ptr->emaxs1()+cl_ptr->e2tsts1() > 0) {
204 m_cl_Eratio = (cl_ptr->emaxs1()-cl_ptr->e2tsts1()) / (cl_ptr->emaxs1()+cl_ptr->e2tsts1());
205 } else {
206 m_cl_Eratio = 0;
207 m_valid = false;
208 }
209
210 // energy and energy fraction per sample
211 float tmp_cl_energy = cl_ptr->energy();
212 if (fabs(tmp_cl_energy) > 0.00001) { // avoid floating-point exceptions
213 m_cl_e_frac_S0 = ( cl_ptr->energy(CaloSampling::PreSamplerB) + cl_ptr->energy(CaloSampling::PreSamplerE)) / tmp_cl_energy;
214 m_cl_e_frac_S1 = ( cl_ptr->energy(CaloSampling::EMB1) + cl_ptr->energy(CaloSampling::EME1)) / tmp_cl_energy;
215 m_cl_e_frac_S2 = ( cl_ptr->energy(CaloSampling::EMB2) + cl_ptr->energy(CaloSampling::EME2)) / tmp_cl_energy;
216 m_cl_e_frac_S3 = ( cl_ptr->energy(CaloSampling::EMB3) + cl_ptr->energy(CaloSampling::EME3)) / tmp_cl_energy;
217 }
218
219 } else {
220 m_cl_eta = 0;
221 m_cl_phi = 0;
222 m_cl_Rcore = 0;
223 m_cl_Eratio = 0;
224 m_cl_EThad = 0;
225 m_valid = false;
226 // m_cl_energy = 0;
227 m_cl_e_frac_S0 = 0;
228 m_cl_e_frac_S1 = 0;
229 m_cl_e_frac_S2 = 0;
230 m_cl_e_frac_S3 = 0;
231 }
232}
Athena::TPCnvVers::Old TrigEMCluster
virtual void setEta(double theEta)
set eta data member
virtual void setPt(double thePt)
set pt data member
virtual void setPhi(double thePhi)
set phi data member
float ehad1() const
get hadronic Energy (first hadronic layer)
float emaxs1() const
get maximum energy in sampling 1 (strip layer)
float e2tsts1() const
get second maximum energy in sampling 1 (strip layer)
float e277() const
get Energy in a 7x7 cluster (no calibration) around hottest cell
float e237() const
get Energy in a 3x7 cluster (no calibration) around hottest cell
float trkEtaAtCalo() const
accessor to get eta and phi of electron candidate track extrapolated the calorimeter
void algorithmId(const AlgoId id)
int NTRHits() const
Number of high-threshold TRT hits associated with track.
int NStrawHits() const
Number of TRT hits associated with track.
void param(const TrigInDetTrackFitPar *param)

◆ TrigElectron() [3/3]

TrigElectron::TrigElectron ( float pt,
float eta,
float phi,
unsigned int roi,
bool valid,
float trkEtaAtCalo,
float trkPhiAtCalo,
float EToverPT,
const ElementLink< TrigEMClusterContainer > & cluster,
float caloEta,
float caloPhi,
float Rcore,
float Eratio,
float EThad,
float F0,
float F1,
float F2,
float F3,
const ElementLink< TrigInDetTrackCollection > & track,
TrigInDetTrack::AlgoId trackAlgo,
float Zvtx,
int nTRTHits,
int nTRTHiThresholdHits )

Initialize without accessing cluster/track objects.

Definition at line 236 of file TrigElectron.cxx.

268 m_roiWord(roi),
269 m_valid(valid),
276 m_etoverpt(EToverPT),
288{
289}
virtual double phi() const =0
phi in [-pi,pi[
virtual double pt() const =0
transverse momentum
virtual double eta() const =0
pseudo rapidity
TrigInDetTrack::AlgoId trackAlgo() const
accessors to return the tracking quantities
const TrigInDetTrack * track() const
accessor to get pointer to track (TrigInDetTrack)
float F0() const
accessors for calibrated energy fractions in each sampling - to reject noise
float caloEta() const
accessors to get cluster eta and phi (note baseclass eta and phi come from track)
float Rcore() const
accessors for shower shape quantities
const TrigEMCluster * cluster() const
accessor to get pointer to cluster (TrigEMCluster)

◆ ~TrigElectron()

TrigElectron::~TrigElectron ( )
default

Member Function Documentation

◆ caloEta()

float TrigElectron::caloEta ( ) const
inline

accessors to get cluster eta and phi (note baseclass eta and phi come from track)

Definition at line 162 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

162{ return m_cl_eta; }

◆ caloPhi()

float TrigElectron::caloPhi ( ) const
inline

Definition at line 163 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

163{ return m_cl_phi; }

◆ charge()

int TrigElectron::charge ( ) const
inline

accessor to return the track charge (sign of TrigInDetTrack pT)

Definition at line 136 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

136{ return (m_track.isValid() ? (int)((*m_track)->param()->pT()/fabs((*m_track)->param()->pT())) : 0); }

◆ cluster()

const TrigEMCluster * TrigElectron::cluster ( ) const

accessor to get pointer to cluster (TrigEMCluster)

Definition at line 293 of file TrigElectron.cxx.

294{
295 if (m_cluster.isValid()) {
296 return (*m_cluster);
297 } else {
298 return NULL;
299 }
300}

◆ clusterLink()

const ElementLink< TrigEMClusterContainer > & TrigElectron::clusterLink ( ) const
inline

Definition at line 180 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

181 { return m_cluster; }

◆ cosPhi()

double P4PtEtaPhiMBase::cosPhi ( ) const
virtualinherited

cosinus phi

Implements I4Momentum.

Definition at line 55 of file P4PtEtaPhiMBase.cxx.

56{
57 return std::cos(this->phi());
58}

◆ cosTh()

double P4PtEtaPhiMBase::cosTh ( ) const
virtualinherited

cosinus theta

Implements I4Momentum.

Definition at line 70 of file P4PtEtaPhiMBase.cxx.

71{
72 return std::tanh(this->eta());
73}

◆ cotTh()

double P4PtEtaPhiMBase::cotTh ( ) const
virtualinherited

cottan theta

Implements I4Momentum.

Definition at line 65 of file P4PtEtaPhiMBase.cxx.

66{
67 return std::sinh(this->eta());
68}

◆ DeltaEta1()

float TrigElectron::DeltaEta1 ( ) const
inline

◆ DeltaPhi2()

float TrigElectron::DeltaPhi2 ( ) const
inline

Definition at line 154 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

154 { return (fabs(m_tr_phi_at_calo-m_cl_phi)<M_PI ?
156 2*M_PI - fabs(m_tr_phi_at_calo-m_cl_phi)); }
#define M_PI

◆ dump()

std::ostream & P4PtEtaPhiMBase::dump ( std::ostream & out) const
virtualinherited

Print I4Momentum content.

Implements I4Momentum.

Definition at line 147 of file P4PtEtaPhiMBase.cxx.

148{
149 std::stringstream outx;
150 outx << "[pt,eta,phi,m] ="
151 << std::right << std::scientific << std::setprecision(8)
152 << std::setw(16) << this->pt()
153 << std::setw(16) << this->eta()
154 << std::setw(16) << this->phi()
155 << std::setw(16) << this->m();
156 out<<outx.str();
157
158 return out;
159
160}
virtual double m() const =0
mass

◆ e()

double P4PtEtaPhiMBase::e ( ) const
virtualinherited

energy

Implements I4Momentum.

Definition at line 13 of file P4PtEtaPhiMBase.cxx.

14{
15 const double theMass = this->m();
16 const double thePt = this->pt();
17 const double thePz = this->pz();
18
19 //DR from Frank Paige
20 // if negative pt point in the opposite direction
21 // BUT eta and phi still the same !!!
22
23 double eSign = (thePt >= 0.) ? +1. : -1.;
24 return eSign*std::sqrt(thePt*thePt + thePz*thePz + theMass*theMass);
25}
virtual double pz() const
z component of momentum

◆ Eratio()

float TrigElectron::Eratio ( ) const
inline

◆ err_eta()

float TrigElectron::err_eta ( ) const
inline

Definition at line 141 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

141{ return (m_track.isValid() ? (*m_track)->param()->eeta() : -1); }

◆ err_phi()

float TrigElectron::err_phi ( ) const
inline

Definition at line 142 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

142{ return (m_track.isValid() ? (*m_track)->param()->ephi0() : -1); }

◆ err_Pt()

float TrigElectron::err_Pt ( ) const
inline

accessors to get uncertainty in track parameters: Pt, eta, phi and Z of track perigee (Zvtx)

Definition at line 139 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

139{ return err_trkPt(); } // OBSOLETE: to be removed in next iteration

◆ err_trkPt()

float TrigElectron::err_trkPt ( ) const
inline

Definition at line 140 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

140{ return (m_track.isValid() ? (*m_track)->param()->epT() : -1); }

◆ err_Zvtx()

float TrigElectron::err_Zvtx ( ) const
inline

Definition at line 143 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

143{ return (m_track.isValid() ? (*m_track)->param()->ez0() : -1); }

◆ errors()

const I4MomentumError * P4PtEtaPhiM::errors ( ) const
virtualinherited

Access to errors, if available; returns 0 if no errors.

Reimplemented from P4PtEtaPhiMBase.

Definition at line 7 of file P4PtEtaPhiM.cxx.

8{
9 return 0;
10}

◆ et()

double P4PtEtaPhiMBase::et ( ) const
virtualinherited

transverse energy defined to be e*sin(theta)

Implements I4Momentum.

Definition at line 101 of file P4PtEtaPhiMBase.cxx.

102 {
103 return this->e()*this->sinTh();
104 }
virtual double sinTh() const
sinus theta
virtual double e() const
energy

◆ eta()

double P4PtEtaPhiM::eta ( void ) const
inlinevirtualinherited

get eta data member

Implements I4Momentum.

Definition at line 106 of file P4PtEtaPhiM.h.

107{ return m_eta;}
double m_eta
Definition P4PtEtaPhiM.h:77

◆ EThad()

float TrigElectron::EThad ( ) const
inline

Definition at line 169 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

169{ return m_cl_EThad; } // OBSOLETE name; to be removed in next iteration

◆ Ethad1()

float TrigElectron::Ethad1 ( ) const
inline

◆ EtOverPt()

float TrigElectron::EtOverPt ( ) const
inline

accessor to ratio of cluster Et to track Pt

Definition at line 159 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

159{ return m_etoverpt; }

◆ F0()

float TrigElectron::F0 ( ) const
inline

accessors for calibrated energy fractions in each sampling - to reject noise

Definition at line 173 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

173{ return m_cl_e_frac_S0; } // sampling 0

◆ F1()

float TrigElectron::F1 ( ) const
inline

Definition at line 174 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

174{ return m_cl_e_frac_S1; } // sampling 1

◆ F2()

float TrigElectron::F2 ( ) const
inline

Definition at line 175 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

175{ return m_cl_e_frac_S2; } // sampling 2

◆ F3()

float TrigElectron::F3 ( ) const
inline

Definition at line 176 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

176{ return m_cl_e_frac_S3; } // sampling 3

◆ fillToken() [1/2]

virtual void NavigableTerminalNode::fillToken ( INavigationToken & ) const
inlinevirtualinherited

Implements INavigable.

Definition at line 31 of file NavigableTerminalNode.h.

31{ };

◆ fillToken() [2/2]

virtual void NavigableTerminalNode::fillToken ( INavigationToken & ,
const std::any &  ) const
inlinevirtualinherited

Implements INavigable.

Definition at line 32 of file NavigableTerminalNode.h.

32{ };

◆ getAthenaBarCode()

virtual AthenaBarCode_t IAthenaBarCode::getAthenaBarCode ( ) const
inlinevirtualinherited

Reimplemented in Analysis::ParticleShallowClone, AthenaBarCodeBase, ParticleImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleImpl< ::Analysis::MuonNavigation, ::P4ImplIPtCotThPhiM >, ParticleImpl< ::Analysis::TauJetNavigation, ::P4ImplEEtaPhiM >, ParticleImpl< CompositeParticleNavigation, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< egammaNavigation, P4ImplEEtaPhiM >, ParticleImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleImpl< Navigable< DataVector< INavigable4Momentum >, double, std::vector< std::pair< ElementLink< DataVector< INavigable4Momentum > >, double > > >, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4ImplEEtaPhiM, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4ImplIPtCotThPhiM, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4PtEtaPhiM >, ParticleImpl< NeutrinoNavigation, P4ImplPxPyPzE >, ParticleImpl< TruthParticleNavigation, TruthParticleMomentum, TruthParticleBase >, ParticleSigStateImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleSigStateImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleSigStateImpl< Navigable< DataVector< INavigable4Momentum >, double, std::vector< std::pair< ElementLink< DataVector< INavigable4Momentum > >, double > > >, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >, ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE, ParticleEvent::Base >, and Rec::TrackParticle.

Definition at line 67 of file AthenaKernel/AthenaKernel/IAthenaBarCode.h.

67 {
68 return UNDEFINEDBARCODE;
69 }
static const AthenaBarCode_t UNDEFINEDBARCODE

◆ getVersion()

virtual AthenaBarCodeVersion_t IAthenaBarCode::getVersion ( ) const
inlinevirtualinherited

Reimplemented in Analysis::ParticleShallowClone, AthenaBarCodeBase, ParticleImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleImpl< ::Analysis::MuonNavigation, ::P4ImplIPtCotThPhiM >, ParticleImpl< ::Analysis::TauJetNavigation, ::P4ImplEEtaPhiM >, ParticleImpl< CompositeParticleNavigation, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< egammaNavigation, P4ImplEEtaPhiM >, ParticleImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleImpl< Navigable< DataVector< INavigable4Momentum >, double, std::vector< std::pair< ElementLink< DataVector< INavigable4Momentum > >, double > > >, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4ImplEEtaPhiM, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4ImplIPtCotThPhiM, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4PtEtaPhiM >, ParticleImpl< NeutrinoNavigation, P4ImplPxPyPzE >, ParticleImpl< TruthParticleNavigation, TruthParticleMomentum, TruthParticleBase >, ParticleSigStateImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleSigStateImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleSigStateImpl< Navigable< DataVector< INavigable4Momentum >, double, std::vector< std::pair< ElementLink< DataVector< INavigable4Momentum > >, double > > >, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >, ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE, ParticleEvent::Base >, and Rec::TrackParticle.

Definition at line 85 of file AthenaKernel/AthenaKernel/IAthenaBarCode.h.

85 {
86 return UNDEFINEDVERSION;
87 }
static const AthenaBarCode_t UNDEFINEDVERSION

◆ hasSameAthenaBarCode()

virtual bool IAthenaBarCode::hasSameAthenaBarCode ( const IAthenaBarCode & ) const
inlinevirtualinherited

Reimplemented in Analysis::ParticleShallowClone, AthenaBarCodeBase, ParticleImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleImpl< ::Analysis::MuonNavigation, ::P4ImplIPtCotThPhiM >, ParticleImpl< ::Analysis::TauJetNavigation, ::P4ImplEEtaPhiM >, ParticleImpl< CompositeParticleNavigation, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< egammaNavigation, P4ImplEEtaPhiM >, ParticleImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleImpl< Navigable< DataVector< INavigable4Momentum >, double, std::vector< std::pair< ElementLink< DataVector< INavigable4Momentum > >, double > > >, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4ImplEEtaPhiM, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4ImplIPtCotThPhiM, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4PtEtaPhiM >, ParticleImpl< NeutrinoNavigation, P4ImplPxPyPzE >, ParticleImpl< TruthParticleNavigation, TruthParticleMomentum, TruthParticleBase >, ParticleSigStateImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleSigStateImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleSigStateImpl< Navigable< DataVector< INavigable4Momentum >, double, std::vector< std::pair< ElementLink< DataVector< INavigable4Momentum > >, double > > >, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >, ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE, ParticleEvent::Base >, and Rec::TrackParticle.

Definition at line 77 of file AthenaKernel/AthenaKernel/IAthenaBarCode.h.

77 {
78 return false;
79 }

◆ hasSameAthenaBarCodeExceptVersion()

virtual bool IAthenaBarCode::hasSameAthenaBarCodeExceptVersion ( const IAthenaBarCode & ) const
inlinevirtualinherited

Reimplemented in Analysis::ParticleShallowClone, AthenaBarCodeBase, ParticleImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleImpl< ::Analysis::MuonNavigation, ::P4ImplIPtCotThPhiM >, ParticleImpl< ::Analysis::TauJetNavigation, ::P4ImplEEtaPhiM >, ParticleImpl< CompositeParticleNavigation, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< egammaNavigation, P4ImplEEtaPhiM >, ParticleImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleImpl< Navigable< DataVector< INavigable4Momentum >, double, std::vector< std::pair< ElementLink< DataVector< INavigable4Momentum > >, double > > >, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4ImplEEtaPhiM, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4ImplIPtCotThPhiM, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4PtEtaPhiM >, ParticleImpl< NeutrinoNavigation, P4ImplPxPyPzE >, ParticleImpl< TruthParticleNavigation, TruthParticleMomentum, TruthParticleBase >, ParticleSigStateImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleSigStateImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleSigStateImpl< Navigable< DataVector< INavigable4Momentum >, double, std::vector< std::pair< ElementLink< DataVector< INavigable4Momentum > >, double > > >, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >, ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE, ParticleEvent::Base >, and Rec::TrackParticle.

Definition at line 81 of file AthenaKernel/AthenaKernel/IAthenaBarCode.h.

81 {
82 return false;
83 }

◆ hlv()

CLHEP::HepLorentzVector P4PtEtaPhiMBase::hlv ( ) const
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.

129{
130 //minimize the number of calculation and dereference
131 const double theM = this->m();
132 // note that pt can have negative sign : then it points in opposite direction but eta and phi are still on the same side
133 const double thePt = this->pt();
134
135
136 const double thePx = thePt*this->cosPhi();
137 const double thePy = thePt*this->sinPhi();
138
139 const double thePz = thePt*this->cotTh();
140
141 const double theE=std::sqrt(thePt*thePt+thePz*thePz+theM*theM);
142
143
144 return CLHEP::HepLorentzVector( thePx, thePy, thePz, theE );
145}
virtual double sinPhi() const
sinus phi
virtual double cotTh() const
cottan theta
virtual double cosPhi() const
cosinus phi

◆ iPt()

double P4PtEtaPhiMBase::iPt ( ) const
virtualinherited

inverse of transverse momentum

Implements I4Momentum.

Definition at line 106 of file P4PtEtaPhiMBase.cxx.

107 { return 1./this->pt();
108 }

◆ isValid()

bool TrigElectron::isValid ( ) const
inline

accessor to get TrigElectron valid flag

Definition at line 118 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

118{ return m_valid; }

◆ kind()

I4Momentum::Kind P4PtEtaPhiMBase::kind ( ) const
inlinevirtualinherited

tells what kind of P4XYZT this is

Implements I4Momentum.

Definition at line 64 of file P4PtEtaPhiMBase.h.

64{ return I4Momentum::P4PTETAPHIM; };

◆ m()

double P4PtEtaPhiM::m ( void ) const
inlinevirtualinherited

get mass data member

Implements I4Momentum.

Definition at line 112 of file P4PtEtaPhiM.h.

113{ return m_m;}

◆ m2()

double P4PtEtaPhiMBase::m2 ( ) const
virtualinherited

mass squared

Implements I4Momentum.

Definition at line 50 of file P4PtEtaPhiMBase.cxx.

51{ const double theM=this->m();
52 return theM*theM;
53}

◆ newVersion()

virtual void IAthenaBarCode::newVersion ( )
inlinevirtualinherited

Reimplemented in AthenaBarCodeBase, ParticleImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleImpl< ::Analysis::MuonNavigation, ::P4ImplIPtCotThPhiM >, ParticleImpl< ::Analysis::TauJetNavigation, ::P4ImplEEtaPhiM >, ParticleImpl< CompositeParticleNavigation, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< egammaNavigation, P4ImplEEtaPhiM >, ParticleImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleImpl< Navigable< DataVector< INavigable4Momentum >, double, std::vector< std::pair< ElementLink< DataVector< INavigable4Momentum > >, double > > >, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4ImplEEtaPhiM, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4ImplIPtCotThPhiM, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4PtEtaPhiM >, ParticleImpl< NeutrinoNavigation, P4ImplPxPyPzE >, ParticleImpl< TruthParticleNavigation, TruthParticleMomentum, TruthParticleBase >, ParticleSigStateImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleSigStateImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleSigStateImpl< Navigable< DataVector< INavigable4Momentum >, double, std::vector< std::pair< ElementLink< DataVector< INavigable4Momentum > >, double > > >, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >, ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE, ParticleEvent::Base >, and Rec::TrackParticle.

Definition at line 89 of file AthenaKernel/AthenaKernel/IAthenaBarCode.h.

89 {
90 // throw std::runtime_error("IAthenaBarCode::newVersion():: can't newVersion() in the dummy implementation");
91 }

◆ nTRTHiTHitsRatio()

float TrigElectron::nTRTHiTHitsRatio ( ) const
inline

◆ nTRTHiThresholdHits()

int TrigElectron::nTRTHiThresholdHits ( ) const
inline

◆ nTRTHits()

int TrigElectron::nTRTHits ( ) const
inline

◆ p()

double P4PtEtaPhiMBase::p ( ) const
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.

28{
29 const double thePt = this->pt();
30 const double thePz = this->pz();
31
32 //DR from Frank Paige
33 // if negative pt point in the opposite direction
34 // BUT eta and phi still the same !!!
35
36 double eSign = (thePt >= 0.) ? +1. : -1.;
37 return eSign*std::sqrt(thePt*thePt + thePz*thePz);
38}

◆ p2()

double P4PtEtaPhiMBase::p2 ( ) const
virtualinherited

square of momentum magnitude

Implements I4Momentum.

Definition at line 40 of file P4PtEtaPhiMBase.cxx.

41{
42 /* This method has been implemented so as to give the same as would be obtained from pow((this->p()),2) with this->p() implemented according to Frank Paige's algorithm above. */
43
44 const double thePt = this->pt();
45 const double thePz = this->pz();
46
47 return thePt*thePt + thePz*thePz;
48}

◆ phi()

double P4PtEtaPhiM::phi ( void ) const
inlinevirtualinherited

get phi data member

Implements I4Momentum.

Definition at line 109 of file P4PtEtaPhiM.h.

110{ return m_phi;}
double m_phi
Definition P4PtEtaPhiM.h:78

◆ pt()

double P4PtEtaPhiM::pt ( void ) const
inlinevirtualinherited

get pt data member

Implements I4Momentum.

Definition at line 103 of file P4PtEtaPhiM.h.

104{ return m_pt;}
double m_pt
Definition P4PtEtaPhiM.h:76

◆ px()

double P4PtEtaPhiMBase::px ( ) const
virtualinherited

x component of momentum

Implements I4Momentum.

Definition at line 117 of file P4PtEtaPhiMBase.cxx.

118 { return this->pt()*this->cosPhi();
119 }

◆ py()

double P4PtEtaPhiMBase::py ( ) const
virtualinherited

y component of momentum

Implements I4Momentum.

Definition at line 121 of file P4PtEtaPhiMBase.cxx.

122 { return this->pt()*this->sinPhi();
123 }

◆ pz()

double P4PtEtaPhiMBase::pz ( ) const
virtualinherited

z component of momentum

Implements I4Momentum.

Definition at line 125 of file P4PtEtaPhiMBase.cxx.

126{ return this->pt()*this->cotTh(); }

◆ rapidity()

double P4PtEtaPhiMBase::rapidity ( ) const
virtualinherited

rapidity

Implements I4Momentum.

Definition at line 110 of file P4PtEtaPhiMBase.cxx.

111 {
112 const double theE=this->e();
113 const double thePz=this->pz();
114 return 0.5*std::log((theE+thePz)/(theE-thePz));
115 }

◆ Rcore()

float TrigElectron::Rcore ( ) const
inline

accessors for shower shape quantities

Definition at line 166 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

166{ return m_cl_Rcore; } // OBSOLETE name; to be removed in next iteration

◆ Reta()

float TrigElectron::Reta ( ) const
inline

◆ roiId()

int TrigElectron::roiId ( ) const
inline

accessor methods:

accessor to get RoI Word (unique to each L1 RoI)

Definition at line 114 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

114{ return m_roiWord; }

◆ roiWord()

int TrigElectron::roiWord ( ) const
inline

OBSOLETE: should disappear in next iteration.

Definition at line 115 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

115{ return m_roiWord; }

◆ set4Mom() [1/3]

void P4PtEtaPhiM::set4Mom ( const CLHEP::HepLorentzVector & theHlv)
inlinevirtualinherited

set all 4-mom from a CLHEP HepLorentzVector

Reimplemented from P4PtEtaPhiMBase.

Definition at line 140 of file P4PtEtaPhiM.h.

141{
142 m_pt=theHlv.perp();
143 m_eta=theHlv.eta();
144 //FIXME protect against negative energy
145 //assert(m_e >= 0,"P4PtEtaPhiM::set4Mom cannot have negative energy");
146 //assert(m_e >= 0);
147 // FIXME of the FIXME in fact it is not necessary to prtoect against negative energy
148 // and besides Seal assert does not work
149 // ASSERT( m_e >= 0 );
150 m_phi=theHlv.phi();
151 m_m=theHlv.m();
152
153
154}

◆ set4Mom() [2/3]

void P4PtEtaPhiM::set4Mom ( const I4Momentum & theI4Mom)
inlinevirtualinherited

set all 4-mom from another I4Momentum reference

Reimplemented from P4PtEtaPhiMBase.

Definition at line 127 of file P4PtEtaPhiM.h.

128{
129 m_pt=theI4Mom.pt();
130 m_eta=theI4Mom.eta();
131 m_phi=theI4Mom.phi();
132 m_m=theI4Mom.m();
133}

◆ set4Mom() [3/3]

void P4PtEtaPhiM::set4Mom ( const I4Momentum *const theI4Mom)
inlinevirtualinherited

set all 4-mom from another I4Momentum pointer

Reimplemented from P4PtEtaPhiMBase.

Definition at line 135 of file P4PtEtaPhiM.h.

136{
137 this->set4Mom(*theI4Mom);
138}
virtual void set4Mom(const I4Momentum &theI4Mom)
set all 4-mom from another I4Momentum reference

◆ setAthenaBarCode()

virtual void IAthenaBarCode::setAthenaBarCode ( AthenaBarCode_t )
inlinevirtualinherited

Reimplemented in AthenaBarCodeBase, ParticleImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleImpl< ::Analysis::MuonNavigation, ::P4ImplIPtCotThPhiM >, ParticleImpl< ::Analysis::TauJetNavigation, ::P4ImplEEtaPhiM >, ParticleImpl< CompositeParticleNavigation, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< egammaNavigation, P4ImplEEtaPhiM >, ParticleImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleImpl< Navigable< DataVector< INavigable4Momentum >, double, std::vector< std::pair< ElementLink< DataVector< INavigable4Momentum > >, double > > >, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4ImplEEtaPhiM, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4ImplIPtCotThPhiM, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4PtEtaPhiM >, ParticleImpl< NeutrinoNavigation, P4ImplPxPyPzE >, ParticleImpl< TruthParticleNavigation, TruthParticleMomentum, TruthParticleBase >, ParticleSigStateImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleSigStateImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleSigStateImpl< Navigable< DataVector< INavigable4Momentum >, double, std::vector< std::pair< ElementLink< DataVector< INavigable4Momentum > >, double > > >, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >, ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE, ParticleEvent::Base >, and Rec::TrackParticle.

Definition at line 71 of file AthenaKernel/AthenaKernel/IAthenaBarCode.h.

71 {
72 // throw std::runtime_error("IAthenaBarCode::setAthenaBarCode():: can't set AthenaBarCode in the dummy implementation");
73 }

◆ setEta()

void P4PtEtaPhiM::setEta ( double theEta)
inlinevirtualinherited

set eta data member

Definition at line 118 of file P4PtEtaPhiM.h.

119{ m_eta = theEta;}

◆ setM()

void P4PtEtaPhiM::setM ( double theM)
inlinevirtualinherited

set mass data member

Definition at line 124 of file P4PtEtaPhiM.h.

125{ m_m = theM;}

◆ setPhi()

void P4PtEtaPhiM::setPhi ( double thePhi)
inlinevirtualinherited

set phi data member

Definition at line 121 of file P4PtEtaPhiM.h.

122{ m_phi = thePhi;}

◆ setPt()

void P4PtEtaPhiM::setPt ( double thePt)
inlinevirtualinherited

set pt data member

Definition at line 115 of file P4PtEtaPhiM.h.

116{ m_pt = thePt;}

◆ setVersion()

virtual void IAthenaBarCode::setVersion ( AthenaBarCodeVersion_t )
inlinevirtualinherited

Reimplemented in AthenaBarCodeBase, ParticleImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleImpl< ::Analysis::MuonNavigation, ::P4ImplIPtCotThPhiM >, ParticleImpl< ::Analysis::TauJetNavigation, ::P4ImplEEtaPhiM >, ParticleImpl< CompositeParticleNavigation, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< egammaNavigation, P4ImplEEtaPhiM >, ParticleImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleImpl< Navigable< DataVector< INavigable4Momentum >, double, std::vector< std::pair< ElementLink< DataVector< INavigable4Momentum > >, double > > >, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4ImplEEtaPhiM, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4ImplIPtCotThPhiM, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4PtEtaPhiM >, ParticleImpl< NeutrinoNavigation, P4ImplPxPyPzE >, ParticleImpl< TruthParticleNavigation, TruthParticleMomentum, TruthParticleBase >, ParticleSigStateImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleSigStateImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleSigStateImpl< Navigable< DataVector< INavigable4Momentum >, double, std::vector< std::pair< ElementLink< DataVector< INavigable4Momentum > >, double > > >, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >, ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE, ParticleEvent::Base >, and Rec::TrackParticle.

Definition at line 93 of file AthenaKernel/AthenaKernel/IAthenaBarCode.h.

93 {
94 // throw std::runtime_error("IAthenaBarCode::setVersion():: can't setVersion() in the dummy implementation");
95 }

◆ sinPhi()

double P4PtEtaPhiMBase::sinPhi ( ) const
virtualinherited

sinus phi

Implements I4Momentum.

Definition at line 60 of file P4PtEtaPhiMBase.cxx.

61{
62 return std::sin(this->phi());
63}

◆ sinTh()

double P4PtEtaPhiMBase::sinTh ( ) const
virtualinherited

sinus theta

Implements I4Momentum.

Definition at line 75 of file P4PtEtaPhiMBase.cxx.

76{
77 // avoid numeric overflow if very large eta
78
79 double aEta=std::abs(this->eta());
80 if ( aEta>710) {
81 aEta=710;
82 }
83
84 return 1./std::cosh(aEta);
85}

◆ tanTh()

double P4PtEtaPhiMBase::tanTh ( ) const
virtualinherited

tan theta

Implements I4Momentum.

Definition at line 87 of file P4PtEtaPhiMBase.cxx.

88{
89 // avoid numeric overflow if very large eta
90
91 double theEta=this->eta();
92 if ( std::abs(theEta)>710) {
93 theEta=theEta>0 ? 710 : -710;
94 return 1./std::sinh(theEta);
95 }
96
97 return 1./std::sinh(this->eta());
98}

◆ track()

const TrigInDetTrack * TrigElectron::track ( ) const

accessor to get pointer to track (TrigInDetTrack)

Definition at line 304 of file TrigElectron.cxx.

305{
306 if (m_track.isValid()) {
307 return (*m_track); // note: TrigInDetTrackContainer is a vector<TrigInDetTrack*>
308 } else {
309 return NULL;
310 }
311}

◆ trackAlgo()

TrigInDetTrack::AlgoId TrigElectron::trackAlgo ( ) const
inline

accessors to return the tracking quantities

Definition at line 121 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

121{ return m_tr_Algo;}

◆ trackColl()

const TrigInDetTrackCollection * TrigElectron::trackColl ( ) const
inline

Definition at line 130 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

130{ return (m_track.isValid() ? m_track.getStorableObjectPointer() : NULL); }

◆ trackIndx()

int TrigElectron::trackIndx ( ) const
inline

accessor to return the track index in the collection and a reference to the TrigInDetTrackCollection itself

Definition at line 129 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

129{ return (m_track.isValid() ? m_track.index() : 0); }

◆ trackLink()

const ElementLink< TrigInDetTrackCollection > & TrigElectron::trackLink ( ) const
inline

Definition at line 185 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

186 { return m_track; }

◆ trkClusDeta()

float TrigElectron::trkClusDeta ( ) const
inline

accessors to get eta and phi difference between cluster and track extrapolated the calorimeter face (with -Pi,Pi limits)

Definition at line 151 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

151{ return (DeltaEta1()); } // old method name - RG 15/6/09

◆ trkClusDphi()

float TrigElectron::trkClusDphi ( ) const
inline

Definition at line 152 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

152{ return (DeltaPhi2()); } // old method name - RG 15/6/09

◆ trkEtaAtCalo()

float TrigElectron::trkEtaAtCalo ( ) const
inline

accessor to get eta and phi of electron candidate track extrapolated the calorimeter

Definition at line 146 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

146{ return m_tr_eta_at_calo; }

◆ trkPhiAtCalo()

float TrigElectron::trkPhiAtCalo ( ) const
inline

◆ trkPt()

float TrigElectron::trkPt ( ) const
inline

accessor to get pT of electron candidate track

Definition at line 133 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

133{ return (m_track.isValid() ? fabs((*m_track)->param()->pT()) : 0 ); }

◆ Zvtx()

float TrigElectron::Zvtx ( ) const
inline

Definition at line 122 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

122{ return m_tr_Zvtx; }

Member Data Documentation

◆ m_cl_e_frac_S0

float TrigElectron::m_cl_e_frac_S0
private

Calibrated overall and per-sampling energy - to be used for cuts.

Definition at line 242 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

◆ m_cl_e_frac_S1

float TrigElectron::m_cl_e_frac_S1
private

◆ m_cl_e_frac_S2

float TrigElectron::m_cl_e_frac_S2
private

◆ m_cl_e_frac_S3

float TrigElectron::m_cl_e_frac_S3
private

◆ m_cl_Eratio

float TrigElectron::m_cl_Eratio
private

Energy ratio in highest and 2nd highest strip pairs in 1st LAr sampling; Eratio = EmaxS1-E2ndS1 / EmaxS1+E2ndS1.

Definition at line 235 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

◆ m_cl_eta

float TrigElectron::m_cl_eta
private

Calorimeter quantities:
Cluster eta and phi.

Definition at line 226 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

◆ m_cl_EThad

float TrigElectron::m_cl_EThad
private

ET in first hadronic sampling: EThad=Ehad1/cosh(fabs(eta)

Definition at line 238 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

◆ m_cl_phi

float TrigElectron::m_cl_phi
private

◆ m_cl_Rcore

float TrigElectron::m_cl_Rcore
private

Energy ratio in 3x7 and 7x7 cells in 2nd LAr sampling; Rcore = e237/e277.

Definition at line 231 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

◆ m_cluster

ElementLink< TrigEMClusterContainer > TrigElectron::m_cluster
private

ElementLinks to the track and calorimeter cluster in electron candidate.

Definition at line 248 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

◆ m_eta

double P4PtEtaPhiM::m_eta
protectedinherited

Definition at line 77 of file P4PtEtaPhiM.h.

◆ m_etoverpt

float TrigElectron::m_etoverpt
private

Ratio of cluster transverse energy to track transv.momentum.

Definition at line 222 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

◆ m_m

double P4PtEtaPhiM::m_m
protectedinherited

Definition at line 79 of file P4PtEtaPhiM.h.

◆ m_phi

double P4PtEtaPhiM::m_phi
protectedinherited

Definition at line 78 of file P4PtEtaPhiM.h.

◆ m_pt

double P4PtEtaPhiM::m_pt
protectedinherited

Definition at line 76 of file P4PtEtaPhiM.h.

◆ m_roiWord

unsigned int TrigElectron::m_roiWord
private

roi word unique to L1 RoI (note: different from HLT RoI id)

Definition at line 191 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

◆ m_tr_Algo

TrigInDetTrack::AlgoId TrigElectron::m_tr_Algo
private

Tracking quantities: ID of the tracking algorithm that produced the track in this electron.

Given by the enum: AlgoId{NULLID=0,SITRACKID=1,IDSCANID=2,TRTLUTID=3,TRTXKID=4};

Definition at line 204 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

◆ m_tr_eta_at_calo

float TrigElectron::m_tr_eta_at_calo
private

Track/Cluster matching quantities: eta and phi of track extrapolated to the calorimeter face.

Definition at line 218 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

◆ m_tr_nr_trt_hithresh_hits

int TrigElectron::m_tr_nr_trt_hithresh_hits
private

◆ m_tr_nr_trt_hits

int TrigElectron::m_tr_nr_trt_hits
private

number of TRT hits and high-threshold hits

Definition at line 213 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

◆ m_tr_phi_at_calo

float TrigElectron::m_tr_phi_at_calo
private

◆ m_tr_Zvtx

float TrigElectron::m_tr_Zvtx
private

Z of the track at closest approach (perigee) to the Z axis (maybe later to the beam?) given by the track finder.

This is important to check for compatibility with a common vertex in the case of Z->ee signatures, for example

Definition at line 210 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

◆ m_track

ElementLink< TrigInDetTrackCollection > TrigElectron::m_track
private

◆ m_valid

bool TrigElectron::m_valid
private

To certify "good" TrigElectrons: used to be necessary for studies; now basically always true for electrons produced by TrigL2IDCaloFex if not in AcceptAll mode (in which case this variable is always false).

Can also be set to false in case of errors found in constructor (see TrigElectron.cxx).

Definition at line 198 of file Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h.

◆ UNDEFINEDBARCODE

const AthenaBarCode_t IAthenaBarCode::UNDEFINEDBARCODE = (AthenaBarCode_t)(-1)
staticinherited

Definition at line 52 of file AthenaKernel/AthenaKernel/IAthenaBarCode.h.

◆ UNDEFINEDVERSION

const AthenaBarCode_t IAthenaBarCode::UNDEFINEDVERSION = UNDEFINEDBARCODE
staticinherited

Definition at line 53 of file AthenaKernel/AthenaKernel/IAthenaBarCode.h.


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