CMS 3D CMS Logo

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

#include <CaloGVHit.h>

Public Member Functions

void addEnergyDeposit (double em, double hd)
 
void addEnergyDeposit (const CaloGVHit &aHit)
 
 CaloGVHit ()
 
 CaloGVHit (const CaloGVHit &right)
 
uint16_t getDepth () const
 
double getEM () const
 
double getEnergyDeposit () const
 
int getEventID () const
 
double getHadr () const
 
CaloHitID getID () const
 
double getTimeSlice () const
 
int getTimeSliceID () const
 
int getTrackID () const
 
uint32_t getUnitID () const
 
const CaloGVHitoperator= (const CaloGVHit &right)
 
bool operator== (const CaloGVHit &)
 
void setEM (double e)
 
void setEventID (int id)
 
void setHadr (double e)
 
void setID (uint32_t i, double d, int j, uint16_t k=0)
 
void setID (const CaloHitID &id)
 
 ~CaloGVHit ()
 

Private Attributes

double elem_
 
int eventID_
 
double hadr_
 
CaloHitID hitID_
 

Detailed Description

Definition at line 30 of file CaloGVHit.h.

Constructor & Destructor Documentation

CaloGVHit::CaloGVHit ( )

Definition at line 6 of file CaloGVHit.cc.

References elem_, eventID_, and hadr_.

6  {
7  eventID_ = 0;
8  elem_ = 0.;
9  hadr_ = 0.;
10 }
int eventID_
Definition: CaloGVHit.h:64
double hadr_
Definition: CaloGVHit.h:66
double elem_
Definition: CaloGVHit.h:65
CaloGVHit::~CaloGVHit ( )

Definition at line 12 of file CaloGVHit.cc.

12 {}
CaloGVHit::CaloGVHit ( const CaloGVHit right)

Definition at line 14 of file CaloGVHit.cc.

References elem_, eventID_, hadr_, and hitID_.

14  {
15  eventID_ = right.eventID_;
16  elem_ = right.elem_;
17  hadr_ = right.hadr_;
18  hitID_ = right.hitID_;
19 }
int eventID_
Definition: CaloGVHit.h:64
double hadr_
Definition: CaloGVHit.h:66
CaloHitID hitID_
Definition: CaloGVHit.h:67
double elem_
Definition: CaloGVHit.h:65

Member Function Documentation

void CaloGVHit::addEnergyDeposit ( double  em,
double  hd 
)

Definition at line 29 of file CaloGVHit.cc.

References elem_, and hadr_.

Referenced by addEnergyDeposit(), CaloSteppingAction::fillHit(), and setID().

29  {
30  elem_ += em;
31  hadr_ += hd;
32 }
double hadr_
Definition: CaloGVHit.h:66
double elem_
Definition: CaloGVHit.h:65
void CaloGVHit::addEnergyDeposit ( const CaloGVHit aHit)

Definition at line 34 of file CaloGVHit.cc.

References addEnergyDeposit(), getEM(), and getHadr().

34 { addEnergyDeposit(aHit.getEM(), aHit.getHadr()); }
double getEM() const
Definition: CaloGVHit.h:39
double getHadr() const
Definition: CaloGVHit.h:42
void addEnergyDeposit(double em, double hd)
Definition: CaloGVHit.cc:29
uint16_t CaloGVHit::getDepth ( void  ) const
inline

Definition at line 52 of file CaloGVHit.h.

References CaloHitID::depth(), and hitID_.

Referenced by CaloGVHitLess::operator()(), and CaloGVHitEqual::operator()().

52 { return hitID_.depth(); }
uint16_t depth() const
Definition: CaloHitID.h:24
CaloHitID hitID_
Definition: CaloGVHit.h:67
double CaloGVHit::getEM ( ) const
inline

Definition at line 39 of file CaloGVHit.h.

References elem_.

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

39 { return elem_; }
double elem_
Definition: CaloGVHit.h:65
double CaloGVHit::getEnergyDeposit ( ) const
inline

Definition at line 61 of file CaloGVHit.h.

References elem_, and hadr_.

61 { return (elem_ + hadr_); }
double hadr_
Definition: CaloGVHit.h:66
double elem_
Definition: CaloGVHit.h:65
int CaloGVHit::getEventID ( ) const
inline

Definition at line 45 of file CaloGVHit.h.

References eventID_.

Referenced by CaloGVHitLess::operator()(), CaloGVHitEqual::operator()(), and operator<<().

45 { return eventID_; }
int eventID_
Definition: CaloGVHit.h:64
double CaloGVHit::getHadr ( ) const
inline

Definition at line 42 of file CaloGVHit.h.

References hadr_.

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

42 { return hadr_; }
double hadr_
Definition: CaloGVHit.h:66
CaloHitID CaloGVHit::getID ( ) const
inline

Definition at line 54 of file CaloGVHit.h.

References hitID_.

Referenced by operator<<().

54 { return hitID_; }
CaloHitID hitID_
Definition: CaloGVHit.h:67
double CaloGVHit::getTimeSlice ( ) const
inline

Definition at line 50 of file CaloGVHit.h.

References hitID_, and CaloHitID::timeSlice().

50 { return hitID_.timeSlice(); }
double timeSlice() const
Definition: CaloHitID.h:22
CaloHitID hitID_
Definition: CaloGVHit.h:67
int CaloGVHit::getTimeSliceID ( ) const
inline

Definition at line 51 of file CaloGVHit.h.

References hitID_, and CaloHitID::timeSliceID().

Referenced by CaloGVHitLess::operator()(), and CaloGVHitEqual::operator()().

51 { return hitID_.timeSliceID(); }
int timeSliceID() const
Definition: CaloHitID.h:21
CaloHitID hitID_
Definition: CaloGVHit.h:67
int CaloGVHit::getTrackID ( ) const
inline

Definition at line 48 of file CaloGVHit.h.

References hitID_, and CaloHitID::trackID().

Referenced by CaloGVHitLess::operator()(), and CaloGVHitEqual::operator()().

48 { return hitID_.trackID(); }
int trackID() const
Definition: CaloHitID.h:23
CaloHitID hitID_
Definition: CaloGVHit.h:67
uint32_t CaloGVHit::getUnitID ( ) const
inline

Definition at line 49 of file CaloGVHit.h.

References hitID_, and CaloHitID::unitID().

Referenced by CaloGVHitLess::operator()(), and CaloGVHitEqual::operator()().

49 { return hitID_.unitID(); }
CaloHitID hitID_
Definition: CaloGVHit.h:67
uint32_t unitID() const
Definition: CaloHitID.h:20
const CaloGVHit & CaloGVHit::operator= ( const CaloGVHit right)

Definition at line 21 of file CaloGVHit.cc.

References elem_, eventID_, hadr_, and hitID_.

21  {
22  eventID_ = right.eventID_;
23  elem_ = right.elem_;
24  hadr_ = right.hadr_;
25  hitID_ = right.hitID_;
26  return *this;
27 }
int eventID_
Definition: CaloGVHit.h:64
double hadr_
Definition: CaloGVHit.h:66
CaloHitID hitID_
Definition: CaloGVHit.h:67
double elem_
Definition: CaloGVHit.h:65
bool CaloGVHit::operator== ( const CaloGVHit )
inline

Definition at line 36 of file CaloGVHit.h.

36 { return false; }
void CaloGVHit::setEM ( double  e)
inline

Definition at line 40 of file CaloGVHit.h.

References MillePedeFileConverter_cfg::e, and elem_.

void CaloGVHit::setEventID ( int  id)
inline

Definition at line 46 of file CaloGVHit.h.

References eventID_, and triggerObjects_cff::id.

Referenced by CaloSteppingAction::fillHit().

void CaloGVHit::setHadr ( double  e)
inline

Definition at line 43 of file CaloGVHit.h.

References MillePedeFileConverter_cfg::e, and hadr_.

void CaloGVHit::setID ( uint32_t  i,
double  d,
int  j,
uint16_t  k = 0 
)
inline

Definition at line 55 of file CaloGVHit.h.

References hitID_, dqmdumpme::k, and CaloHitID::setID().

Referenced by CaloSteppingAction::fillHit().

55 { hitID_.setID(i, d, j, k); }
d
Definition: ztail.py:151
void setID(uint32_t unitID, double timeSlice, int trackID, uint16_t depth=0)
Definition: CaloHitID.cc:40
CaloHitID hitID_
Definition: CaloGVHit.h:67
void CaloGVHit::setID ( const CaloHitID id)
inline

Definition at line 56 of file CaloGVHit.h.

References addEnergyDeposit(), hitID_, and triggerObjects_cff::id.

56 { hitID_ = id; }
CaloHitID hitID_
Definition: CaloGVHit.h:67

Member Data Documentation

double CaloGVHit::elem_
private

Definition at line 65 of file CaloGVHit.h.

Referenced by addEnergyDeposit(), CaloGVHit(), getEM(), getEnergyDeposit(), operator=(), and setEM().

int CaloGVHit::eventID_
private

Definition at line 64 of file CaloGVHit.h.

Referenced by CaloGVHit(), getEventID(), operator=(), and setEventID().

double CaloGVHit::hadr_
private

Definition at line 66 of file CaloGVHit.h.

Referenced by addEnergyDeposit(), CaloGVHit(), getEnergyDeposit(), getHadr(), operator=(), and setHadr().

CaloHitID CaloGVHit::hitID_
private