QwGeant4
QweakSimTriggerScintillator_DetectorHit Class Reference

#include <QweakSimTriggerScintillator_DetectorHit.hh>

Inherits G4VHit.

Public Member Functions

 QweakSimTriggerScintillator_DetectorHit ()
 
 QweakSimTriggerScintillator_DetectorHit (G4int detector_id)
 
virtual ~QweakSimTriggerScintillator_DetectorHit ()
 
 QweakSimTriggerScintillator_DetectorHit (const QweakSimTriggerScintillator_DetectorHit &right)
 
const
QweakSimTriggerScintillator_DetectorHit
operator= (const QweakSimTriggerScintillator_DetectorHit &right)
 
int operator== (const QweakSimTriggerScintillator_DetectorHit &right) const
 
void * operator new (size_t)
 
void operator delete (void *aHit)
 
float x ()
 
float y ()
 
virtual void Draw ()
 
virtual void Print ()
 
void StoreDepositedEnergy (G4double dpeg)
 
void AddDepositedEnergy (G4double dpeg)
 
G4double GetHitDepositedEnergy () const
 
void StoreTrackID (G4int tid)
 
G4int GetTrackID () const
 
void StoreGlobalTime (G4double t)
 
G4double GetGlobalTime () const
 
void StoreParticleName (G4String pn)
 
G4String GetParticleName () const
 
void StoreParticleType (G4int pt)
 
G4int GetParticleType () const
 
void StoreLocalPosition (G4ThreeVector xyz)
 
G4ThreeVector GetLocalPosition () const
 
void StoreWorldPosition (G4ThreeVector xyz)
 
G4ThreeVector GetWorldPosition () const
 
void StoreLocalMomentum (G4ThreeVector lpxyz)
 
G4ThreeVector GetLocalMomentum () const
 
void StoreWorldMomentum (G4ThreeVector gpxyz)
 
G4ThreeVector GetWorldMomentum () const
 
void StoreCellPosition (G4ThreeVector xyz)
 
G4ThreeVector GetCellPosition () const
 
void StoreCellRotation (G4RotationMatrix rmat)
 
G4RotationMatrix GetCellRotation () const
 
void StoreLogVolume (G4LogicalVolume *val)
 
const G4LogicalVolume * GetLogVolume () const
 
void StoreOriginVertexPosition (G4ThreeVector oxyz)
 
G4ThreeVector GetOriginVertexPosition () const
 
void StoreOriginVertexMomentumDirection (G4ThreeVector opxyz)
 
G4ThreeVector GetOriginVertexMomentumDirection () const
 
void StoreOriginVertexKineticEnergy (G4double oekin)
 
G4double GetOriginVertexKineticEnergy () const
 
void StoreOriginVertexTotalEnergy (G4double oetot)
 
G4double GetOriginVertexTotalEnergy () const
 
void StoreMomentumDirection (G4ThreeVector pxyz)
 
G4ThreeVector GetMomentumDirection () const
 
void StoreKineticEnergy (G4double ekin)
 
G4double GetKineticEnergy () const
 
void StoreTotalEnergy (G4double etot)
 
G4double GetTotalEnergy () const
 
void StorePrimaryQ2 (G4double q2)
 
G4double GetPrimaryQ2 () const
 
void StoreCrossSection (G4double cs)
 
G4double GetCrossSection () const
 
void StoreCrossSectionWeight (G4double csw)
 
G4double GetCrossSectionWeight () const
 

Private Attributes

G4int DetectorID
 
G4double time
 
G4int TrackID
 
G4ThreeVector localPos
 
G4ThreeVector worldPos
 
G4ThreeVector localMomentum
 
G4ThreeVector worldMomentum
 
G4String particleName
 
G4int particleType
 
G4ThreeVector cellPos
 
G4RotationMatrix cellRot
 
const G4LogicalVolume * pLogV
 
G4ThreeVector originVertexPosition
 
G4ThreeVector originVertexMomentumDirection
 
G4double originVertexKineticEnergy
 
G4double originVertexTotalEnergy
 
G4ThreeVector currentMomentumDirection
 
G4double currentKineticEnergy
 
G4double currentTotalEnergy
 
G4double primaryQ2
 
G4double crossSection
 
G4double crossSectionWeight
 
G4double depositedEnergy
 

Detailed Description

Definition at line 13 of file QweakSimTriggerScintillator_DetectorHit.hh.

Constructor & Destructor Documentation

QweakSimTriggerScintillator_DetectorHit::QweakSimTriggerScintillator_DetectorHit ( )

Definition at line 15 of file QweakSimTriggerScintillator_DetectorHit.cc.

References crossSection, crossSectionWeight, currentKineticEnergy, currentMomentumDirection, currentTotalEnergy, depositedEnergy, DetectorID, originVertexKineticEnergy, originVertexMomentumDirection, originVertexPosition, originVertexTotalEnergy, pLogV, primaryQ2, and time.

16 {
17  DetectorID = -1;
18  pLogV = 0;
19  time = 0.;
20 
21  originVertexPosition = G4ThreeVector(0.0,0.0,0.0);
22  originVertexMomentumDirection = G4ThreeVector(0.0,0.0,0.0);
25 
26  currentMomentumDirection = G4ThreeVector(0.0,0.0,0.0);
28  currentTotalEnergy = 0.;
29 
30  primaryQ2 = 0.;
31  crossSection = 0.;
32  crossSectionWeight = 0.;
33 
34  depositedEnergy = 0.;
35 }
QweakSimTriggerScintillator_DetectorHit::QweakSimTriggerScintillator_DetectorHit ( G4int  detector_id)
QweakSimTriggerScintillator_DetectorHit::~QweakSimTriggerScintillator_DetectorHit ( )
virtual

Definition at line 48 of file QweakSimTriggerScintillator_DetectorHit.cc.

49 {;}
QweakSimTriggerScintillator_DetectorHit::QweakSimTriggerScintillator_DetectorHit ( const QweakSimTriggerScintillator_DetectorHit right)

Definition at line 52 of file QweakSimTriggerScintillator_DetectorHit.cc.

References cellPos, cellRot, currentKineticEnergy, currentMomentumDirection, currentTotalEnergy, depositedEnergy, DetectorID, localMomentum, localPos, originVertexKineticEnergy, originVertexMomentumDirection, originVertexPosition, originVertexTotalEnergy, particleName, particleType, pLogV, time, worldMomentum, and worldPos.

53  : G4VHit() {
54 
55  DetectorID = right.DetectorID;
56 
57  cellPos = right.cellPos;
58  cellRot = right.cellRot;
59  pLogV = right.pLogV;
60 
61  worldPos = right.worldPos;
62  localPos = right.localPos;
65  time = right.time;
66  particleName = right.particleName;
67  particleType = right.particleType;
68 
73 
77 
79 }

Member Function Documentation

void QweakSimTriggerScintillator_DetectorHit::AddDepositedEnergy ( G4double  dpeg)
inline
void QweakSimTriggerScintillator_DetectorHit::Draw ( )
virtual

Definition at line 120 of file QweakSimTriggerScintillator_DetectorHit.cc.

References worldPos.

121 {
122  G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
123  if(pVVisManager)
124  {
125  // draw small yellow balls for the impact point
126  G4Circle circle(worldPos);
127  circle.SetScreenSize(0.01);
128  circle.SetFillStyle(G4Circle::filled);
129 
130  G4Colour colourHit(1.,1.,0.); // yellow
131 
132  G4VisAttributes attribs(colourHit);
133  circle.SetVisAttributes(attribs);
134 
135  pVVisManager->Draw(circle);
136 
137 // // draw/overlay a white drift cell for a hit
138 // G4Transform3D trans(cellRot.inverse(),cellPos);
139 // const G4VisAttributes* pVA = pLogV->GetVisAttributes();
140 // if(pVA) attribs = *pVA;
141 // G4Colour colourCell(1.,1.,1.);
142 // attribs.SetColour(colourCell);
143 // attribs.SetForceSolid(true);
144 // attribs.SetVisibility(true);
145 // pVVisManager->Draw(*pLogV,attribs,trans);
146 
147  }
148 
149 }
G4ThreeVector QweakSimTriggerScintillator_DetectorHit::GetCellPosition ( ) const
inline
G4RotationMatrix QweakSimTriggerScintillator_DetectorHit::GetCellRotation ( ) const
inline
G4double QweakSimTriggerScintillator_DetectorHit::GetCrossSection ( ) const
inline
G4double QweakSimTriggerScintillator_DetectorHit::GetCrossSectionWeight ( ) const
inline
G4double QweakSimTriggerScintillator_DetectorHit::GetGlobalTime ( ) const
inline

Definition at line 78 of file QweakSimTriggerScintillator_DetectorHit.hh.

References time.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4double QweakSimTriggerScintillator_DetectorHit::GetHitDepositedEnergy ( ) const
inline

Definition at line 72 of file QweakSimTriggerScintillator_DetectorHit.hh.

References depositedEnergy.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4double QweakSimTriggerScintillator_DetectorHit::GetKineticEnergy ( ) const
inline
G4ThreeVector QweakSimTriggerScintillator_DetectorHit::GetLocalMomentum ( ) const
inline
G4ThreeVector QweakSimTriggerScintillator_DetectorHit::GetLocalPosition ( ) const
inline

Definition at line 88 of file QweakSimTriggerScintillator_DetectorHit.hh.

References localPos.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

const G4LogicalVolume* QweakSimTriggerScintillator_DetectorHit::GetLogVolume ( ) const
inline

Definition at line 106 of file QweakSimTriggerScintillator_DetectorHit.hh.

References pLogV.

Referenced by QweakSimTriggerScintillator_DetectorSD::ProcessHits().

+ Here is the caller graph for this function:

G4ThreeVector QweakSimTriggerScintillator_DetectorHit::GetMomentumDirection ( ) const
inline
G4double QweakSimTriggerScintillator_DetectorHit::GetOriginVertexKineticEnergy ( ) const
inline

Definition at line 115 of file QweakSimTriggerScintillator_DetectorHit.hh.

References originVertexKineticEnergy.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4ThreeVector QweakSimTriggerScintillator_DetectorHit::GetOriginVertexMomentumDirection ( ) const
inline

Definition at line 112 of file QweakSimTriggerScintillator_DetectorHit.hh.

References originVertexMomentumDirection.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4ThreeVector QweakSimTriggerScintillator_DetectorHit::GetOriginVertexPosition ( ) const
inline

Definition at line 109 of file QweakSimTriggerScintillator_DetectorHit.hh.

References originVertexPosition.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4double QweakSimTriggerScintillator_DetectorHit::GetOriginVertexTotalEnergy ( ) const
inline

Definition at line 118 of file QweakSimTriggerScintillator_DetectorHit.hh.

References originVertexTotalEnergy.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4String QweakSimTriggerScintillator_DetectorHit::GetParticleName ( ) const
inline

Definition at line 81 of file QweakSimTriggerScintillator_DetectorHit.hh.

References particleName.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4int QweakSimTriggerScintillator_DetectorHit::GetParticleType ( ) const
inline

Definition at line 84 of file QweakSimTriggerScintillator_DetectorHit.hh.

References particleType.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4double QweakSimTriggerScintillator_DetectorHit::GetPrimaryQ2 ( ) const
inline
G4double QweakSimTriggerScintillator_DetectorHit::GetTotalEnergy ( ) const
inline

Definition at line 129 of file QweakSimTriggerScintillator_DetectorHit.hh.

References currentTotalEnergy.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4int QweakSimTriggerScintillator_DetectorHit::GetTrackID ( ) const
inline
G4ThreeVector QweakSimTriggerScintillator_DetectorHit::GetWorldMomentum ( ) const
inline

Definition at line 97 of file QweakSimTriggerScintillator_DetectorHit.hh.

References worldMomentum.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4ThreeVector QweakSimTriggerScintillator_DetectorHit::GetWorldPosition ( ) const
inline

Definition at line 91 of file QweakSimTriggerScintillator_DetectorHit.hh.

References worldPos.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

void QweakSimTriggerScintillator_DetectorHit::operator delete ( void *  aHit)
inline
void * QweakSimTriggerScintillator_DetectorHit::operator new ( size_t  )
inline

Definition at line 150 of file QweakSimTriggerScintillator_DetectorHit.hh.

References QweakSimTriggerScintillator_DetectorHitAllocator.

151 {
152  void* aHit;
153  aHit = (void*) QweakSimTriggerScintillator_DetectorHitAllocator.MallocSingle();
154  return aHit;
155 }
G4Allocator< QweakSimTriggerScintillator_DetectorHit > QweakSimTriggerScintillator_DetectorHitAllocator
const QweakSimTriggerScintillator_DetectorHit & QweakSimTriggerScintillator_DetectorHit::operator= ( const QweakSimTriggerScintillator_DetectorHit right)

Definition at line 82 of file QweakSimTriggerScintillator_DetectorHit.cc.

References cellPos, cellRot, currentKineticEnergy, currentMomentumDirection, currentTotalEnergy, depositedEnergy, DetectorID, localMomentum, localPos, originVertexKineticEnergy, originVertexMomentumDirection, originVertexPosition, originVertexTotalEnergy, particleName, particleType, pLogV, time, worldMomentum, and worldPos.

83 {
84  DetectorID = right.DetectorID;
85 
86  cellPos = right.cellPos;
87  cellRot = right.cellRot;
88  pLogV = right.pLogV;
89 
90  worldPos = right.worldPos;
91  localPos = right.localPos;
94  time = right.time;
95  particleName = right.particleName;
96  particleType = right.particleType;
97 
102 
106 
108 
109  return *this;
110 }
int QweakSimTriggerScintillator_DetectorHit::operator== ( const QweakSimTriggerScintillator_DetectorHit right) const

Definition at line 112 of file QweakSimTriggerScintillator_DetectorHit.cc.

113 {
114  //return (this==&right) ? 1 : 0;
115 
116 return 0;
117 }
void QweakSimTriggerScintillator_DetectorHit::Print ( )
virtual

Definition at line 152 of file QweakSimTriggerScintillator_DetectorHit.cc.

Referenced by QweakSimEventAction::EndOfEventAction().

153 {
154 // G4cout << " TriggerScintillator[" << DetectorID << "] : time " << time/ns
155 // << " (nsec) --- local (x,y,z) [cm] "
156 // << localPos.x()/cm << ", "
157 // << localPos.y()/cm << ", "
158 // << localPos.z()/cm << ", "
159 // << G4endl;
160 }

+ Here is the caller graph for this function:

void QweakSimTriggerScintillator_DetectorHit::StoreCellPosition ( G4ThreeVector  xyz)
inline

Definition at line 99 of file QweakSimTriggerScintillator_DetectorHit.hh.

References cellPos.

Referenced by QweakSimTriggerScintillator_DetectorSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimTriggerScintillator_DetectorHit::StoreCellRotation ( G4RotationMatrix  rmat)
inline

Definition at line 102 of file QweakSimTriggerScintillator_DetectorHit.hh.

References cellRot.

Referenced by QweakSimTriggerScintillator_DetectorSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimTriggerScintillator_DetectorHit::StoreCrossSection ( G4double  cs)
inline
void QweakSimTriggerScintillator_DetectorHit::StoreCrossSectionWeight ( G4double  csw)
inline
void QweakSimTriggerScintillator_DetectorHit::StoreDepositedEnergy ( G4double  dpeg)
inline

Definition at line 70 of file QweakSimTriggerScintillator_DetectorHit.hh.

References depositedEnergy.

Referenced by QweakSimTriggerScintillator_DetectorSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimTriggerScintillator_DetectorHit::StoreGlobalTime ( G4double  t)
inline

Definition at line 77 of file QweakSimTriggerScintillator_DetectorHit.hh.

References time.

Referenced by QweakSimTriggerScintillator_DetectorSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimTriggerScintillator_DetectorHit::StoreKineticEnergy ( G4double  ekin)
inline

Definition at line 125 of file QweakSimTriggerScintillator_DetectorHit.hh.

References currentKineticEnergy.

Referenced by QweakSimTriggerScintillator_DetectorSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimTriggerScintillator_DetectorHit::StoreLocalMomentum ( G4ThreeVector  lpxyz)
inline

Definition at line 93 of file QweakSimTriggerScintillator_DetectorHit.hh.

References localMomentum.

Referenced by QweakSimTriggerScintillator_DetectorSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimTriggerScintillator_DetectorHit::StoreLocalPosition ( G4ThreeVector  xyz)
inline

Definition at line 87 of file QweakSimTriggerScintillator_DetectorHit.hh.

References localPos.

Referenced by QweakSimTriggerScintillator_DetectorSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimTriggerScintillator_DetectorHit::StoreLogVolume ( G4LogicalVolume *  val)
inline

Definition at line 105 of file QweakSimTriggerScintillator_DetectorHit.hh.

References pLogV.

Referenced by QweakSimTriggerScintillator_DetectorSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimTriggerScintillator_DetectorHit::StoreMomentumDirection ( G4ThreeVector  pxyz)
inline

Definition at line 122 of file QweakSimTriggerScintillator_DetectorHit.hh.

References currentMomentumDirection.

Referenced by QweakSimTriggerScintillator_DetectorSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimTriggerScintillator_DetectorHit::StoreOriginVertexKineticEnergy ( G4double  oekin)
inline
void QweakSimTriggerScintillator_DetectorHit::StoreOriginVertexMomentumDirection ( G4ThreeVector  opxyz)
inline
void QweakSimTriggerScintillator_DetectorHit::StoreOriginVertexPosition ( G4ThreeVector  oxyz)
inline

Definition at line 108 of file QweakSimTriggerScintillator_DetectorHit.hh.

References originVertexPosition.

Referenced by QweakSimTriggerScintillator_DetectorSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimTriggerScintillator_DetectorHit::StoreOriginVertexTotalEnergy ( G4double  oetot)
inline
void QweakSimTriggerScintillator_DetectorHit::StoreParticleName ( G4String  pn)
inline

Definition at line 80 of file QweakSimTriggerScintillator_DetectorHit.hh.

References particleName.

Referenced by QweakSimTriggerScintillator_DetectorSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimTriggerScintillator_DetectorHit::StoreParticleType ( G4int  pt)
inline

Definition at line 83 of file QweakSimTriggerScintillator_DetectorHit.hh.

References particleType.

Referenced by QweakSimTriggerScintillator_DetectorSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimTriggerScintillator_DetectorHit::StorePrimaryQ2 ( G4double  q2)
inline
void QweakSimTriggerScintillator_DetectorHit::StoreTotalEnergy ( G4double  etot)
inline

Definition at line 128 of file QweakSimTriggerScintillator_DetectorHit.hh.

References currentTotalEnergy.

Referenced by QweakSimTriggerScintillator_DetectorSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimTriggerScintillator_DetectorHit::StoreTrackID ( G4int  tid)
inline

Definition at line 74 of file QweakSimTriggerScintillator_DetectorHit.hh.

References TrackID.

Referenced by QweakSimTriggerScintillator_DetectorSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimTriggerScintillator_DetectorHit::StoreWorldMomentum ( G4ThreeVector  gpxyz)
inline

Definition at line 96 of file QweakSimTriggerScintillator_DetectorHit.hh.

References worldMomentum.

Referenced by QweakSimTriggerScintillator_DetectorSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimTriggerScintillator_DetectorHit::StoreWorldPosition ( G4ThreeVector  xyz)
inline

Definition at line 90 of file QweakSimTriggerScintillator_DetectorHit.hh.

References worldPos.

Referenced by QweakSimTriggerScintillator_DetectorSD::ProcessHits().

+ Here is the caller graph for this function:

float QweakSimTriggerScintillator_DetectorHit::x ( )
inline
float QweakSimTriggerScintillator_DetectorHit::y ( )
inline

Field Documentation

G4ThreeVector QweakSimTriggerScintillator_DetectorHit::cellPos
private
G4RotationMatrix QweakSimTriggerScintillator_DetectorHit::cellRot
private
G4double QweakSimTriggerScintillator_DetectorHit::crossSection
private
G4double QweakSimTriggerScintillator_DetectorHit::crossSectionWeight
private
G4double QweakSimTriggerScintillator_DetectorHit::currentKineticEnergy
private
G4ThreeVector QweakSimTriggerScintillator_DetectorHit::currentMomentumDirection
private
G4double QweakSimTriggerScintillator_DetectorHit::currentTotalEnergy
private
G4double QweakSimTriggerScintillator_DetectorHit::depositedEnergy
private
G4int QweakSimTriggerScintillator_DetectorHit::DetectorID
private
G4ThreeVector QweakSimTriggerScintillator_DetectorHit::localMomentum
private
G4ThreeVector QweakSimTriggerScintillator_DetectorHit::localPos
private
G4double QweakSimTriggerScintillator_DetectorHit::originVertexKineticEnergy
private
G4ThreeVector QweakSimTriggerScintillator_DetectorHit::originVertexMomentumDirection
private
G4ThreeVector QweakSimTriggerScintillator_DetectorHit::originVertexPosition
private
G4double QweakSimTriggerScintillator_DetectorHit::originVertexTotalEnergy
private
G4String QweakSimTriggerScintillator_DetectorHit::particleName
private
G4int QweakSimTriggerScintillator_DetectorHit::particleType
private
const G4LogicalVolume* QweakSimTriggerScintillator_DetectorHit::pLogV
private
G4double QweakSimTriggerScintillator_DetectorHit::primaryQ2
private
G4double QweakSimTriggerScintillator_DetectorHit::time
private
G4int QweakSimTriggerScintillator_DetectorHit::TrackID
private

Definition at line 38 of file QweakSimTriggerScintillator_DetectorHit.hh.

Referenced by GetTrackID(), and StoreTrackID().

G4ThreeVector QweakSimTriggerScintillator_DetectorHit::worldMomentum
private
G4ThreeVector QweakSimTriggerScintillator_DetectorHit::worldPos
private

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