CMS 3D CMS Logo

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

#include <CaloGVHit.h>

Public Member Functions

void addEnergyDeposit (const CaloGVHit &aHit)
 
void addEnergyDeposit (double em, double hd)
 
 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 (const CaloHitID &id)
 
void setID (uint32_t i, double d, int j, uint16_t k=0)
 
 ~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() [1/2]

CaloGVHit::CaloGVHit ( )

Definition at line 6 of file CaloGVHit.cc.

6  {
7  eventID_ = 0;
8  elem_ = 0.;
9  hadr_ = 0.;
10 }

References elem_, eventID_, and hadr_.

◆ ~CaloGVHit()

CaloGVHit::~CaloGVHit ( )

Definition at line 12 of file CaloGVHit.cc.

12 {}

◆ CaloGVHit() [2/2]

CaloGVHit::CaloGVHit ( const CaloGVHit right)

Definition at line 14 of file CaloGVHit.cc.

14  {
15  eventID_ = right.eventID_;
16  elem_ = right.elem_;
17  hadr_ = right.hadr_;
18  hitID_ = right.hitID_;
19 }

References elem_, eventID_, hadr_, and hitID_.

Member Function Documentation

◆ addEnergyDeposit() [1/2]

void CaloGVHit::addEnergyDeposit ( const CaloGVHit aHit)

Definition at line 34 of file CaloGVHit.cc.

34 { addEnergyDeposit(aHit.getEM(), aHit.getHadr()); }

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

◆ addEnergyDeposit() [2/2]

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

Definition at line 29 of file CaloGVHit.cc.

29  {
30  elem_ += em;
31  hadr_ += hd;
32 }

References elem_, and hadr_.

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

◆ getDepth()

uint16_t CaloGVHit::getDepth ( void  ) const
inline

Definition at line 52 of file CaloGVHit.h.

52 { return hitID_.depth(); }

References CaloHitID::depth(), and hitID_.

◆ getEM()

double CaloGVHit::getEM ( ) const
inline

Definition at line 39 of file CaloGVHit.h.

39 { return elem_; }

References elem_.

Referenced by addEnergyDeposit().

◆ getEnergyDeposit()

double CaloGVHit::getEnergyDeposit ( ) const
inline

Definition at line 61 of file CaloGVHit.h.

61 { return (elem_ + hadr_); }

References elem_, and hadr_.

◆ getEventID()

int CaloGVHit::getEventID ( ) const
inline

Definition at line 45 of file CaloGVHit.h.

45 { return eventID_; }

References eventID_.

◆ getHadr()

double CaloGVHit::getHadr ( ) const
inline

Definition at line 42 of file CaloGVHit.h.

42 { return hadr_; }

References hadr_.

Referenced by addEnergyDeposit().

◆ getID()

CaloHitID CaloGVHit::getID ( ) const
inline

Definition at line 54 of file CaloGVHit.h.

54 { return hitID_; }

References hitID_.

◆ getTimeSlice()

double CaloGVHit::getTimeSlice ( ) const
inline

Definition at line 50 of file CaloGVHit.h.

50 { return hitID_.timeSlice(); }

References hitID_, and CaloHitID::timeSlice().

◆ getTimeSliceID()

int CaloGVHit::getTimeSliceID ( ) const
inline

Definition at line 51 of file CaloGVHit.h.

51 { return hitID_.timeSliceID(); }

References hitID_, and CaloHitID::timeSliceID().

◆ getTrackID()

int CaloGVHit::getTrackID ( ) const
inline

Definition at line 48 of file CaloGVHit.h.

48 { return hitID_.trackID(); }

References hitID_, and CaloHitID::trackID().

◆ getUnitID()

uint32_t CaloGVHit::getUnitID ( ) const
inline

Definition at line 49 of file CaloGVHit.h.

49 { return hitID_.unitID(); }

References hitID_, and CaloHitID::unitID().

◆ operator=()

const CaloGVHit & CaloGVHit::operator= ( const CaloGVHit right)

Definition at line 21 of file CaloGVHit.cc.

21  {
22  eventID_ = right.eventID_;
23  elem_ = right.elem_;
24  hadr_ = right.hadr_;
25  hitID_ = right.hitID_;
26  return *this;
27 }

References elem_, eventID_, hadr_, and hitID_.

◆ operator==()

bool CaloGVHit::operator== ( const CaloGVHit )
inline

Definition at line 36 of file CaloGVHit.h.

36 { return false; }

◆ setEM()

void CaloGVHit::setEM ( double  e)
inline

Definition at line 40 of file CaloGVHit.h.

40 { elem_ = e; }

References MillePedeFileConverter_cfg::e, and elem_.

◆ setEventID()

void CaloGVHit::setEventID ( int  id)
inline

Definition at line 46 of file CaloGVHit.h.

46 { eventID_ = id; }

References eventID_, and triggerObjects_cff::id.

Referenced by CaloSteppingAction::fillHit().

◆ setHadr()

void CaloGVHit::setHadr ( double  e)
inline

Definition at line 43 of file CaloGVHit.h.

43 { hadr_ = e; }

References MillePedeFileConverter_cfg::e, and hadr_.

◆ setID() [1/2]

void CaloGVHit::setID ( const CaloHitID id)
inline

Definition at line 56 of file CaloGVHit.h.

56 { hitID_ = id; }

References hitID_, and triggerObjects_cff::id.

◆ setID() [2/2]

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

Definition at line 55 of file CaloGVHit.h.

55 { hitID_.setID(i, d, j, k); }

References ztail::d, hitID_, mps_fire::i, dqmiolumiharvest::j, dqmdumpme::k, and CaloHitID::setID().

Referenced by CaloSteppingAction::fillHit().

Member Data Documentation

◆ elem_

double CaloGVHit::elem_
private

Definition at line 65 of file CaloGVHit.h.

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

◆ eventID_

int CaloGVHit::eventID_
private

Definition at line 64 of file CaloGVHit.h.

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

◆ hadr_

double CaloGVHit::hadr_
private

Definition at line 66 of file CaloGVHit.h.

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

◆ hitID_

CaloHitID CaloGVHit::hitID_
private
mps_fire.i
i
Definition: mps_fire.py:355
CaloHitID::depth
uint16_t depth() const
Definition: CaloHitID.h:24
CaloHitID::trackID
int trackID() const
Definition: CaloHitID.h:23
CaloHitID::unitID
uint32_t unitID() const
Definition: CaloHitID.h:20
CaloHitID::setID
void setID(uint32_t unitID, double timeSlice, int trackID, uint16_t depth=0)
Definition: CaloHitID.cc:40
CaloHitID::timeSlice
double timeSlice() const
Definition: CaloHitID.h:22
CaloGVHit::hadr_
double hadr_
Definition: CaloGVHit.h:66
dqmdumpme.k
k
Definition: dqmdumpme.py:60
CaloGVHit::eventID_
int eventID_
Definition: CaloGVHit.h:64
CaloHitID::timeSliceID
int timeSliceID() const
Definition: CaloHitID.h:21
CaloGVHit::addEnergyDeposit
void addEnergyDeposit(double em, double hd)
Definition: CaloGVHit.cc:29
CaloGVHit::getHadr
double getHadr() const
Definition: CaloGVHit.h:42
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
CaloGVHit::getEM
double getEM() const
Definition: CaloGVHit.h:39
CaloGVHit::elem_
double elem_
Definition: CaloGVHit.h:65
CaloGVHit::hitID_
CaloHitID hitID_
Definition: CaloGVHit.h:67
ztail.d
d
Definition: ztail.py:151
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37