Geant4  10.02.p03
CCalHit Class Reference

#include <CCalHit.hh>

Inheritance diagram for CCalHit:
Collaboration diagram for CCalHit:

Public Member Functions

 CCalHit ()
 
 ~CCalHit ()
 
 CCalHit (const CCalHit &right)
 
const CCalHitoperator= (const CCalHit &right)
 
int operator== (const CCalHit &)
 
void print ()
 
CLHEP::Hep3Vector getEntry () const
 
void setEntry (CLHEP::Hep3Vector xyz)
 
double getIncidentEnergy () const
 
void setIncidentEnergy (double e)
 
int getTrackID () const
 
void setTrackID (int i)
 
unsigned int getUnitID () const
 
void setUnitID (unsigned int i)
 
double getTimeSlice () const
 
void setTimeSlice (double d)
 
int getTimeSliceID () const
 
double getEnergyDeposit () const
 
void setEnergyDeposit (const double e)
 
void addEnergyDeposit (const CCalHit &aHit)
 
void addEnergyDeposit (const double e)
 

Private Attributes

CLHEP::Hep3Vector entry
 
double theIncidentEnergy
 
int theTrackID
 
unsigned int theUnitID
 
double theTimeSlice
 
double theEnergyDeposit
 

Friends

std::ostream & operator<< (std::ostream &, const CCalHit &)
 

Detailed Description

Definition at line 52 of file CCalHit.hh.

Constructor & Destructor Documentation

◆ CCalHit() [1/2]

CCalHit::CCalHit ( )

Definition at line 35 of file CCalHit.cc.

35  :
36  entry(0), theIncidentEnergy(0.0), theTrackID(-1),
38 {}
unsigned int theUnitID
Definition: CCalHit.hh:94
double theTimeSlice
Definition: CCalHit.hh:95
int theTrackID
Definition: CCalHit.hh:93
double theEnergyDeposit
Definition: CCalHit.hh:96
double theIncidentEnergy
Definition: CCalHit.hh:92
CLHEP::Hep3Vector entry
Definition: CCalHit.hh:91

◆ ~CCalHit()

CCalHit::~CCalHit ( )

Definition at line 41 of file CCalHit.cc.

41 {}

◆ CCalHit() [2/2]

CCalHit::CCalHit ( const CCalHit right)

Definition at line 44 of file CCalHit.cc.

44  :
45  entry( right.entry ),
47  theTrackID( right.theTrackID ),
48  theUnitID( right.theUnitID ),
49  theTimeSlice( right.theTimeSlice ),
51 {}
unsigned int theUnitID
Definition: CCalHit.hh:94
double theTimeSlice
Definition: CCalHit.hh:95
int theTrackID
Definition: CCalHit.hh:93
double theEnergyDeposit
Definition: CCalHit.hh:96
double theIncidentEnergy
Definition: CCalHit.hh:92
CLHEP::Hep3Vector entry
Definition: CCalHit.hh:91

Member Function Documentation

◆ addEnergyDeposit() [1/2]

void CCalHit::addEnergyDeposit ( const CCalHit aHit)

Definition at line 90 of file CCalHit.cc.

90  {
92 }
double getEnergyDeposit() const
Definition: CCalHit.cc:86
void addEnergyDeposit(const CCalHit &aHit)
Definition: CCalHit.cc:90
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addEnergyDeposit() [2/2]

void CCalHit::addEnergyDeposit ( const double  e)

Definition at line 94 of file CCalHit.cc.

94  {
95  theEnergyDeposit += e;
96 }
double theEnergyDeposit
Definition: CCalHit.hh:96

◆ getEnergyDeposit()

double CCalHit::getEnergyDeposit ( ) const

Definition at line 86 of file CCalHit.cc.

86  {
87  return theEnergyDeposit;
88 }
double theEnergyDeposit
Definition: CCalHit.hh:96
Here is the caller graph for this function:

◆ getEntry()

CLHEP::Hep3Vector CCalHit::getEntry ( ) const

Definition at line 65 of file CCalHit.cc.

65 {return entry;}
CLHEP::Hep3Vector entry
Definition: CCalHit.hh:91
Here is the caller graph for this function:

◆ getIncidentEnergy()

double CCalHit::getIncidentEnergy ( ) const

Definition at line 68 of file CCalHit.cc.

68 {return theIncidentEnergy; }
double theIncidentEnergy
Definition: CCalHit.hh:92
Here is the caller graph for this function:

◆ getTimeSlice()

double CCalHit::getTimeSlice ( ) const

Definition at line 77 of file CCalHit.cc.

77 {return theTimeSlice; }
double theTimeSlice
Definition: CCalHit.hh:95
Here is the caller graph for this function:

◆ getTimeSliceID()

int CCalHit::getTimeSliceID ( ) const

Definition at line 79 of file CCalHit.cc.

79  { if ( theTimeSlice > 1.0E9 ) return 999999999;
80  return (int)theTimeSlice;}
double theTimeSlice
Definition: CCalHit.hh:95
Here is the caller graph for this function:

◆ getTrackID()

int CCalHit::getTrackID ( ) const

Definition at line 71 of file CCalHit.cc.

71 {return theTrackID; }
int theTrackID
Definition: CCalHit.hh:93
Here is the caller graph for this function:

◆ getUnitID()

unsigned int CCalHit::getUnitID ( ) const

Definition at line 74 of file CCalHit.cc.

74 {return theUnitID; }
unsigned int theUnitID
Definition: CCalHit.hh:94
Here is the caller graph for this function:

◆ operator=()

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

Definition at line 54 of file CCalHit.cc.

54  {
55  entry = right.entry;
57  theTrackID = right.theTrackID;
58  theUnitID = right.theUnitID;
59  theTimeSlice = right.theTimeSlice;
61  return *this;
62 }
unsigned int theUnitID
Definition: CCalHit.hh:94
double theTimeSlice
Definition: CCalHit.hh:95
int theTrackID
Definition: CCalHit.hh:93
double theEnergyDeposit
Definition: CCalHit.hh:96
double theIncidentEnergy
Definition: CCalHit.hh:92
CLHEP::Hep3Vector entry
Definition: CCalHit.hh:91
Here is the caller graph for this function:

◆ operator==()

int CCalHit::operator== ( const CCalHit )
inline

Definition at line 62 of file CCalHit.hh.

62 {return 0;}
Here is the call graph for this function:

◆ print()

void CCalHit::print ( )

Definition at line 99 of file CCalHit.cc.

99  {
100  G4cout << (*this);
101 }
G4GLOB_DLL std::ostream G4cout
Here is the caller graph for this function:

◆ setEnergyDeposit()

void CCalHit::setEnergyDeposit ( const double  e)

Definition at line 82 of file CCalHit.cc.

82  {
84 }
double theEnergyDeposit
Definition: CCalHit.hh:96
Here is the caller graph for this function:

◆ setEntry()

void CCalHit::setEntry ( CLHEP::Hep3Vector  xyz)

Definition at line 66 of file CCalHit.cc.

66 { entry = xyz; }
CLHEP::Hep3Vector entry
Definition: CCalHit.hh:91
Here is the caller graph for this function:

◆ setIncidentEnergy()

void CCalHit::setIncidentEnergy ( double  e)

Definition at line 69 of file CCalHit.cc.

69 {theIncidentEnergy = e; }
double theIncidentEnergy
Definition: CCalHit.hh:92
Here is the caller graph for this function:

◆ setTimeSlice()

void CCalHit::setTimeSlice ( double  d)

Definition at line 78 of file CCalHit.cc.

78 { theTimeSlice = d; }
Float_t d
double theTimeSlice
Definition: CCalHit.hh:95
Here is the caller graph for this function:

◆ setTrackID()

void CCalHit::setTrackID ( int  i)

Definition at line 72 of file CCalHit.cc.

72 { theTrackID = i; }
int theTrackID
Definition: CCalHit.hh:93
Here is the caller graph for this function:

◆ setUnitID()

void CCalHit::setUnitID ( unsigned int  i)

Definition at line 75 of file CCalHit.cc.

75 { theUnitID = i; }
unsigned int theUnitID
Definition: CCalHit.hh:94
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const CCalHit hit 
)
friend

Definition at line 104 of file CCalHit.cc.

104  {
105  os << " Data of this CCalHit are:"<< G4endl
106  << " \t Time slice ID: " << hit.getTimeSliceID() << G4endl
107  << " \t Energy of primary particle (ID = " << hit.getTrackID()
108  << ") = " << hit.getIncidentEnergy() << " (MeV)"<< G4endl
109  << " \t Entry point in Calorimeter unit number " << hit.getUnitID()
110  << " is: " << hit.getEntry() << " (mm)" << G4endl
111  << " \t EnergyDeposit = " << hit.getEnergyDeposit() << " (MeV)" << G4endl;
112  return os;
113 }
int getTimeSliceID() const
Definition: CCalHit.cc:79
int getTrackID() const
Definition: CCalHit.cc:71
double getEnergyDeposit() const
Definition: CCalHit.cc:86
unsigned int getUnitID() const
Definition: CCalHit.cc:74
CLHEP::Hep3Vector getEntry() const
Definition: CCalHit.cc:65
#define G4endl
Definition: G4ios.hh:61
double getIncidentEnergy() const
Definition: CCalHit.cc:68

Member Data Documentation

◆ entry

CLHEP::Hep3Vector CCalHit::entry
private

Definition at line 91 of file CCalHit.hh.

◆ theEnergyDeposit

double CCalHit::theEnergyDeposit
private

Definition at line 96 of file CCalHit.hh.

◆ theIncidentEnergy

double CCalHit::theIncidentEnergy
private

Definition at line 92 of file CCalHit.hh.

◆ theTimeSlice

double CCalHit::theTimeSlice
private

Definition at line 95 of file CCalHit.hh.

◆ theTrackID

int CCalHit::theTrackID
private

Definition at line 93 of file CCalHit.hh.

◆ theUnitID

unsigned int CCalHit::theUnitID
private

Definition at line 94 of file CCalHit.hh.


The documentation for this class was generated from the following files: