Geant4  10.02.p03
CCalG4Hit Class Reference

#include <CCalG4Hit.hh>

Inheritance diagram for CCalG4Hit:
Collaboration diagram for CCalG4Hit:

Public Member Functions

 CCalG4Hit ()
 
 ~CCalG4Hit ()
 
 CCalG4Hit (const CCalG4Hit &right)
 
const CCalG4Hitoperator= (const CCalG4Hit &right)
 
int operator== (const CCalG4Hit &)
 
void Draw ()
 
void Print ()
 
double getEM () const
 
void setEM (double e)
 
double getHadr () const
 
void setHadr (double e)
 
void addEnergyDeposit (const CCalG4Hit &aHit)
 
void addEnergyDeposit (double em, double hd)
 
- Public Member Functions inherited from G4VHit
 G4VHit ()
 
virtual ~G4VHit ()
 
G4int operator== (const G4VHit &right) const
 
virtual const std::map< G4String, G4AttDef > * GetAttDefs () const
 
virtual std::vector< G4AttValue > * CreateAttValues () const
 
- Public Member Functions inherited from CCalHit
 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

double elem
 
double hadr
 

Friends

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

Detailed Description

Definition at line 38 of file CCalG4Hit.hh.

Constructor & Destructor Documentation

◆ CCalG4Hit() [1/2]

CCalG4Hit::CCalG4Hit ( )

Definition at line 35 of file CCalG4Hit.cc.

35  : CCalHit(),
36  elem(0.0), hadr(0.0)
37 {}
double elem
Definition: CCalG4Hit.hh:66
double hadr
Definition: CCalG4Hit.hh:67
CCalHit()
Definition: CCalHit.cc:35

◆ ~CCalG4Hit()

CCalG4Hit::~CCalG4Hit ( )

Definition at line 40 of file CCalG4Hit.cc.

40 {}

◆ CCalG4Hit() [2/2]

CCalG4Hit::CCalG4Hit ( const CCalG4Hit right)

Definition at line 43 of file CCalG4Hit.cc.

43  :
44  G4VHit(right), CCalHit(right),
45  elem(right.elem), hadr(right.hadr)
46 {}
G4VHit()
Definition: G4VHit.cc:34
double elem
Definition: CCalG4Hit.hh:66
double hadr
Definition: CCalG4Hit.hh:67
CCalHit()
Definition: CCalHit.cc:35

Member Function Documentation

◆ addEnergyDeposit() [1/2]

void CCalG4Hit::addEnergyDeposit ( const CCalG4Hit aHit)

Definition at line 63 of file CCalG4Hit.cc.

63  {
64  addEnergyDeposit( aHit.getEM(), aHit.getHadr() );
65 }
double getEM() const
Definition: CCalG4Hit.cc:57
double getHadr() const
Definition: CCalG4Hit.cc:60
void addEnergyDeposit(const CCalG4Hit &aHit)
Definition: CCalG4Hit.cc:63
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addEnergyDeposit() [2/2]

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

Definition at line 67 of file CCalG4Hit.cc.

67  {
68  elem += em;
69  hadr += hd;
71 }
double elem
Definition: CCalG4Hit.hh:66
void addEnergyDeposit(const CCalHit &aHit)
Definition: CCalHit.cc:90
double hadr
Definition: CCalG4Hit.hh:67
Here is the call graph for this function:

◆ Draw()

void CCalG4Hit::Draw ( )
inlinevirtual

Reimplemented from G4VHit.

Definition at line 52 of file CCalG4Hit.hh.

52 {}
Here is the call graph for this function:

◆ getEM()

double CCalG4Hit::getEM ( ) const

Definition at line 57 of file CCalG4Hit.cc.

57 { return elem; }
double elem
Definition: CCalG4Hit.hh:66
Here is the caller graph for this function:

◆ getHadr()

double CCalG4Hit::getHadr ( ) const

Definition at line 60 of file CCalG4Hit.cc.

60 { return hadr; }
double hadr
Definition: CCalG4Hit.hh:67
Here is the caller graph for this function:

◆ operator=()

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

Definition at line 49 of file CCalG4Hit.cc.

49  {
50  CCalHit::operator=(right);
51  elem = right.elem;
52  hadr = right.hadr;
53  return *this;
54 }
double elem
Definition: CCalG4Hit.hh:66
double hadr
Definition: CCalG4Hit.hh:67
const CCalHit & operator=(const CCalHit &right)
Definition: CCalHit.cc:54
Here is the call graph for this function:

◆ operator==()

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

Definition at line 48 of file CCalG4Hit.hh.

48 {return 0;}

◆ Print()

void CCalG4Hit::Print ( void  )
virtual

Reimplemented from G4VHit.

Definition at line 74 of file CCalG4Hit.cc.

74  {
75  G4cout << (*this);
76 }
G4GLOB_DLL std::ostream G4cout
Here is the caller graph for this function:

◆ setEM()

void CCalG4Hit::setEM ( double  e)

Definition at line 58 of file CCalG4Hit.cc.

58 { elem = e; }
double elem
Definition: CCalG4Hit.hh:66
Here is the caller graph for this function:

◆ setHadr()

void CCalG4Hit::setHadr ( double  e)

Definition at line 61 of file CCalG4Hit.cc.

61 { hadr = e; }
double hadr
Definition: CCalG4Hit.hh:67
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 79 of file CCalG4Hit.cc.

79  {
80  os << static_cast<CCalHit>(hit);
81  os << " Data specific of this CCalG4Hit are:" << G4endl
82  << " \t EnergyDeposit of EM particles = " << hit.getEM()
83  << " (MeV)" << G4endl
84  << " \t EnergyDeposit of HD particles = " << hit.getHadr()
85  << " (MeV)" << G4endl;
86  return os;
87 }
double getEM() const
Definition: CCalG4Hit.cc:57
double getHadr() const
Definition: CCalG4Hit.cc:60
#define G4endl
Definition: G4ios.hh:61

Member Data Documentation

◆ elem

double CCalG4Hit::elem
private

Definition at line 66 of file CCalG4Hit.hh.

◆ hadr

double CCalG4Hit::hadr
private

Definition at line 67 of file CCalG4Hit.hh.


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