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() [1/2]

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::~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.

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

◆ addEnergyDeposit() [1/2]

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

Definition at line 29 of file CaloGVHit.cc.

References elem_, and hadr_.

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

29  {
30  elem_ += em;
31  hadr_ += hd;
32 }
double hadr_
Definition: CaloGVHit.h:66
double elem_
Definition: CaloGVHit.h:65

◆ addEnergyDeposit() [2/2]

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

◆ getDepth()

uint16_t CaloGVHit::getDepth ( void  ) const
inline

Definition at line 52 of file CaloGVHit.h.

References CaloHitID::depth(), and hitID_.

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

◆ getEM()

double CaloGVHit::getEM ( ) const
inline

Definition at line 39 of file CaloGVHit.h.

References elem_.

Referenced by addEnergyDeposit().

39 { return elem_; }
double elem_
Definition: CaloGVHit.h:65

◆ getEnergyDeposit()

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

◆ getEventID()

int CaloGVHit::getEventID ( ) const
inline

Definition at line 45 of file CaloGVHit.h.

References eventID_.

45 { return eventID_; }
int eventID_
Definition: CaloGVHit.h:64

◆ getHadr()

double CaloGVHit::getHadr ( ) const
inline

Definition at line 42 of file CaloGVHit.h.

References hadr_.

Referenced by addEnergyDeposit().

42 { return hadr_; }
double hadr_
Definition: CaloGVHit.h:66

◆ getID()

CaloHitID CaloGVHit::getID ( ) const
inline

Definition at line 54 of file CaloGVHit.h.

References hitID_.

54 { return hitID_; }
CaloHitID hitID_
Definition: CaloGVHit.h:67

◆ getTimeSlice()

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

◆ getTimeSliceID()

int CaloGVHit::getTimeSliceID ( ) const
inline

Definition at line 51 of file CaloGVHit.h.

References hitID_, and CaloHitID::timeSliceID().

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

◆ getTrackID()

int CaloGVHit::getTrackID ( ) const
inline

Definition at line 48 of file CaloGVHit.h.

References hitID_, and CaloHitID::trackID().

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

◆ getUnitID()

uint32_t CaloGVHit::getUnitID ( ) const
inline

Definition at line 49 of file CaloGVHit.h.

References hitID_, and CaloHitID::unitID().

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

◆ operator=()

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

◆ 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.

References MillePedeFileConverter_cfg::e, and elem_.

◆ setEventID()

void CaloGVHit::setEventID ( int  id)
inline

Definition at line 46 of file CaloGVHit.h.

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.

References MillePedeFileConverter_cfg::e, and hadr_.

◆ setID() [1/2]

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

Definition at line 55 of file CaloGVHit.h.

References ztail::d, hitID_, mps_fire::i, dqmiolumiharvest::j, 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:41
CaloHitID hitID_
Definition: CaloGVHit.h:67

◆ setID() [2/2]

void CaloGVHit::setID ( const CaloHitID id)
inline

Definition at line 56 of file CaloGVHit.h.

References hitID_, and triggerObjects_cff::id.

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

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