CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
CaloHit Class Reference

#include <CaloHit.h>

Public Member Functions

 CaloHit (int deti, int layi, double ei, double etai, double phii, double timi, uint32_t idi=0)
 
 CaloHit ()
 
int det () const
 
double e () const
 
double eta () const
 
uint32_t id () const
 
int layer () const
 
bool operator< (const CaloHit &hit) const
 
double phi () const
 
void setId (const uint32_t idi)
 
double t () const
 
virtual ~CaloHit ()
 

Private Attributes

int deth
 
double eh
 
double etah
 
uint32_t idh
 
int layerh
 
double phih
 
double timeh
 

Detailed Description

Definition at line 12 of file CaloHit.h.

Constructor & Destructor Documentation

◆ CaloHit() [1/2]

CaloHit::CaloHit ( int  deti,
int  layi,
double  ei,
double  etai,
double  phii,
double  timi,
uint32_t  idi = 0 
)

Definition at line 9 of file CaloHit.cc.

10  : deth(deti), layerh(layi), eh(ei), etah(etai), phih(fi), timeh(timi), idh(idi) {}
int layerh
Definition: CaloHit.h:30
double timeh
Definition: CaloHit.h:31
double phih
Definition: CaloHit.h:31
double eh
Definition: CaloHit.h:31
double etah
Definition: CaloHit.h:31
int deth
Definition: CaloHit.h:30
uint32_t idh
Definition: CaloHit.h:32

◆ CaloHit() [2/2]

CaloHit::CaloHit ( )

Definition at line 12 of file CaloHit.cc.

12 : deth(0), layerh(0), eh(0), etah(0), phih(0), timeh(0), idh(0) {}
int layerh
Definition: CaloHit.h:30
double timeh
Definition: CaloHit.h:31
double phih
Definition: CaloHit.h:31
double eh
Definition: CaloHit.h:31
double etah
Definition: CaloHit.h:31
int deth
Definition: CaloHit.h:30
uint32_t idh
Definition: CaloHit.h:32

◆ ~CaloHit()

CaloHit::~CaloHit ( )
virtual

Definition at line 14 of file CaloHit.cc.

14 {}

Member Function Documentation

◆ det()

int CaloHit::det ( ) const
inline

Definition at line 18 of file CaloHit.h.

References deth.

18 { return deth; }
int deth
Definition: CaloHit.h:30

◆ e()

double CaloHit::e ( ) const
inline

Definition at line 20 of file CaloHit.h.

References eh.

20 { return eh; }
double eh
Definition: CaloHit.h:31

◆ eta()

double CaloHit::eta ( void  ) const
inline

Definition at line 21 of file CaloHit.h.

References etah.

Referenced by Particle.Particle::__str__(), datamodel.Object::DeltaR(), Jet.Jet::jetID(), datamodel.Object::p4(), and Jet.Jet::puJetId().

21 { return etah; }
double etah
Definition: CaloHit.h:31

◆ id()

uint32_t CaloHit::id ( void  ) const
inline

Definition at line 24 of file CaloHit.h.

References idh.

24 { return idh; }
uint32_t idh
Definition: CaloHit.h:32

◆ layer()

int CaloHit::layer ( ) const
inline

Definition at line 19 of file CaloHit.h.

References layerh.

Referenced by geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().

19 { return layerh; }
int layerh
Definition: CaloHit.h:30

◆ operator<()

bool CaloHit::operator< ( const CaloHit hit) const

Definition at line 16 of file CaloHit.cc.

References eh, etah, and funct::false.

16  {
17  return (eh / cosh(etah) < hit.e() / cosh(hit.eta())) ? false : true;
18 }
double eh
Definition: CaloHit.h:31
double etah
Definition: CaloHit.h:31

◆ phi()

double CaloHit::phi ( void  ) const
inline

Definition at line 22 of file CaloHit.h.

References phih.

Referenced by Particle.Particle::__str__(), datamodel.Object::DeltaR(), datamodel.Object::p4(), and ntupleDataFormat.Track::phiPull().

22 { return phih; }
double phih
Definition: CaloHit.h:31

◆ setId()

void CaloHit::setId ( const uint32_t  idi)
inline

Definition at line 25 of file CaloHit.h.

References idh.

25 { idh = idi; }
uint32_t idh
Definition: CaloHit.h:32

◆ t()

double CaloHit::t ( ) const
inline

Definition at line 23 of file CaloHit.h.

References timeh.

23 { return timeh; }
double timeh
Definition: CaloHit.h:31

Member Data Documentation

◆ deth

int CaloHit::deth
private

Definition at line 30 of file CaloHit.h.

Referenced by det().

◆ eh

double CaloHit::eh
private

Definition at line 31 of file CaloHit.h.

Referenced by e(), and operator<().

◆ etah

double CaloHit::etah
private

Definition at line 31 of file CaloHit.h.

Referenced by eta(), and operator<().

◆ idh

uint32_t CaloHit::idh
private

Definition at line 32 of file CaloHit.h.

Referenced by id(), and setId().

◆ layerh

int CaloHit::layerh
private

Definition at line 30 of file CaloHit.h.

Referenced by layer().

◆ phih

double CaloHit::phih
private

Definition at line 31 of file CaloHit.h.

Referenced by phi().

◆ timeh

double CaloHit::timeh
private

Definition at line 31 of file CaloHit.h.

Referenced by t().