Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DMXScintHit Class Reference

#include <DMXScintHit.hh>

Inheritance diagram for DMXScintHit:
Collaboration diagram for DMXScintHit:

Public Member Functions

 DMXScintHit ()
 
 ~DMXScintHit ()
 
 DMXScintHit (const DMXScintHit &)
 
const DMXScintHitoperator= (const DMXScintHit &)
 
int operator== (const DMXScintHit &) const
 
voidoperator new (size_t)
 
void operator delete (void *)
 
void Draw ()
 
void Print ()
 
void SetEdep (G4double de)
 
void SetPos (G4ThreeVector xyz)
 
void SetParticle (G4String name)
 
void SetParticleEnergy (G4double e1)
 
void SetTime (G4double t2)
 
G4double GetEdep ()
 
G4ThreeVector GetPos ()
 
G4String GetParticle ()
 
G4double GetParticleEnergy ()
 
G4double GetTime ()
 
- 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
 

Detailed Description

Definition at line 52 of file DMXScintHit.hh.

Constructor & Destructor Documentation

DMXScintHit::DMXScintHit ( )

Definition at line 54 of file DMXScintHit.cc.

55 {
56  edep=0.;
57  pos = G4ThreeVector(0., 0., 0.);
58  time = 0.;
59  particleEnergy = 0.;
60 }
CLHEP::Hep3Vector G4ThreeVector
static const G4double pos
DMXScintHit::~DMXScintHit ( )

Definition at line 64 of file DMXScintHit.cc.

65 {;}
DMXScintHit::DMXScintHit ( const DMXScintHit right)

Definition at line 69 of file DMXScintHit.cc.

70  : G4VHit(right)
71 {
72  edep = right.edep;
73  pos = right.pos;
74  time = right.time;
75  particleName = right.particleName;
76  particleEnergy = right.particleEnergy;
77 }
G4VHit()
Definition: G4VHit.cc:34
static const G4double pos

Member Function Documentation

void DMXScintHit::Draw ( )
virtual

Reimplemented from G4VHit.

Definition at line 99 of file DMXScintHit.cc.

100 {;}
G4double DMXScintHit::GetEdep ( )
inline

Definition at line 77 of file DMXScintHit.hh.

77 { return edep; };
G4String DMXScintHit::GetParticle ( )
inline

Definition at line 79 of file DMXScintHit.hh.

79 { return particleName;};
G4double DMXScintHit::GetParticleEnergy ( )
inline

Definition at line 80 of file DMXScintHit.hh.

80 { return particleEnergy;};
G4ThreeVector DMXScintHit::GetPos ( )
inline

Definition at line 78 of file DMXScintHit.hh.

78 { return pos; };
static const G4double pos
G4double DMXScintHit::GetTime ( )
inline

Definition at line 81 of file DMXScintHit.hh.

81 { return time; };
void DMXScintHit::operator delete ( void aHit)
inline

Definition at line 111 of file DMXScintHit.hh.

112 {
113  DMXScintHitAllocator->FreeSingle((DMXScintHit*) aHit);
114 }
G4ThreadLocal G4Allocator< DMXScintHit > * DMXScintHitAllocator
Definition: DMXScintHit.cc:50
void * DMXScintHit::operator new ( size_t  )
inline

Definition at line 102 of file DMXScintHit.hh.

103 {
106  return (void*) DMXScintHitAllocator->MallocSingle();
107 }
G4ThreadLocal G4Allocator< DMXScintHit > * DMXScintHitAllocator
Definition: DMXScintHit.cc:50
const DMXScintHit & DMXScintHit::operator= ( const DMXScintHit right)

Definition at line 81 of file DMXScintHit.cc.

82 {
83  edep = right.edep;
84  pos = right.pos;
85  time = right.time;
86  particleName = right.particleName;
87  particleEnergy = right.particleEnergy;
88  return *this;
89 }
static const G4double pos
int DMXScintHit::operator== ( const DMXScintHit right) const

Definition at line 93 of file DMXScintHit.cc.

94 {
95  return (this==&right) ? 1 : 0;
96 }
void DMXScintHit::Print ( void  )
virtual

Reimplemented from G4VHit.

Definition at line 104 of file DMXScintHit.cc.

105 {
106 
107  G4cout << " LXe hit ENERGY: " << std::setw(5) << G4BestUnit(edep,"Energy")
108  << ", at " << G4BestUnit(pos,"Length") << G4endl;
109 }
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
static const G4double pos
void DMXScintHit::SetEdep ( G4double  de)
inline

Definition at line 70 of file DMXScintHit.hh.

70 { edep = de; };

Here is the caller graph for this function:

void DMXScintHit::SetParticle ( G4String  name)
inline

Definition at line 72 of file DMXScintHit.hh.

72 { particleName = name; };
const XML_Char * name
Definition: expat.h:151

Here is the caller graph for this function:

void DMXScintHit::SetParticleEnergy ( G4double  e1)
inline

Definition at line 73 of file DMXScintHit.hh.

73 { particleEnergy = e1; };

Here is the caller graph for this function:

void DMXScintHit::SetPos ( G4ThreeVector  xyz)
inline

Definition at line 71 of file DMXScintHit.hh.

71 { pos = xyz; };
static const G4double pos

Here is the caller graph for this function:

void DMXScintHit::SetTime ( G4double  t2)
inline

Definition at line 74 of file DMXScintHit.hh.

74 { time = t2; };

Here is the caller graph for this function:


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