56#include "AthLinks/ElementLink.h"
133 float trkPt()
const {
return (
m_track.isValid() ? fabs((*m_track)->param()->pT()) : 0 ); }
136 int charge()
const {
return (
m_track.isValid() ? (
int)((*m_track)->param()->pT()/fabs((*m_track)->param()->pT())) : 0); }
141 float err_eta()
const {
return (
m_track.isValid() ? (*m_track)->param()->eeta() : -1); }
142 float err_phi()
const {
return (
m_track.isValid() ? (*m_track)->param()->ephi0() : -1); }
143 float err_Zvtx()
const {
return (
m_track.isValid() ? (*m_track)->param()->ez0() : -1); }
256 return !( te1 == te2 );
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
MsgStream & operator<<(MsgStream &msg, const TrigElectron &te)
bool operator==(const TrigElectron &te1, const TrigElectron &te2)
Two TrigElectron are the same if they have the same cluster and the same track (and if valid,...
bool operator!=(const TrigElectron &te1, const TrigElectron &te2)
void diff(const TrigElectron &te1, const TrigElectron &te2, std::map< std::string, double > &v_diff)
Function compares two objects and returns "semi verbose" output in the form of map v_diff where varai...
P4PtEtaPhiM(const double pt, const double eta, const double phi, const double m)
constructor with all data members
virtual double pt() const
get pt data member
virtual double eta() const
get eta data member
virtual double phi() const
get phi data member
Container from TrigEMCluster type objects.
Class with calibrated variables for egamma clustering.
const ElementLink< TrigInDetTrackCollection > & trackLink() const
const ElementLink< TrigEMClusterContainer > & clusterLink() const
float m_tr_eta_at_calo
Track/Cluster matching quantities: eta and phi of track extrapolated to the calorimeter face.
bool isValid() const
accessor to get TrigElectron valid flag
TrigInDetTrack::AlgoId trackAlgo() const
accessors to return the tracking quantities
float m_cl_Eratio
Energy ratio in highest and 2nd highest strip pairs in 1st LAr sampling; Eratio = EmaxS1-E2ndS1 / Ema...
float trkClusDphi() const
float m_cl_EThad
ET in first hadronic sampling: EThad=Ehad1/cosh(fabs(eta)
float trkPhiAtCalo() const
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
const TrigInDetTrackCollection * trackColl() const
int roiWord() const
OBSOLETE: should disappear in next iteration.
int nTRTHiThresholdHits() const
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 nTRTHiTHitsRatio() const
float caloEta() const
accessors to get cluster eta and phi (note baseclass eta and phi come from track)
float EtOverPt() const
accessor to ratio of cluster Et to track Pt
float Rcore() const
accessors for shower shape quantities
float m_cl_eta
Calorimeter quantities: Cluster eta and phi.
float trkPt() const
accessor to get pT of electron candidate track
float trkClusDeta() const
accessors to get eta and phi difference between cluster and track extrapolated the calorimeter face (...
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.
int trackIndx() const
accessor to return the track index in the collection and a reference to the TrigInDetTrackCollection ...
int roiId() const
accessor methods:
const TrigEMCluster * cluster() const
accessor to get pointer to cluster (TrigEMCluster)
ElementLink< TrigInDetTrackCollection > m_track
bool m_valid
To certify "good" TrigElectrons: used to be necessary for studies; now basically always true for elec...
int charge() const
accessor to return the track charge (sign of TrigInDetTrack pT)
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 trkEtaAtCalo() const
accessor to get eta and phi of electron candidate track extrapolated the calorimeter
TrigElectron()
constructors; note: default constructor needed by POOL
float m_cl_e_frac_S0
Calibrated overall and per-sampling energy - to be used for cuts.
int m_tr_nr_trt_hithresh_hits
float err_Pt() const
accessors to get uncertainty in track parameters: Pt, eta, phi and Z of track perigee (Zvtx)
represents a LVL2 ID track