Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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)
 

Friends

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

Detailed Description

Definition at line 38 of file CCalG4Hit.hh.

Constructor & Destructor Documentation

CCalG4Hit::CCalG4Hit ( )

Definition at line 35 of file CCalG4Hit.cc.

35  : CCalHit(),
36  elem(0.0), hadr(0.0)
37 {}
CCalHit()
Definition: CCalHit.cc:35
CCalG4Hit::~CCalG4Hit ( )

Definition at line 40 of file CCalG4Hit.cc.

40 {}
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
CCalHit()
Definition: CCalHit.cc:35

Member Function Documentation

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
void addEnergyDeposit(const CCalG4Hit &aHit)
Definition: CCalG4Hit.cc:63
double getHadr() const
Definition: CCalG4Hit.cc:60

Here is the call graph for this function:

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

Definition at line 67 of file CCalG4Hit.cc.

67  {
68  elem += em;
69  hadr += hd;
71 }
void addEnergyDeposit(const CCalHit &aHit)
Definition: CCalHit.cc:90

Here is the call graph for this function:

void CCalG4Hit::Draw ( )
inlinevirtual

Reimplemented from G4VHit.

Definition at line 52 of file CCalG4Hit.hh.

52 {}
double CCalG4Hit::getEM ( ) const

Definition at line 57 of file CCalG4Hit.cc.

57 { return elem; }

Here is the caller graph for this function:

double CCalG4Hit::getHadr ( ) const

Definition at line 60 of file CCalG4Hit.cc.

60 { return hadr; }

Here is the caller graph for this function:

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 }
const CCalHit & operator=(const CCalHit &right)
Definition: CCalHit.cc:54

Here is the call graph for this function:

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

Definition at line 48 of file CCalG4Hit.hh.

48 {return 0;}
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
void CCalG4Hit::setEM ( double  e)

Definition at line 58 of file CCalG4Hit.cc.

58 { elem = e; }
void CCalG4Hit::setHadr ( double  e)

Definition at line 61 of file CCalG4Hit.cc.

61 { hadr = e; }

Friends And Related Function Documentation

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
#define G4endl
Definition: G4ios.hh:61
double getHadr() const
Definition: CCalG4Hit.cc:60

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