QwGeant4
QweakSimLumi_DetectorHit Class Reference

#include <QweakSimLumi_DetectorHit.hh>

Inherits G4VHit.

Public Member Functions

 QweakSimLumi_DetectorHit ()
 
 QweakSimLumi_DetectorHit (G4int detector_id)
 
virtual ~QweakSimLumi_DetectorHit ()
 
 QweakSimLumi_DetectorHit (const QweakSimLumi_DetectorHit &right)
 
const QweakSimLumi_DetectorHitoperator= (const QweakSimLumi_DetectorHit &right)
 
int operator== (const QweakSimLumi_DetectorHit &right) const
 
void * operator new (size_t)
 
void operator delete (void *aHit)
 
float x ()
 
float y ()
 
virtual void Draw ()
 
virtual void Print ()
 
void StorePrimaryEventNumber (G4int pen)
 
G4int GetPrimaryEventNumber () const
 
void StoreTrackID (G4double tid)
 
G4double GetTrackID () const
 
void StoreParticleName (G4String pn)
 
G4String GetParticleName () const
 
void StoreParticleType (G4int pt)
 
G4int GetParticleType () const
 
void StoreGlobalTime (G4double t)
 
G4double GetGlobalTime () const
 
void StoreHasBeenHit (G4int n)
 
G4int GetHasBeenHit () const
 
void StoreEdgeEventFlag (G4int flag)
 
G4int GetEdgeEventFlag () const
 
void StoreNbOfHits (G4int nd)
 
G4int GetNbOfHits () const
 
void StoreWorldPosition (G4ThreeVector xyz)
 
G4ThreeVector GetWorldPosition () const
 
void StoreLocalPosition (G4ThreeVector xyz)
 
G4ThreeVector GetLocalPosition () const
 
void StoreLocalExitPosition (G4ThreeVector xyz)
 
G4ThreeVector GetLocalExitPosition () const
 
void StoreOriginVertexPosition (G4ThreeVector oxyz)
 
G4ThreeVector GetOriginVertexPosition () const
 
void StoreWorldMomentum (G4ThreeVector gpxyz)
 
G4ThreeVector GetWorldMomentum () const
 
void StoreLocalMomentum (G4ThreeVector lpxyz)
 
G4ThreeVector GetLocalMomentum () const
 
void StoreMomentumDirection (G4ThreeVector pxyz)
 
G4ThreeVector GetMomentumDirection () const
 
void StoreOriginVertexMomentumDirection (G4ThreeVector opxyz)
 
G4ThreeVector GetOriginVertexMomentumDirection () const
 
void StoreOriginVertexKineticEnergy (G4double oekin)
 
G4double GetOriginVertexKineticEnergy () const
 
void StoreOriginVertexTotalEnergy (G4double oetot)
 
G4double GetOriginVertexTotalEnergy () const
 
void StoreKineticEnergy (G4double ekin)
 
G4double GetKineticEnergy () const
 
void StoreTotalEnergy (G4double etot)
 
G4double GetTotalEnergy () const
 
void StoreHitDepositedEnergy (G4double dpeg)
 
G4double GetHitDepositedEnergy () const
 
void StoreCellPosition (G4ThreeVector xyz)
 
G4ThreeVector GetCellPosition () const
 
void StoreCellRotation (G4RotationMatrix rmat)
 
G4RotationMatrix GetCellRotation () const
 
void StoreLogVolume (G4LogicalVolume *val)
 
const G4LogicalVolume * GetLogVolume () const
 

Private Attributes

G4int detectorID
 
G4int primaryEventNumber
 
G4double trackID
 
G4String particleName
 
G4int particleType
 
G4double time
 
G4int hasBeenHit
 
G4int edgeEventFlag
 
G4int nbOfHits
 
G4ThreeVector worldPos
 
G4ThreeVector localPos
 
G4ThreeVector localExitPos
 
G4ThreeVector originVertexPosition
 
G4ThreeVector worldMomentum
 
G4ThreeVector localMomentum
 
G4ThreeVector currentMomentumDirection
 
G4ThreeVector originVertexMomentumDirection
 
G4double originVertexKineticEnergy
 
G4double originVertexTotalEnergy
 
G4double currentKineticEnergy
 
G4double currentTotalEnergy
 
G4double depositedEnergyHit
 
G4ThreeVector cellPos
 
G4RotationMatrix cellRot
 
const G4LogicalVolume * pLogV
 

Detailed Description

Definition at line 13 of file QweakSimLumi_DetectorHit.hh.

Constructor & Destructor Documentation

QweakSimLumi_DetectorHit::QweakSimLumi_DetectorHit ( )

Definition at line 14 of file QweakSimLumi_DetectorHit.cc.

References currentKineticEnergy, currentMomentumDirection, currentTotalEnergy, depositedEnergyHit, detectorID, edgeEventFlag, hasBeenHit, localExitPos, localMomentum, localPos, nbOfHits, originVertexKineticEnergy, originVertexMomentumDirection, originVertexPosition, originVertexTotalEnergy, particleName, particleType, pLogV, primaryEventNumber, time, trackID, worldMomentum, and worldPos.

14  {
15  detectorID = -1;
16  primaryEventNumber = -1;
17  trackID = -1.;
18 
19  particleName = "None";
20  particleType = -1;
21 
22  time = 0.;
23 
24  hasBeenHit = 0;
25  edgeEventFlag = 0;
26  nbOfHits = 0;
27 
28  worldPos = G4ThreeVector(0.0,0.0,0.0);
29  localPos = G4ThreeVector(0.0,0.0,0.0);
30  localExitPos = G4ThreeVector(0.0,0.0,0.0);
31  originVertexPosition = G4ThreeVector(0.0,0.0,0.0);
32 
33  worldMomentum = G4ThreeVector(0.0,0.0,0.0);
34  localMomentum = G4ThreeVector(0.0,0.0,0.0);
35  currentMomentumDirection = G4ThreeVector(0.0,0.0,0.0);
36  originVertexMomentumDirection = G4ThreeVector(0.0,0.0,0.0);
37 
40 
42  currentTotalEnergy = 0.;
43 
44  depositedEnergyHit = 0.;
45 
46  pLogV = 0;
47 }
QweakSimLumi_DetectorHit::QweakSimLumi_DetectorHit ( G4int  detector_id)

Definition at line 49 of file QweakSimLumi_DetectorHit.cc.

References detectorID, pLogV, and time.

49  {
50  detectorID = detector_id;
51  time = 0.;
52  pLogV = 0;
53 }
QweakSimLumi_DetectorHit::~QweakSimLumi_DetectorHit ( )
virtual

Definition at line 55 of file QweakSimLumi_DetectorHit.cc.

55 {;}
QweakSimLumi_DetectorHit::QweakSimLumi_DetectorHit ( const QweakSimLumi_DetectorHit right)

Definition at line 57 of file QweakSimLumi_DetectorHit.cc.

References cellPos, cellRot, currentKineticEnergy, currentMomentumDirection, currentTotalEnergy, depositedEnergyHit, detectorID, edgeEventFlag, hasBeenHit, localExitPos, localMomentum, localPos, nbOfHits, originVertexKineticEnergy, originVertexMomentumDirection, originVertexPosition, originVertexTotalEnergy, particleName, particleType, pLogV, primaryEventNumber, time, trackID, worldMomentum, and worldPos.

58 : G4VHit() {
59  detectorID = right.detectorID;
61  trackID = right.trackID;
62 
63  particleName = right.particleName;
64  particleType = right.particleType;
65 
66  time = right.time;
67 
68  hasBeenHit = right.hasBeenHit;
70  nbOfHits = right.nbOfHits;
71 
72  worldPos = right.worldPos;
73  localPos = right.localPos;
74  localExitPos = right.localExitPos;
76 
81 
84 
87 
89 
90  cellPos = right.cellPos;
91  cellRot = right.cellRot;
92 
93  pLogV = right.pLogV;
94 }

Member Function Documentation

void QweakSimLumi_DetectorHit::Draw ( )
virtual

Definition at line 139 of file QweakSimLumi_DetectorHit.cc.

References worldPos.

139  {
140  G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
141 
142  if(pVVisManager) {
143  G4Colour colourHit (255/255., 255/255., 0/255.); // yellow
144 
145  G4VisAttributes attribs(colourHit);
146 
147  G4Circle circle(worldPos);
148  circle.SetScreenSize(0.01);
149  circle.SetFillStyle(G4Circle::filled);
150  circle.SetVisAttributes(attribs);
151 
152  pVVisManager->Draw(circle);
153  }
154 }
G4ThreeVector QweakSimLumi_DetectorHit::GetCellPosition ( ) const
inline

Definition at line 134 of file QweakSimLumi_DetectorHit.hh.

References cellPos.

134 {return cellPos;}
G4RotationMatrix QweakSimLumi_DetectorHit::GetCellRotation ( ) const
inline

Definition at line 137 of file QweakSimLumi_DetectorHit.hh.

References cellRot.

137 {return cellRot;}
G4int QweakSimLumi_DetectorHit::GetEdgeEventFlag ( ) const
inline

Definition at line 69 of file QweakSimLumi_DetectorHit.hh.

References edgeEventFlag.

G4double QweakSimLumi_DetectorHit::GetGlobalTime ( ) const
inline

Definition at line 61 of file QweakSimLumi_DetectorHit.hh.

References time.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4int QweakSimLumi_DetectorHit::GetHasBeenHit ( ) const
inline

Definition at line 66 of file QweakSimLumi_DetectorHit.hh.

References hasBeenHit.

G4double QweakSimLumi_DetectorHit::GetHitDepositedEnergy ( ) const
inline

Definition at line 129 of file QweakSimLumi_DetectorHit.hh.

References depositedEnergyHit.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4double QweakSimLumi_DetectorHit::GetKineticEnergy ( ) const
inline

Definition at line 121 of file QweakSimLumi_DetectorHit.hh.

References currentKineticEnergy.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4ThreeVector QweakSimLumi_DetectorHit::GetLocalExitPosition ( ) const
inline

Definition at line 86 of file QweakSimLumi_DetectorHit.hh.

References localExitPos.

86 {return localExitPos;}
G4ThreeVector QweakSimLumi_DetectorHit::GetLocalMomentum ( ) const
inline

Definition at line 100 of file QweakSimLumi_DetectorHit.hh.

References localMomentum.

100 {return localMomentum;}
G4ThreeVector QweakSimLumi_DetectorHit::GetLocalPosition ( ) const
inline

Definition at line 82 of file QweakSimLumi_DetectorHit.hh.

References localPos.

Referenced by QweakSimEventAction::EndOfEventAction().

82 {return localPos;}

+ Here is the caller graph for this function:

const G4LogicalVolume* QweakSimLumi_DetectorHit::GetLogVolume ( ) const
inline

Definition at line 140 of file QweakSimLumi_DetectorHit.hh.

References pLogV.

140 {return pLogV;}
G4ThreeVector QweakSimLumi_DetectorHit::GetMomentumDirection ( ) const
inline

Definition at line 104 of file QweakSimLumi_DetectorHit.hh.

References currentMomentumDirection.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4int QweakSimLumi_DetectorHit::GetNbOfHits ( ) const
inline

Definition at line 72 of file QweakSimLumi_DetectorHit.hh.

References nbOfHits.

G4double QweakSimLumi_DetectorHit::GetOriginVertexKineticEnergy ( ) const
inline

Definition at line 113 of file QweakSimLumi_DetectorHit.hh.

References originVertexKineticEnergy.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4ThreeVector QweakSimLumi_DetectorHit::GetOriginVertexMomentumDirection ( ) const
inline

Definition at line 108 of file QweakSimLumi_DetectorHit.hh.

References originVertexMomentumDirection.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4ThreeVector QweakSimLumi_DetectorHit::GetOriginVertexPosition ( ) const
inline

Definition at line 90 of file QweakSimLumi_DetectorHit.hh.

References originVertexPosition.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4double QweakSimLumi_DetectorHit::GetOriginVertexTotalEnergy ( ) const
inline

Definition at line 116 of file QweakSimLumi_DetectorHit.hh.

References originVertexTotalEnergy.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4String QweakSimLumi_DetectorHit::GetParticleName ( ) const
inline

Definition at line 53 of file QweakSimLumi_DetectorHit.hh.

References particleName.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4int QweakSimLumi_DetectorHit::GetParticleType ( ) const
inline

Definition at line 56 of file QweakSimLumi_DetectorHit.hh.

References particleType.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4int QweakSimLumi_DetectorHit::GetPrimaryEventNumber ( ) const
inline

Definition at line 43 of file QweakSimLumi_DetectorHit.hh.

References primaryEventNumber.

G4double QweakSimLumi_DetectorHit::GetTotalEnergy ( ) const
inline

Definition at line 124 of file QweakSimLumi_DetectorHit.hh.

References currentTotalEnergy.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4double QweakSimLumi_DetectorHit::GetTrackID ( ) const
inline

Definition at line 48 of file QweakSimLumi_DetectorHit.hh.

References trackID.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4ThreeVector QweakSimLumi_DetectorHit::GetWorldMomentum ( ) const
inline

Definition at line 96 of file QweakSimLumi_DetectorHit.hh.

References worldMomentum.

Referenced by QweakSimEventAction::EndOfEventAction().

96 {return worldMomentum;}

+ Here is the caller graph for this function:

G4ThreeVector QweakSimLumi_DetectorHit::GetWorldPosition ( ) const
inline

Definition at line 78 of file QweakSimLumi_DetectorHit.hh.

References worldPos.

Referenced by QweakSimEventAction::EndOfEventAction().

78 {return worldPos;}

+ Here is the caller graph for this function:

void QweakSimLumi_DetectorHit::operator delete ( void *  aHit)
inline

Definition at line 190 of file QweakSimLumi_DetectorHit.hh.

References QweakSimLumi_DetectorHitAllocator.

190  {
192 }
G4Allocator< QweakSimLumi_DetectorHit > QweakSimLumi_DetectorHitAllocator
void * QweakSimLumi_DetectorHit::operator new ( size_t  )
inline

Definition at line 184 of file QweakSimLumi_DetectorHit.hh.

References QweakSimLumi_DetectorHitAllocator.

184  {
185  void* aHit;
186  aHit = (void*) QweakSimLumi_DetectorHitAllocator.MallocSingle();
187  return aHit;
188 }
G4Allocator< QweakSimLumi_DetectorHit > QweakSimLumi_DetectorHitAllocator
const QweakSimLumi_DetectorHit & QweakSimLumi_DetectorHit::operator= ( const QweakSimLumi_DetectorHit right)

Definition at line 96 of file QweakSimLumi_DetectorHit.cc.

References cellPos, cellRot, currentKineticEnergy, currentMomentumDirection, currentTotalEnergy, depositedEnergyHit, detectorID, edgeEventFlag, hasBeenHit, localExitPos, localMomentum, localPos, nbOfHits, originVertexKineticEnergy, originVertexMomentumDirection, originVertexPosition, originVertexTotalEnergy, particleName, particleType, pLogV, primaryEventNumber, time, trackID, worldMomentum, and worldPos.

96  {
97  detectorID = right.detectorID;
99  trackID = right.trackID;
100 
101  particleName = right.particleName;
102  particleType = right.particleType;
103 
104  time = right.time;
105 
106  hasBeenHit = right.hasBeenHit;
108  nbOfHits = right.nbOfHits;
109 
110  worldPos = right.worldPos;
111  localPos = right.localPos;
112  localExitPos = right.localExitPos;
114 
119 
122 
125 
127 
128  cellPos = right.cellPos;
129  cellRot = right.cellRot;
130  pLogV = right.pLogV;
131 
132  return *this;
133 }
int QweakSimLumi_DetectorHit::operator== ( const QweakSimLumi_DetectorHit right) const

Definition at line 135 of file QweakSimLumi_DetectorHit.cc.

135  {
136  return 0;
137 }
void QweakSimLumi_DetectorHit::Print ( )
virtual

Definition at line 156 of file QweakSimLumi_DetectorHit.cc.

References detectorID, time, and worldPos.

156  {
157  G4cout << " Lumi[" << detectorID << "] : time " << time/ns
158  << " (nsec) --- local (x,y,z) [cm] "
159  << worldPos.x()/cm << ", "
160  << worldPos.y()/cm << ", "
161  << worldPos.z()/cm
162  << G4endl << G4endl;
163 }
void QweakSimLumi_DetectorHit::StoreCellPosition ( G4ThreeVector  xyz)
inline

Definition at line 133 of file QweakSimLumi_DetectorHit.hh.

References cellPos.

133 { cellPos = xyz; }
void QweakSimLumi_DetectorHit::StoreCellRotation ( G4RotationMatrix  rmat)
inline

Definition at line 136 of file QweakSimLumi_DetectorHit.hh.

References cellRot.

136 { cellRot = rmat; }
void QweakSimLumi_DetectorHit::StoreEdgeEventFlag ( G4int  flag)
inline

Definition at line 68 of file QweakSimLumi_DetectorHit.hh.

References edgeEventFlag.

void QweakSimLumi_DetectorHit::StoreGlobalTime ( G4double  t)
inline

Definition at line 60 of file QweakSimLumi_DetectorHit.hh.

References time.

void QweakSimLumi_DetectorHit::StoreHasBeenHit ( G4int  n)
inline

Definition at line 65 of file QweakSimLumi_DetectorHit.hh.

References hasBeenHit.

void QweakSimLumi_DetectorHit::StoreHitDepositedEnergy ( G4double  dpeg)
inline

Definition at line 128 of file QweakSimLumi_DetectorHit.hh.

References depositedEnergyHit.

void QweakSimLumi_DetectorHit::StoreKineticEnergy ( G4double  ekin)
inline

Definition at line 120 of file QweakSimLumi_DetectorHit.hh.

References currentKineticEnergy.

void QweakSimLumi_DetectorHit::StoreLocalExitPosition ( G4ThreeVector  xyz)
inline

Definition at line 85 of file QweakSimLumi_DetectorHit.hh.

References localExitPos.

85 { localExitPos = xyz; }
void QweakSimLumi_DetectorHit::StoreLocalMomentum ( G4ThreeVector  lpxyz)
inline

Definition at line 99 of file QweakSimLumi_DetectorHit.hh.

References localMomentum.

99 { localMomentum = lpxyz; }
void QweakSimLumi_DetectorHit::StoreLocalPosition ( G4ThreeVector  xyz)
inline

Definition at line 81 of file QweakSimLumi_DetectorHit.hh.

References localPos.

81 { localPos = xyz; }
void QweakSimLumi_DetectorHit::StoreLogVolume ( G4LogicalVolume *  val)
inline

Definition at line 139 of file QweakSimLumi_DetectorHit.hh.

References pLogV.

139 { pLogV = val; }
void QweakSimLumi_DetectorHit::StoreMomentumDirection ( G4ThreeVector  pxyz)
inline

Definition at line 103 of file QweakSimLumi_DetectorHit.hh.

References currentMomentumDirection.

103 { currentMomentumDirection = pxyz; }
void QweakSimLumi_DetectorHit::StoreNbOfHits ( G4int  nd)
inline

Definition at line 71 of file QweakSimLumi_DetectorHit.hh.

References nbOfHits.

void QweakSimLumi_DetectorHit::StoreOriginVertexKineticEnergy ( G4double  oekin)
inline

Definition at line 112 of file QweakSimLumi_DetectorHit.hh.

References originVertexKineticEnergy.

void QweakSimLumi_DetectorHit::StoreOriginVertexMomentumDirection ( G4ThreeVector  opxyz)
inline

Definition at line 107 of file QweakSimLumi_DetectorHit.hh.

References originVertexMomentumDirection.

void QweakSimLumi_DetectorHit::StoreOriginVertexPosition ( G4ThreeVector  oxyz)
inline

Definition at line 89 of file QweakSimLumi_DetectorHit.hh.

References originVertexPosition.

89 { originVertexPosition = oxyz; }
void QweakSimLumi_DetectorHit::StoreOriginVertexTotalEnergy ( G4double  oetot)
inline

Definition at line 115 of file QweakSimLumi_DetectorHit.hh.

References originVertexTotalEnergy.

void QweakSimLumi_DetectorHit::StoreParticleName ( G4String  pn)
inline

Definition at line 52 of file QweakSimLumi_DetectorHit.hh.

References particleName.

void QweakSimLumi_DetectorHit::StoreParticleType ( G4int  pt)
inline

Definition at line 55 of file QweakSimLumi_DetectorHit.hh.

References particleType.

void QweakSimLumi_DetectorHit::StorePrimaryEventNumber ( G4int  pen)
inline

Definition at line 42 of file QweakSimLumi_DetectorHit.hh.

References primaryEventNumber.

void QweakSimLumi_DetectorHit::StoreTotalEnergy ( G4double  etot)
inline

Definition at line 123 of file QweakSimLumi_DetectorHit.hh.

References currentTotalEnergy.

void QweakSimLumi_DetectorHit::StoreTrackID ( G4double  tid)
inline

Definition at line 47 of file QweakSimLumi_DetectorHit.hh.

References trackID.

void QweakSimLumi_DetectorHit::StoreWorldMomentum ( G4ThreeVector  gpxyz)
inline

Definition at line 95 of file QweakSimLumi_DetectorHit.hh.

References worldMomentum.

95 { worldMomentum = gpxyz; }
void QweakSimLumi_DetectorHit::StoreWorldPosition ( G4ThreeVector  xyz)
inline

Definition at line 77 of file QweakSimLumi_DetectorHit.hh.

References worldPos.

77 { worldPos = xyz; }
float QweakSimLumi_DetectorHit::x ( )
inline
float QweakSimLumi_DetectorHit::y ( )
inline

Field Documentation

G4ThreeVector QweakSimLumi_DetectorHit::cellPos
private
G4RotationMatrix QweakSimLumi_DetectorHit::cellRot
private
G4double QweakSimLumi_DetectorHit::currentKineticEnergy
private
G4ThreeVector QweakSimLumi_DetectorHit::currentMomentumDirection
private
G4double QweakSimLumi_DetectorHit::currentTotalEnergy
private
G4double QweakSimLumi_DetectorHit::depositedEnergyHit
private
G4int QweakSimLumi_DetectorHit::detectorID
private

Definition at line 143 of file QweakSimLumi_DetectorHit.hh.

Referenced by operator=(), Print(), and QweakSimLumi_DetectorHit().

G4int QweakSimLumi_DetectorHit::edgeEventFlag
private
G4int QweakSimLumi_DetectorHit::hasBeenHit
private
G4ThreeVector QweakSimLumi_DetectorHit::localExitPos
private
G4ThreeVector QweakSimLumi_DetectorHit::localMomentum
private
G4ThreeVector QweakSimLumi_DetectorHit::localPos
private
G4int QweakSimLumi_DetectorHit::nbOfHits
private
G4double QweakSimLumi_DetectorHit::originVertexKineticEnergy
private
G4ThreeVector QweakSimLumi_DetectorHit::originVertexMomentumDirection
private
G4ThreeVector QweakSimLumi_DetectorHit::originVertexPosition
private
G4double QweakSimLumi_DetectorHit::originVertexTotalEnergy
private
G4String QweakSimLumi_DetectorHit::particleName
private
G4int QweakSimLumi_DetectorHit::particleType
private
const G4LogicalVolume* QweakSimLumi_DetectorHit::pLogV
private
G4int QweakSimLumi_DetectorHit::primaryEventNumber
private
G4double QweakSimLumi_DetectorHit::time
private
G4double QweakSimLumi_DetectorHit::trackID
private
G4ThreeVector QweakSimLumi_DetectorHit::worldMomentum
private
G4ThreeVector QweakSimLumi_DetectorHit::worldPos
private

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