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 ()
 
 CaloHit (const 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::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),
11  eh(ei), etah(etai), phih(fi),
12  timeh(timi), idh(idi) {}
int layerh
Definition: CaloHit.h:35
double timeh
Definition: CaloHit.h:36
double phih
Definition: CaloHit.h:36
double eh
Definition: CaloHit.h:36
double etah
Definition: CaloHit.h:36
int deth
Definition: CaloHit.h:35
uint32_t idh
Definition: CaloHit.h:37
CaloHit::CaloHit ( )

Definition at line 14 of file CaloHit.cc.

14  : deth(0), layerh(0), eh(0), etah(0), phih(0), timeh(0),
15  idh(0) {}
int layerh
Definition: CaloHit.h:35
double timeh
Definition: CaloHit.h:36
double phih
Definition: CaloHit.h:36
double eh
Definition: CaloHit.h:36
double etah
Definition: CaloHit.h:36
int deth
Definition: CaloHit.h:35
uint32_t idh
Definition: CaloHit.h:37
CaloHit::CaloHit ( const CaloHit right)

Definition at line 17 of file CaloHit.cc.

References deth, eh, etah, idh, layerh, phih, and timeh.

17  {
18  deth = right.deth;
19  layerh = right.layerh;
20  eh = right.eh;
21  etah = right.etah;
22  phih = right.phih;
23  timeh = right.timeh;
24  idh = right.idh;
25 }
int layerh
Definition: CaloHit.h:35
double timeh
Definition: CaloHit.h:36
double phih
Definition: CaloHit.h:36
double eh
Definition: CaloHit.h:36
double etah
Definition: CaloHit.h:36
int deth
Definition: CaloHit.h:35
uint32_t idh
Definition: CaloHit.h:37
CaloHit::~CaloHit ( )
virtual

Definition at line 27 of file CaloHit.cc.

27 {}

Member Function Documentation

int CaloHit::det ( ) const
inline

Definition at line 22 of file CaloHit.h.

References deth.

Referenced by operator<<(), and HcalTestAnalysis::qieAnalysis().

22 {return deth;}
int deth
Definition: CaloHit.h:35
double CaloHit::e ( ) const
inline
double CaloHit::eta ( void  ) const
inline
uint32_t CaloHit::id ( void  ) const
inline

Definition at line 28 of file CaloHit.h.

References idh.

Referenced by CaloHitIdMore::operator()(), operator<<(), HcalTestAnalysis::qieAnalysis(), and HcalTB04Analysis::qieAnalysis().

28 {return idh;}
uint32_t idh
Definition: CaloHit.h:37
int CaloHit::layer ( ) const
inline
bool CaloHit::operator< ( const CaloHit hit) const

Definition at line 29 of file CaloHit.cc.

References e(), eh, eta(), etah, and funct::true.

Referenced by setId().

29  {
30  return (eh/cosh(etah) < hit.e()/cosh(hit.eta())) ? false : true ;
31 }
double eta() const
Definition: CaloHit.h:25
double eh
Definition: CaloHit.h:36
double e() const
Definition: CaloHit.h:24
double etah
Definition: CaloHit.h:36
double CaloHit::phi ( void  ) const
inline
void CaloHit::setId ( const uint32_t  idi)
inline

Definition at line 29 of file CaloHit.h.

References idh, and operator<().

29 {idh = idi;}
uint32_t idh
Definition: CaloHit.h:37
double CaloHit::t ( ) const
inline

Definition at line 27 of file CaloHit.h.

References timeh.

Referenced by CaloHitMore::operator()(), CaloHitIdMore::operator()(), and operator<<().

27 {return timeh;}
double timeh
Definition: CaloHit.h:36

Member Data Documentation

int CaloHit::deth
private

Definition at line 35 of file CaloHit.h.

Referenced by CaloHit(), and det().

double CaloHit::eh
private

Definition at line 36 of file CaloHit.h.

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

double CaloHit::etah
private

Definition at line 36 of file CaloHit.h.

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

uint32_t CaloHit::idh
private

Definition at line 37 of file CaloHit.h.

Referenced by CaloHit(), id(), and setId().

int CaloHit::layerh
private

Definition at line 35 of file CaloHit.h.

Referenced by CaloHit(), and layer().

double CaloHit::phih
private

Definition at line 36 of file CaloHit.h.

Referenced by CaloHit(), and phi().

double CaloHit::timeh
private

Definition at line 36 of file CaloHit.h.

Referenced by CaloHit(), and t().