ATLAS Offline Software
Public Types | Public Member Functions | Static Public Attributes | Private Attributes | List of all members
TrigT2Jet Class Reference

LVL2 Trigger Jet Class. More...

#include <TrigT2Jet.h>

Inheritance diagram for TrigT2Jet:
Collaboration diagram for TrigT2Jet:

Public Types

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

Public Member Functions

 TrigT2Jet ()
 Constructor. More...
 
 ~TrigT2Jet ()
 Destructor. More...
 
double e () const
 Return jet energy. More...
 
double ehad0 () const
 Return the hadronic energy of the jet, calculated before calibration. More...
 
double eem0 () const
 Return the electromagnetic energy of the jet, calculated before the calibration. More...
 
double eta () const
 Return jet eta. More...
 
double phi () const
 Return jet phi. More...
 
double m () const
 Return the jet mass - if we constrain, no need to store. More...
 
unsigned int RoIword () const
 Return the cone Radius. More...
 
std::vector< Trig3Momentum > * grid ()
 Trig3Momentum entities making part of Jet are stored in a grid. More...
 
const std::vector< Trig3Momentum > * grid () const
 
int nLeadingCells () const
 Return nLeadingCells (e.g. More...
 
float hecf () const
 Return fraction of energy in HEC. More...
 
float jetQuality () const
 Return fraction of jet energy from bad cells. More...
 
float emf () const
 Return fraction of energy in EMC. More...
 
float jetTimeCells () const
 Return jet time calculated from cells. More...
 
void setE (double e)
 set Jet energy More...
 
void setEhad0 (double ehad)
 Set Hadronic energy. More...
 
void setEem0 (double eem)
 Set Electromagnetic energy. More...
 
void setEta (double eta)
 set Jet eta More...
 
void setPhi (double phi)
 set Jet phi More...
 
void setGrid (std::vector< Trig3Momentum > *grid)
 set Jet cone Radius More...
 
void set_RoIword (unsigned int word)
 set RoI Word More...
 
void setNLeadingCells (int nLeadingCells)
 Set nLeadingCells (e.g. More...
 
void setHecf (float hecf)
 Set fraction of energy in HEC. More...
 
void setJetQuality (float jetQuality)
 Set fraction of jet energy from bad cells. More...
 
void setEmf (float emf)
 Set fraction of energy in EMC. More...
 
void setJetTimeCells (float jetTimeCells)
 Set jet time calculated from cells. 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 et () const
 transverse energy defined to be e*sin(theta) 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 pt () const
 transverse momentum 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 I4MomentumErrorerrors () 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=std::cout) 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

double m_e
 Jet energy. More...
 
double m_ehad0
 Hadronic Jet Energy before calibration. More...
 
double m_eem0
 Electromagnetic Jet Energy before calibration. More...
 
double m_eta
 Jet eta. More...
 
double m_phi
 Jet phi. More...
 
std::vector< Trig3Momentum > * m_grid
 Jet coneRadius. More...
 
unsigned int m_roiWord
 RoI Word. More...
 
int m_nLeadingCells
 Jet nLeadingCells (e.g. More...
 
float m_hecf
 Fraction of energy in HEC. More...
 
float m_jetQuality
 fraction of jet energy from bad cells More...
 
float m_emf
 Fraction of energy in EMC. More...
 
float m_jetTimeCells
 Jet time. More...
 

Detailed Description

LVL2 Trigger Jet Class.

Definition at line 31 of file TrigT2Jet.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

◆ TrigT2Jet()

TrigT2Jet::TrigT2Jet ( )

Constructor.

Definition at line 9 of file TrigT2Jet.cxx.

9  :
11 {}

◆ ~TrigT2Jet()

TrigT2Jet::~TrigT2Jet ( )

Destructor.

Definition at line 13 of file TrigT2Jet.cxx.

13  {
14  delete m_grid;
15 }

Member Function Documentation

◆ cosPhi()

double P4EEtaPhiMBase::cosPhi ( ) const
virtualinherited

cosinus phi

Implements I4Momentum.

Reimplemented in CaloCell, and CaloVertexedCell.

Definition at line 54 of file P4EEtaPhiMBase.cxx.

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

◆ cosTh()

double P4EEtaPhiMBase::cosTh ( ) const
virtualinherited

cosinus theta

Implements I4Momentum.

Reimplemented in CaloCell, and CaloVertexedCell.

Definition at line 82 of file P4EEtaPhiMBase.cxx.

83 {
84  return std::tanh(this->eta());
85 }

◆ cotTh()

double P4EEtaPhiMBase::cotTh ( ) const
virtualinherited

cottan theta

Implements I4Momentum.

Reimplemented in CaloCell.

Definition at line 77 of file P4EEtaPhiMBase.cxx.

78 {
79  return std::sinh(this->eta());
80 }

◆ dump()

std::ostream & P4EEtaPhiMBase::dump ( std::ostream &  out = std::cout) const
virtualinherited

Print I4Momentum content.

Implements I4Momentum.

Definition at line 159 of file P4EEtaPhiMBase.cxx.

160 {
161 
162  std::stringstream outx;
163  outx << "[e,eta,phi,m] ="
164  << std::right << std::scientific << std::setprecision(8)
165  << std::setw(16) << this->e()
166  << std::setw(16) << this->eta()
167  << std::setw(16) << this->phi()
168  << std::setw(16) << this->m();
169 
170  out<<outx.str();
171 
172  return out;
173 }

◆ e()

double TrigT2Jet::e ( ) const
inlinevirtual

Return jet energy.

Implements I4Momentum.

Definition at line 41 of file TrigT2Jet.h.

41 {return m_e; }

◆ eem0()

double TrigT2Jet::eem0 ( ) const
inline

Return the electromagnetic energy of the jet, calculated before the calibration.

Definition at line 45 of file TrigT2Jet.h.

45 {return m_eem0; }

◆ ehad0()

double TrigT2Jet::ehad0 ( ) const
inline

Return the hadronic energy of the jet, calculated before calibration.

Definition at line 43 of file TrigT2Jet.h.

43 {return m_ehad0; }

◆ emf()

float TrigT2Jet::emf ( ) const
inline

Return fraction of energy in EMC.

Definition at line 70 of file TrigT2Jet.h.

70 {return m_emf;}

◆ errors()

const I4MomentumError * P4EEtaPhiMBase::errors ( ) const
virtualinherited

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

Implements I4Momentum.

Reimplemented in P4EEtaPhiM.

Definition at line 175 of file P4EEtaPhiMBase.cxx.

176 {
177  return 0;
178 }

◆ et()

double P4EEtaPhiMBase::et ( ) const
virtualinherited

transverse energy defined to be e*sin(theta)

Implements I4Momentum.

Reimplemented in CaloCell.

Definition at line 106 of file P4EEtaPhiMBase.cxx.

107  {
108  return this->e()*this->sinTh();
109  }

◆ eta()

double TrigT2Jet::eta ( ) const
inlinevirtual

Return jet eta.

Implements I4Momentum.

Definition at line 47 of file TrigT2Jet.h.

47 {return m_eta; }

◆ 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

◆ getVersion()

virtual AthenaBarCodeVersion_t IAthenaBarCode::getVersion ( ) const
inlinevirtualinherited

◆ grid() [1/2]

std::vector<Trig3Momentum>* TrigT2Jet::grid ( )
inline

Trig3Momentum entities making part of Jet are stored in a grid.

Definition at line 59 of file TrigT2Jet.h.

59 { return m_grid; }

◆ grid() [2/2]

const std::vector<Trig3Momentum>* TrigT2Jet::grid ( ) const
inline

Definition at line 60 of file TrigT2Jet.h.

60 { return m_grid; }

◆ hasSameAthenaBarCode()

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

◆ hasSameAthenaBarCodeExceptVersion()

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

◆ hecf()

float TrigT2Jet::hecf ( ) const
inline

Return fraction of energy in HEC.

Definition at line 66 of file TrigT2Jet.h.

66 {return m_hecf;}

◆ hlv()

CLHEP::HepLorentzVector P4EEtaPhiMBase::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.

Reimplemented in CaloCluster.

Definition at line 134 of file P4EEtaPhiMBase.cxx.

135 {
136  //minimize the number of calculation and dereference
137  const double theCosTh=this->cosTh();
138 
139  // DR from Frank Paige
140  // negative energy point in opposite direction
141  // BUT Eta and Phi still the same
142  // double theP=theE;
143 
144  const double theP=this->p();
145 
146  const double theSinTh=std::sqrt(1.-theCosTh*theCosTh);
147  const double thePt=theP*theSinTh;
148  const double thePx=thePt*this->cosPhi();
149  const double thePy=thePt*this->sinPhi();
150  const double thePz=theP*theCosTh;
151 
152 
153  return CLHEP::HepLorentzVector(thePx,thePy,thePz,this->e());
154 
155 }

◆ iPt()

double P4EEtaPhiMBase::iPt ( ) const
virtualinherited

inverse of transverse momentum

Implements I4Momentum.

Definition at line 111 of file P4EEtaPhiMBase.cxx.

112  { return 1./this->pt();
113  }

◆ jetQuality()

float TrigT2Jet::jetQuality ( ) const
inline

Return fraction of jet energy from bad cells.

Definition at line 68 of file TrigT2Jet.h.

68 {return m_jetQuality;}

◆ jetTimeCells()

float TrigT2Jet::jetTimeCells ( ) const
inline

Return jet time calculated from cells.

Definition at line 72 of file TrigT2Jet.h.

72 {return m_jetTimeCells;}

◆ kind()

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

tells what kind of P4XYZT this is

Implements I4Momentum.

Definition at line 65 of file P4EEtaPhiMBase.h.

65 { return I4Momentum::P4EETAPHIM; };

◆ m()

double TrigT2Jet::m ( ) const
inlinevirtual

Return the jet mass - if we constrain, no need to store.

Implements I4Momentum.

Definition at line 51 of file TrigT2Jet.h.

51 {return 0.; }

◆ m2()

double P4EEtaPhiMBase::m2 ( ) const
virtualinherited

mass squared

Implements I4Momentum.

Definition at line 14 of file P4EEtaPhiMBase.cxx.

14  {
15  const double theM = this->m();
16  return theM*theM;
17 }

◆ newVersion()

virtual void IAthenaBarCode::newVersion ( )
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.

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

◆ nLeadingCells()

int TrigT2Jet::nLeadingCells ( ) const
inline

Return nLeadingCells (e.g.

n90)

Definition at line 64 of file TrigT2Jet.h.

64 {return m_nLeadingCells;}

◆ p()

double P4EEtaPhiMBase::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 21 of file P4EEtaPhiMBase.cxx.

22 {
23  const double theM=this->m();
24  const double theE=this->e();
25  // if (theM==0.) return theE ;
26  // else return sqrt(theE*theE-theM*theM);
27  //DR from Frank Paige
28  // if negative energy point in the opposite direction
29  // BUT eta and phi still the same !!!
30  if (theM==0.) {
31  return theE;
32  } else {
33  double eSign = (theE >= 0) ? +1 : -1;
34  return eSign*std::sqrt(theE*theE-theM*theM);
35  }
36 
37 }

◆ p2()

double P4EEtaPhiMBase::p2 ( ) const
virtualinherited

square of momentum magnitude

This p2() implementaion is derived from the (somewhat unusual) Frank Paige implementation used to calculate p() above. What we do is look at what would happen if we were to square the answer returned by Frank's algorithm:

(1) The "eSign" would square to +1 and disappear, (2) The sqrt would disappear leaving theE*theE-theM*theM (3) In the event that theM==0, this theE*theE would indeed still equal theE*theE-theM*theM, so we simply return this quantity.

Implements I4Momentum.

Definition at line 39 of file P4EEtaPhiMBase.cxx.

40 {
48  const double theM=this->m();
49  const double theE=this->e();
50 
51  return theE*theE-theM*theM;
52 }

◆ phi()

double TrigT2Jet::phi ( ) const
inlinevirtual

Return jet phi.

Implements I4Momentum.

Definition at line 49 of file TrigT2Jet.h.

49 {return m_phi; }

◆ pt()

double P4EEtaPhiMBase::pt ( ) const
virtualinherited

transverse momentum

Implements I4Momentum.

Definition at line 101 of file P4EEtaPhiMBase.cxx.

102  {
103  return this->p()*this->sinTh();
104  }

◆ px()

double P4EEtaPhiMBase::px ( ) const
virtualinherited

x component of momentum

Implements I4Momentum.

Definition at line 122 of file P4EEtaPhiMBase.cxx.

123  { return this->pt()*this->cosPhi();
124  }

◆ py()

double P4EEtaPhiMBase::py ( ) const
virtualinherited

y component of momentum

Implements I4Momentum.

Definition at line 126 of file P4EEtaPhiMBase.cxx.

127  { return this->pt()*this->sinPhi();
128  }

◆ pz()

double P4EEtaPhiMBase::pz ( ) const
virtualinherited

z component of momentum

Implements I4Momentum.

Definition at line 130 of file P4EEtaPhiMBase.cxx.

131  { return this->p()*this->cosTh();
132  }

◆ rapidity()

double P4EEtaPhiMBase::rapidity ( ) const
virtualinherited

rapidity

Implements I4Momentum.

Definition at line 115 of file P4EEtaPhiMBase.cxx.

116  {
117  const double theE=this->e();
118  const double thePz=this->pz();
119  return 0.5*std::log((theE+thePz)/(theE-thePz));
120  }

◆ RoIword()

unsigned int TrigT2Jet::RoIword ( ) const
inline

Return the cone Radius.

Return the RoI Word

Definition at line 55 of file TrigT2Jet.h.

55 {return m_roiWord;}

◆ set4Mom() [1/3]

void P4EEtaPhiMBase::set4Mom ( const CLHEP::HepLorentzVector &  theHlv)
virtualinherited

set all 4-mom from a CLHEP HepLorentzVector DUMMY IMPLEMENTATION

Implements I4Momentum.

Reimplemented in CaloCell, P4EEtaPhiM, and CaloCluster.

Definition at line 194 of file P4EEtaPhiMBase.cxx.

195 {
196  std::cout << "FATAL ERROR dummy P4EEtaPhiMBase::set4Mom called " << std::endl ;
197  std::abort();
198 }

◆ set4Mom() [2/3]

void P4EEtaPhiMBase::set4Mom ( const I4Momentum theI4Mom)
virtualinherited

set all 4-mom from another I4Momentum reference DUMMY IMPLEMENTATION

Implements I4Momentum.

Reimplemented in CaloCell, P4EEtaPhiM, and CaloCluster.

Definition at line 181 of file P4EEtaPhiMBase.cxx.

182 {
183  std::cout << "FATAL ERROR dummy P4EEtaPhiMBase::set4Mom called " << std::endl; ;
184  std::abort();
185 }

◆ set4Mom() [3/3]

void P4EEtaPhiMBase::set4Mom ( const I4Momentum *const  theI4Mom)
virtualinherited

set all 4-mom from another I4Momentum pointer DUMMY IMPLEMENTATION

Implements I4Momentum.

Reimplemented in CaloCell, P4EEtaPhiM, and CaloCluster.

Definition at line 187 of file P4EEtaPhiMBase.cxx.

188 {
189  std::cout << "FATAL ERROR dummy P4EEtaPhiMBase::set4Mom called " << std::endl ;
190  std::abort();
191 
192 }

◆ set_RoIword()

void TrigT2Jet::set_RoIword ( unsigned int  word)
inline

set RoI Word

Definition at line 91 of file TrigT2Jet.h.

91 {m_roiWord=word;};

◆ setAthenaBarCode()

virtual void IAthenaBarCode::setAthenaBarCode ( AthenaBarCode_t  )
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.

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

◆ setE()

void TrigT2Jet::setE ( double  e)
inline

set Jet energy

Definition at line 75 of file TrigT2Jet.h.

75 {m_e = e; }

◆ setEem0()

void TrigT2Jet::setEem0 ( double  eem)
inline

Set Electromagnetic energy.

Definition at line 79 of file TrigT2Jet.h.

79 {m_eem0 = eem;}

◆ setEhad0()

void TrigT2Jet::setEhad0 ( double  ehad)
inline

Set Hadronic energy.

Definition at line 77 of file TrigT2Jet.h.

77 {m_ehad0=ehad;}

◆ setEmf()

void TrigT2Jet::setEmf ( float  emf)
inline

Set fraction of energy in EMC.

Definition at line 101 of file TrigT2Jet.h.

101 { m_emf = emf;}

◆ setEta()

void TrigT2Jet::setEta ( double  eta)
inline

set Jet eta

Definition at line 81 of file TrigT2Jet.h.

81 {m_eta = eta; }

◆ setGrid()

void TrigT2Jet::setGrid ( std::vector< Trig3Momentum > *  grid)
inline

set Jet cone Radius

set Jet grid vector

Definition at line 88 of file TrigT2Jet.h.

88 { m_grid = grid; }

◆ setHecf()

void TrigT2Jet::setHecf ( float  hecf)
inline

Set fraction of energy in HEC.

Definition at line 97 of file TrigT2Jet.h.

97 { m_hecf = hecf;}

◆ setJetQuality()

void TrigT2Jet::setJetQuality ( float  jetQuality)
inline

Set fraction of jet energy from bad cells.

Definition at line 99 of file TrigT2Jet.h.

◆ setJetTimeCells()

void TrigT2Jet::setJetTimeCells ( float  jetTimeCells)
inline

Set jet time calculated from cells.

Definition at line 103 of file TrigT2Jet.h.

◆ setNLeadingCells()

void TrigT2Jet::setNLeadingCells ( int  nLeadingCells)
inline

Set nLeadingCells (e.g.

n90)

Definition at line 95 of file TrigT2Jet.h.

◆ setPhi()

void TrigT2Jet::setPhi ( double  phi)
inline

set Jet phi

Definition at line 83 of file TrigT2Jet.h.

83 {m_phi = phi; }

◆ setVersion()

virtual void IAthenaBarCode::setVersion ( AthenaBarCodeVersion_t  )
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.

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

◆ sinPhi()

double P4EEtaPhiMBase::sinPhi ( ) const
virtualinherited

sinus phi

Implements I4Momentum.

Reimplemented in CaloCell, and CaloVertexedCell.

Definition at line 59 of file P4EEtaPhiMBase.cxx.

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

◆ sinTh()

double P4EEtaPhiMBase::sinTh ( ) const
virtualinherited

sinus theta

Implements I4Momentum.

Reimplemented in CaloCell, and CaloVertexedCell.

Definition at line 87 of file P4EEtaPhiMBase.cxx.

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

◆ tanTh()

double P4EEtaPhiMBase::tanTh ( ) const
virtualinherited

tan theta

Implements I4Momentum.

Definition at line 64 of file P4EEtaPhiMBase.cxx.

65 {
66  // avoid numeric overflow if very large eta
67 
68  double theEta=this->eta();
69  if ( std::abs(theEta)>710) {
70  theEta=theEta>0 ? 710 : -710;
71  return 1./std::sinh(theEta);
72  }
73 
74  return 1./this->cotTh();
75 }

Member Data Documentation

◆ m_e

double TrigT2Jet::m_e
private

Jet energy.

Definition at line 108 of file TrigT2Jet.h.

◆ m_eem0

double TrigT2Jet::m_eem0
private

Electromagnetic Jet Energy before calibration.

Definition at line 112 of file TrigT2Jet.h.

◆ m_ehad0

double TrigT2Jet::m_ehad0
private

Hadronic Jet Energy before calibration.

Definition at line 110 of file TrigT2Jet.h.

◆ m_emf

float TrigT2Jet::m_emf
private

Fraction of energy in EMC.

Definition at line 134 of file TrigT2Jet.h.

◆ m_eta

double TrigT2Jet::m_eta
private

Jet eta.

Definition at line 114 of file TrigT2Jet.h.

◆ m_grid

std::vector<Trig3Momentum>* TrigT2Jet::m_grid
private

Jet coneRadius.

vector of Trig3Momentum elements that compose Jet

Definition at line 121 of file TrigT2Jet.h.

◆ m_hecf

float TrigT2Jet::m_hecf
private

Fraction of energy in HEC.

Definition at line 130 of file TrigT2Jet.h.

◆ m_jetQuality

float TrigT2Jet::m_jetQuality
private

fraction of jet energy from bad cells

Definition at line 132 of file TrigT2Jet.h.

◆ m_jetTimeCells

float TrigT2Jet::m_jetTimeCells
private

Jet time.

Definition at line 136 of file TrigT2Jet.h.

◆ m_nLeadingCells

int TrigT2Jet::m_nLeadingCells
private

Jet nLeadingCells (e.g.

n90)

Definition at line 128 of file TrigT2Jet.h.

◆ m_phi

double TrigT2Jet::m_phi
private

Jet phi.

Definition at line 116 of file TrigT2Jet.h.

◆ m_roiWord

unsigned int TrigT2Jet::m_roiWord
private

RoI Word.

Definition at line 124 of file TrigT2Jet.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:
P4EEtaPhiMBase::cotTh
virtual double cotTh() const
cottan theta
Definition: P4EEtaPhiMBase.cxx:77
P4EEtaPhiMBase::pz
virtual double pz() const
z component of momentum
Definition: P4EEtaPhiMBase.cxx:130
P4EEtaPhiMBase::pt
virtual double pt() const
transverse momentum
Definition: P4EEtaPhiMBase.cxx:101
IAthenaBarCode::UNDEFINEDBARCODE
static const AthenaBarCode_t UNDEFINEDBARCODE
Definition: AthenaKernel/AthenaKernel/IAthenaBarCode.h:52
TrigT2Jet::jetTimeCells
float jetTimeCells() const
Return jet time calculated from cells.
Definition: TrigT2Jet.h:72
P4EEtaPhiMBase::cosPhi
virtual double cosPhi() const
cosinus phi
Definition: P4EEtaPhiMBase.cxx:54
I4Momentum::P4IPTCOTTHPHIM
@ P4IPTCOTTHPHIM
Definition: I4Momentum.h:33
TrigT2Jet::m_grid
std::vector< Trig3Momentum > * m_grid
Jet coneRadius.
Definition: TrigT2Jet.h:121
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
TrigT2Jet::eta
double eta() const
Return jet eta.
Definition: TrigT2Jet.h:47
drawFromPickle.cos
cos
Definition: drawFromPickle.py:36
TrigT2Jet::grid
std::vector< Trig3Momentum > * grid()
Trig3Momentum entities making part of Jet are stored in a grid.
Definition: TrigT2Jet.h:59
TrigT2Jet::nLeadingCells
int nLeadingCells() const
Return nLeadingCells (e.g.
Definition: TrigT2Jet.h:64
TrigT2Jet::m_roiWord
unsigned int m_roiWord
RoI Word.
Definition: TrigT2Jet.h:124
TrigT2Jet::m_eta
double m_eta
Jet eta.
Definition: TrigT2Jet.h:114
TrigT2Jet::m_jetTimeCells
float m_jetTimeCells
Jet time.
Definition: TrigT2Jet.h:136
I4Momentum::e
virtual double e() const =0
energy
P4EEtaPhiMBase::cosTh
virtual double cosTh() const
cosinus theta
Definition: P4EEtaPhiMBase.cxx:82
TrigT2Jet::m_e
double m_e
Jet energy.
Definition: TrigT2Jet.h:108
I4Momentum::eta
virtual double eta() const =0
pseudo rapidity
TrigT2Jet::m_jetQuality
float m_jetQuality
fraction of jet energy from bad cells
Definition: TrigT2Jet.h:132
TrigT2Jet::m_emf
float m_emf
Fraction of energy in EMC.
Definition: TrigT2Jet.h:134
I4Momentum::phi
virtual double phi() const =0
phi in [-pi,pi[
I4Momentum::P4PTETAPHIM
@ P4PTETAPHIM
Definition: I4Momentum.h:33
TrigT2Jet::hecf
float hecf() const
Return fraction of energy in HEC.
Definition: TrigT2Jet.h:66
I4Momentum::UNKNOWN
@ UNKNOWN
Definition: I4Momentum.h:33
TrigT2Jet::m_nLeadingCells
int m_nLeadingCells
Jet nLeadingCells (e.g.
Definition: TrigT2Jet.h:128
TrigT2Jet::e
double e() const
Return jet energy.
Definition: TrigT2Jet.h:41
P4EEtaPhiMBase::p
virtual double p() const
magnitude of 3-momentum.
Definition: P4EEtaPhiMBase.cxx:21
TrigT2Jet::m_hecf
float m_hecf
Fraction of energy in HEC.
Definition: TrigT2Jet.h:130
I4Momentum::m
virtual double m() const =0
mass
TrigT2Jet::m_ehad0
double m_ehad0
Hadronic Jet Energy before calibration.
Definition: TrigT2Jet.h:110
TrigT2Jet::jetQuality
float jetQuality() const
Return fraction of jet energy from bad cells.
Definition: TrigT2Jet.h:68
P4EEtaPhiMBase::sinTh
virtual double sinTh() const
sinus theta
Definition: P4EEtaPhiMBase.cxx:87
P4EEtaPhiMBase::sinPhi
virtual double sinPhi() const
sinus phi
Definition: P4EEtaPhiMBase.cxx:59
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TrigT2Jet::m_eem0
double m_eem0
Electromagnetic Jet Energy before calibration.
Definition: TrigT2Jet.h:112
TrigT2Jet::emf
float emf() const
Return fraction of energy in EMC.
Definition: TrigT2Jet.h:70
drawFromPickle.sin
sin
Definition: drawFromPickle.py:36
IAthenaBarCode::UNDEFINEDVERSION
static const AthenaBarCode_t UNDEFINEDVERSION
Definition: AthenaKernel/AthenaKernel/IAthenaBarCode.h:53
I4Momentum::P4EETAPHIM
@ P4EETAPHIM
Definition: I4Momentum.h:33
TrigT2Jet::m_phi
double m_phi
Jet phi.
Definition: TrigT2Jet.h:116
TrigT2Jet::phi
double phi() const
Return jet phi.
Definition: TrigT2Jet.h:49
I4Momentum::P4PXPYPZE
@ P4PXPYPZE
Definition: I4Momentum.h:33