Geant4  10.02.p03
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
 
void * operator 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
 

Private Attributes

G4double edep
 
G4ThreeVector pos
 
G4double time
 
G4String particleName
 
G4double particleEnergy
 

Detailed Description

Definition at line 52 of file DMXScintHit.hh.

Constructor & Destructor Documentation

◆ DMXScintHit() [1/2]

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 }
G4ThreeVector pos
Definition: DMXScintHit.hh:86
CLHEP::Hep3Vector G4ThreeVector
G4double particleEnergy
Definition: DMXScintHit.hh:89
G4double edep
Definition: DMXScintHit.hh:81

◆ ~DMXScintHit()

DMXScintHit::~DMXScintHit ( )

Definition at line 64 of file DMXScintHit.cc.

65 {;}

◆ DMXScintHit() [2/2]

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;
77 }
G4String particleName
Definition: DMXScintHit.hh:88
G4ThreeVector pos
Definition: DMXScintHit.hh:86
G4VHit()
Definition: G4VHit.cc:34
G4double time
Definition: DMXScintHit.hh:87
G4double particleEnergy
Definition: DMXScintHit.hh:89
G4double edep
Definition: DMXScintHit.hh:81

Member Function Documentation

◆ Draw()

void DMXScintHit::Draw ( )
virtual

Reimplemented from G4VHit.

Definition at line 99 of file DMXScintHit.cc.

100 {;}

◆ GetEdep()

G4double DMXScintHit::GetEdep ( )
inline

Definition at line 77 of file DMXScintHit.hh.

77 { return edep; };
G4double edep
Definition: DMXScintHit.hh:81

◆ GetParticle()

G4String DMXScintHit::GetParticle ( )
inline

Definition at line 79 of file DMXScintHit.hh.

79 { return particleName;};
G4String particleName
Definition: DMXScintHit.hh:88

◆ GetParticleEnergy()

G4double DMXScintHit::GetParticleEnergy ( )
inline

Definition at line 80 of file DMXScintHit.hh.

80 { return particleEnergy;};
G4double particleEnergy
Definition: DMXScintHit.hh:89

◆ GetPos()

G4ThreeVector DMXScintHit::GetPos ( )
inline

Definition at line 78 of file DMXScintHit.hh.

78 { return pos; };
G4ThreeVector pos
Definition: DMXScintHit.hh:86

◆ GetTime()

G4double DMXScintHit::GetTime ( )
inline

Definition at line 81 of file DMXScintHit.hh.

81 { return time; };
G4double time
Definition: DMXScintHit.hh:87

◆ operator delete()

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

◆ operator new()

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

◆ operator=()

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;
88  return *this;
89 }
G4String particleName
Definition: DMXScintHit.hh:88
G4ThreeVector pos
Definition: DMXScintHit.hh:86
G4double time
Definition: DMXScintHit.hh:87
G4double particleEnergy
Definition: DMXScintHit.hh:89
G4double edep
Definition: DMXScintHit.hh:81

◆ operator==()

int DMXScintHit::operator== ( const DMXScintHit right) const

Definition at line 93 of file DMXScintHit.cc.

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

◆ Print()

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 }
G4ThreeVector pos
Definition: DMXScintHit.hh:86
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
G4GLOB_DLL std::ostream G4cout
G4double edep
Definition: DMXScintHit.hh:81
#define G4endl
Definition: G4ios.hh:61

◆ SetEdep()

void DMXScintHit::SetEdep ( G4double  de)
inline

Definition at line 70 of file DMXScintHit.hh.

70 { edep = de; };
G4double edep
Definition: DMXScintHit.hh:81
Here is the caller graph for this function:

◆ SetParticle()

void DMXScintHit::SetParticle ( G4String  name)
inline

Definition at line 72 of file DMXScintHit.hh.

72 { particleName = name; };
G4String particleName
Definition: DMXScintHit.hh:88
G4String name
Definition: TRTMaterials.hh:40
Here is the caller graph for this function:

◆ SetParticleEnergy()

void DMXScintHit::SetParticleEnergy ( G4double  e1)
inline

Definition at line 73 of file DMXScintHit.hh.

73 { particleEnergy = e1; };
G4double particleEnergy
Definition: DMXScintHit.hh:89
static const G4double e1
Here is the caller graph for this function:

◆ SetPos()

void DMXScintHit::SetPos ( G4ThreeVector  xyz)
inline

Definition at line 71 of file DMXScintHit.hh.

71 { pos = xyz; };
G4ThreeVector pos
Definition: DMXScintHit.hh:86
Here is the caller graph for this function:

◆ SetTime()

void DMXScintHit::SetTime ( G4double  t2)
inline

Definition at line 74 of file DMXScintHit.hh.

74 { time = t2; };
TTree * t2
Definition: plottest35.C:36
Here is the caller graph for this function:

Member Data Documentation

◆ edep

G4double DMXScintHit::edep
private

Definition at line 81 of file DMXScintHit.hh.

◆ particleEnergy

G4double DMXScintHit::particleEnergy
private

Definition at line 89 of file DMXScintHit.hh.

◆ particleName

G4String DMXScintHit::particleName
private

Definition at line 88 of file DMXScintHit.hh.

◆ pos

G4ThreeVector DMXScintHit::pos
private

Definition at line 86 of file DMXScintHit.hh.

◆ time

G4double DMXScintHit::time
private

Definition at line 87 of file DMXScintHit.hh.


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