QwGeant4
QweakSimVDC_WirePlaneHit Class Reference

Handling of a U-WirePlane and/or V-WirePlane Hit of the VDC. More...

#include <QweakSimVDC_WirePlaneHit.hh>

Inherits G4VHit.

Public Member Functions

 QweakSimVDC_WirePlaneHit ()
 
 QweakSimVDC_WirePlaneHit (G4int vdc_id, G4int wireplane_ID)
 
virtual ~QweakSimVDC_WirePlaneHit ()
 
 QweakSimVDC_WirePlaneHit (const QweakSimVDC_WirePlaneHit &right)
 
const QweakSimVDC_WirePlaneHitoperator= (const QweakSimVDC_WirePlaneHit &right)
 
int operator== (const QweakSimVDC_WirePlaneHit &right) const
 
void * operator new (size_t)
 
void operator delete (void *aHit)
 
virtual void Draw ()
 
virtual void Print ()
 
void StoreVDCID (G4int vdc_ID)
 
G4int GetVDCID () const
 
void StoreWirePlaneID (G4int wireplane_ID)
 
G4int GetWirePlaneID () const
 
void StoreGlobalTime (G4double t)
 
G4double GetGlobalTime () const
 
void StoreLocalPosition (G4ThreeVector lxyz)
 
G4ThreeVector GetLocalPosition () const
 
void StoreWorldPosition (G4ThreeVector gxyz)
 
G4ThreeVector GetWorldPosition () const
 
void StoreLocalMomentum (G4ThreeVector lpxyz)
 
G4ThreeVector GetLocalMomentum () const
 
void StoreWorldMomentum (G4ThreeVector gpxyz)
 
G4ThreeVector GetWorldMomentum () const
 
void StoreOriginVertexPosition (G4ThreeVector xyz)
 
G4ThreeVector GetOriginVertexPosition () const
 
void StoreOriginVertexMomentumDirection (G4ThreeVector pxyz)
 
G4ThreeVector GetOriginVertexMomentumDirection () const
 
void StoreOriginVertexKineticEnergy (G4double ekin)
 
G4double GetOriginVertexKineticEnergy () const
 
void StoreOriginVertexTotalEnergy (G4double et)
 
G4double GetOriginVertexTotalEnergy () const
 
void StorePrimaryEventNumber (G4int en)
 
G4int GetPrimaryEventNumber () const
 
void StorePrimaryQ2 (G4double q2)
 
G4double GetPrimaryQ2 () const
 
void StoreCrossSection (G4double cs)
 
G4double GetCrossSection () const
 
void StoreCrossSectionWeight (G4double csw)
 
G4double GetCrossSectionWeight () const
 
void StoreParticleName (G4String pn)
 
G4String GetParticleName () const
 
void StoreParticleType (G4int pt)
 
G4int GetParticleType () const
 
void StoreKineticEnergy (G4double ekin)
 
G4double GetKineticEnergy () const
 
void StoreTotalEnergy (G4double etot)
 
G4double GetTotalEnergy () const
 

Private Attributes

G4int vdcID
 
G4int wireplaneID
 
G4double time
 
G4ThreeVector localPos
 
G4ThreeVector worldPos
 
G4ThreeVector localMomentum
 
G4ThreeVector worldMomentum
 
G4ThreeVector originVertexPosition
 
G4ThreeVector originVertexMomentumDirection
 
G4double originVertexKineticEnergy
 
G4double originVertexTotalEnergy
 
G4double currentKineticEnergy
 
G4double currentTotalEnergy
 
G4double primaryQ2
 
G4double crossSection
 
G4double crossSectionWeight
 
G4int primaryEventNumber
 
G4String particleName
 
G4int particleType
 

Detailed Description

Handling of a U-WirePlane and/or V-WirePlane Hit of the VDC.

Placeholder for a long explaination

Definition at line 42 of file QweakSimVDC_WirePlaneHit.hh.

Constructor & Destructor Documentation

QweakSimVDC_WirePlaneHit::QweakSimVDC_WirePlaneHit ( )

Definition at line 47 of file QweakSimVDC_WirePlaneHit.cc.

References crossSection, crossSectionWeight, currentKineticEnergy, currentTotalEnergy, originVertexKineticEnergy, originVertexMomentumDirection, originVertexPosition, originVertexTotalEnergy, primaryEventNumber, primaryQ2, time, vdcID, and wireplaneID.

48 {
49 // G4cout << G4endl << "###### Calling QweakSimVDC_WirePlaneHit::QweakSimVDC_WirePlaneHit() " << G4endl << G4endl;
50 
51  vdcID = -1;
52  wireplaneID = -1;
53  time = 0.;
54 
55  originVertexPosition = G4ThreeVector(0.0,0.0,0.0);
56  originVertexMomentumDirection = G4ThreeVector(0.0,0.0,0.0);
59 
61  currentTotalEnergy = 0.;
62 
63  primaryQ2 = 0.;
64  crossSection = 0.;
65  crossSectionWeight = 0.;
66 
68 
69 // G4cout << G4endl << "###### Leaving QweakSimVDC_WirePlaneHit::QweakSimVDC_WirePlaneHit() " << G4endl << G4endl;
70 }
QweakSimVDC_WirePlaneHit::QweakSimVDC_WirePlaneHit ( G4int  vdc_id,
G4int  wireplane_ID 
)

Definition at line 74 of file QweakSimVDC_WirePlaneHit.cc.

References time, vdcID, and wireplaneID.

75 {
76 // G4cout << G4endl << "###### Calling QweakSimVDC_WirePlaneHit::QweakSimVDC_WirePlaneHit(G4int z) " << G4endl << G4endl;
77 
78  vdcID = vdc_id;
79  wireplaneID = wireplane_id;
80  time = 0.;
81 
82 // G4cout << G4endl << "###### Leaving QweakSimVDC_WirePlaneHit::QweakSimVDC_WirePlaneHit(G4int z) " << G4endl << G4endl;
83 }
QweakSimVDC_WirePlaneHit::~QweakSimVDC_WirePlaneHit ( )
virtual

Definition at line 87 of file QweakSimVDC_WirePlaneHit.cc.

88 {;}
QweakSimVDC_WirePlaneHit::QweakSimVDC_WirePlaneHit ( const QweakSimVDC_WirePlaneHit right)

Definition at line 92 of file QweakSimVDC_WirePlaneHit.cc.

References currentKineticEnergy, currentTotalEnergy, localMomentum, localPos, originVertexKineticEnergy, originVertexMomentumDirection, originVertexPosition, particleName, particleType, time, vdcID, wireplaneID, worldMomentum, and worldPos.

93  : G4VHit() {
94 
95 // G4cout << G4endl << "###### Calling QweakSimVDC_WirePlaneHit::(const QweakSimVDC_WirePlaneHit &right) " << G4endl << G4endl;
96 
97  vdcID = right.vdcID;
98  wireplaneID = right.wireplaneID;
99 
100  worldPos = right.worldPos;
101  localPos = right.localPos;
102 
105 
108 
109  time = right.time;
110  particleName = right.particleName;
111  particleType = right.particleType;
112 
116 
117 // G4cout << G4endl << "###### Leaving QweakSimVDC_WirePlaneHit::(const QweakSimVDC_WirePlaneHit &right) " << G4endl << G4endl;
118 }

Member Function Documentation

void QweakSimVDC_WirePlaneHit::Draw ( )
virtual

Definition at line 166 of file QweakSimVDC_WirePlaneHit.cc.

References worldPos.

167 {
168 // G4cout << G4endl << "###### Calling QweakSimVDC_WirePlaneHit::Draw() " << G4endl << G4endl;
169 
170  G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
171  if(pVVisManager)
172  {
173  G4Circle circle(worldPos);
174  circle.SetScreenSize(0.01);
175  circle.SetFillStyle(G4Circle::filled);
176  G4Colour colour(1.,1.,0.);
177  G4VisAttributes attribs(colour);
178  circle.SetVisAttributes(attribs);
179  pVVisManager->Draw(circle);
180  }
181 
182 // G4cout << G4endl << "###### Leaving QweakSimVDC_WirePlaneHit::Draw() " << G4endl << G4endl;
183 }
G4double QweakSimVDC_WirePlaneHit::GetCrossSection ( ) const
inline

Definition at line 131 of file QweakSimVDC_WirePlaneHit.hh.

References crossSection.

G4double QweakSimVDC_WirePlaneHit::GetCrossSectionWeight ( ) const
inline

Definition at line 134 of file QweakSimVDC_WirePlaneHit.hh.

References crossSectionWeight.

G4double QweakSimVDC_WirePlaneHit::GetGlobalTime ( ) const
inline

Definition at line 97 of file QweakSimVDC_WirePlaneHit.hh.

References time.

Referenced by QweakSimEventAction::EndOfEventAction().

97 { return time; }

+ Here is the caller graph for this function:

G4double QweakSimVDC_WirePlaneHit::GetKineticEnergy ( ) const
inline

Definition at line 144 of file QweakSimVDC_WirePlaneHit.hh.

References currentKineticEnergy.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4ThreeVector QweakSimVDC_WirePlaneHit::GetLocalMomentum ( ) const
inline

Definition at line 106 of file QweakSimVDC_WirePlaneHit.hh.

References localMomentum.

Referenced by QweakSimEventAction::EndOfEventAction().

106 { return localMomentum; }

+ Here is the caller graph for this function:

G4ThreeVector QweakSimVDC_WirePlaneHit::GetLocalPosition ( ) const
inline

Definition at line 100 of file QweakSimVDC_WirePlaneHit.hh.

References localPos.

Referenced by QweakSimEventAction::EndOfEventAction().

100 { return localPos; }

+ Here is the caller graph for this function:

G4double QweakSimVDC_WirePlaneHit::GetOriginVertexKineticEnergy ( ) const
inline

Definition at line 118 of file QweakSimVDC_WirePlaneHit.hh.

References originVertexKineticEnergy.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4ThreeVector QweakSimVDC_WirePlaneHit::GetOriginVertexMomentumDirection ( ) const
inline

Definition at line 115 of file QweakSimVDC_WirePlaneHit.hh.

References originVertexMomentumDirection.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4ThreeVector QweakSimVDC_WirePlaneHit::GetOriginVertexPosition ( ) const
inline

Definition at line 112 of file QweakSimVDC_WirePlaneHit.hh.

References originVertexPosition.

Referenced by QweakSimEventAction::EndOfEventAction().

112 { return originVertexPosition; }

+ Here is the caller graph for this function:

G4double QweakSimVDC_WirePlaneHit::GetOriginVertexTotalEnergy ( ) const
inline

Definition at line 121 of file QweakSimVDC_WirePlaneHit.hh.

References originVertexTotalEnergy.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4String QweakSimVDC_WirePlaneHit::GetParticleName ( ) const
inline

Definition at line 138 of file QweakSimVDC_WirePlaneHit.hh.

References particleName.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4int QweakSimVDC_WirePlaneHit::GetParticleType ( ) const
inline

Definition at line 141 of file QweakSimVDC_WirePlaneHit.hh.

References particleType.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4int QweakSimVDC_WirePlaneHit::GetPrimaryEventNumber ( ) const
inline

Definition at line 125 of file QweakSimVDC_WirePlaneHit.hh.

References primaryEventNumber.

G4double QweakSimVDC_WirePlaneHit::GetPrimaryQ2 ( ) const
inline

Definition at line 128 of file QweakSimVDC_WirePlaneHit.hh.

References primaryQ2.

128 { return primaryQ2; }
G4double QweakSimVDC_WirePlaneHit::GetTotalEnergy ( ) const
inline

Definition at line 147 of file QweakSimVDC_WirePlaneHit.hh.

References currentTotalEnergy.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4int QweakSimVDC_WirePlaneHit::GetVDCID ( ) const
inline

Definition at line 91 of file QweakSimVDC_WirePlaneHit.hh.

References vdcID.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4int QweakSimVDC_WirePlaneHit::GetWirePlaneID ( ) const
inline

Definition at line 94 of file QweakSimVDC_WirePlaneHit.hh.

References wireplaneID.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4ThreeVector QweakSimVDC_WirePlaneHit::GetWorldMomentum ( ) const
inline

Definition at line 109 of file QweakSimVDC_WirePlaneHit.hh.

References worldMomentum.

Referenced by QweakSimEventAction::EndOfEventAction().

109 { return worldMomentum; }

+ Here is the caller graph for this function:

G4ThreeVector QweakSimVDC_WirePlaneHit::GetWorldPosition ( ) const
inline

Definition at line 103 of file QweakSimVDC_WirePlaneHit.hh.

References worldPos.

Referenced by QweakSimEventAction::EndOfEventAction().

103 { return worldPos; }

+ Here is the caller graph for this function:

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

Definition at line 166 of file QweakSimVDC_WirePlaneHit.hh.

References QweakSimVDC_WirePlane_HitAllocator.

167 {
169 }
G4Allocator< QweakSimVDC_WirePlaneHit > QweakSimVDC_WirePlane_HitAllocator
Handling of a U-WirePlane and/or V-WirePlane Hit of the VDC.
void * QweakSimVDC_WirePlaneHit::operator new ( size_t  )
inline

Definition at line 158 of file QweakSimVDC_WirePlaneHit.hh.

References QweakSimVDC_WirePlane_HitAllocator.

159 {
160  void* aHit;
161  aHit = (void*)QweakSimVDC_WirePlane_HitAllocator.MallocSingle();
162  return aHit;
163 }
G4Allocator< QweakSimVDC_WirePlaneHit > QweakSimVDC_WirePlane_HitAllocator
const QweakSimVDC_WirePlaneHit & QweakSimVDC_WirePlaneHit::operator= ( const QweakSimVDC_WirePlaneHit right)

Definition at line 122 of file QweakSimVDC_WirePlaneHit.cc.

References currentKineticEnergy, currentTotalEnergy, localMomentum, localPos, originVertexKineticEnergy, originVertexMomentumDirection, originVertexPosition, particleName, particleType, time, vdcID, wireplaneID, worldMomentum, and worldPos.

123 {
124 // G4cout << G4endl << "###### Calling QweakSimVDC_WirePlaneHit::operator=(const QweakSimVDC_WirePlaneHit &right) " << G4endl << G4endl;
125 
126  vdcID = right.vdcID;
127  wireplaneID = right.wireplaneID;
128 
129  worldPos = right.worldPos;
130  localPos = right.localPos;
131 
134 
137 
138  time = right.time;
139  particleName = right.particleName;
140  particleType = right.particleType;
141 
145 
146 // G4cout << G4endl << "###### Leaving QweakSimVDC_WirePlaneHit::operator=(const QweakSimVDC_WirePlaneHit &right) " << G4endl << G4endl;
147 
148  return *this;
149 }
int QweakSimVDC_WirePlaneHit::operator== ( const QweakSimVDC_WirePlaneHit right) const

Definition at line 154 of file QweakSimVDC_WirePlaneHit.cc.

155 {
156 
157 // G4cout << G4endl << "###### Calling/Leaving QweakSimVDC_WirePlaneHit::operator==(const QweakSimVDC_WirePlaneHit &right) " << G4endl << G4endl;
158 
159  //return (this==&right) ? 1 : 0;
160 
161 return 0;
162 }
void QweakSimVDC_WirePlaneHit::Print ( )
virtual

Definition at line 187 of file QweakSimVDC_WirePlaneHit.cc.

Referenced by QweakSimEventAction::EndOfEventAction().

188 {
189 // G4cout << " VDC[" << vdcID << "] : WirePlane[" << wireplaneID << "] : time " << time/ns
190 // << " (nsec) --- local (x,y,z) [cm] "
191 // << localPos.x()/cm << ", "
192 // << localPos.y()/cm << ", "
193 // << localPos.z()/cm << ", "
194 // << G4endl;
195 }

+ Here is the caller graph for this function:

void QweakSimVDC_WirePlaneHit::StoreCrossSection ( G4double  cs)
inline

Definition at line 130 of file QweakSimVDC_WirePlaneHit.hh.

References crossSection.

void QweakSimVDC_WirePlaneHit::StoreCrossSectionWeight ( G4double  csw)
inline

Definition at line 133 of file QweakSimVDC_WirePlaneHit.hh.

References crossSectionWeight.

void QweakSimVDC_WirePlaneHit::StoreGlobalTime ( G4double  t)
inline

Definition at line 96 of file QweakSimVDC_WirePlaneHit.hh.

References time.

Referenced by QweakSimVDC_WirePlaneSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimVDC_WirePlaneHit::StoreKineticEnergy ( G4double  ekin)
inline

Definition at line 143 of file QweakSimVDC_WirePlaneHit.hh.

References currentKineticEnergy.

Referenced by QweakSimVDC_WirePlaneSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimVDC_WirePlaneHit::StoreLocalMomentum ( G4ThreeVector  lpxyz)
inline

Definition at line 105 of file QweakSimVDC_WirePlaneHit.hh.

References localMomentum.

Referenced by QweakSimVDC_WirePlaneSD::ProcessHits().

105 { localMomentum = lpxyz; }

+ Here is the caller graph for this function:

void QweakSimVDC_WirePlaneHit::StoreLocalPosition ( G4ThreeVector  lxyz)
inline

Definition at line 99 of file QweakSimVDC_WirePlaneHit.hh.

References localPos.

Referenced by QweakSimVDC_WirePlaneSD::ProcessHits().

99 { localPos = lxyz; }

+ Here is the caller graph for this function:

void QweakSimVDC_WirePlaneHit::StoreOriginVertexKineticEnergy ( G4double  ekin)
inline

Definition at line 117 of file QweakSimVDC_WirePlaneHit.hh.

References originVertexKineticEnergy.

Referenced by QweakSimVDC_WirePlaneSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimVDC_WirePlaneHit::StoreOriginVertexMomentumDirection ( G4ThreeVector  pxyz)
inline

Definition at line 114 of file QweakSimVDC_WirePlaneHit.hh.

References originVertexMomentumDirection.

Referenced by QweakSimVDC_WirePlaneSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimVDC_WirePlaneHit::StoreOriginVertexPosition ( G4ThreeVector  xyz)
inline

Definition at line 111 of file QweakSimVDC_WirePlaneHit.hh.

References originVertexPosition.

Referenced by QweakSimVDC_WirePlaneSD::ProcessHits().

111 { originVertexPosition = xyz; }

+ Here is the caller graph for this function:

void QweakSimVDC_WirePlaneHit::StoreOriginVertexTotalEnergy ( G4double  et)
inline

Definition at line 120 of file QweakSimVDC_WirePlaneHit.hh.

References originVertexTotalEnergy.

void QweakSimVDC_WirePlaneHit::StoreParticleName ( G4String  pn)
inline

Definition at line 137 of file QweakSimVDC_WirePlaneHit.hh.

References particleName.

Referenced by QweakSimVDC_WirePlaneSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimVDC_WirePlaneHit::StoreParticleType ( G4int  pt)
inline

Definition at line 140 of file QweakSimVDC_WirePlaneHit.hh.

References particleType.

Referenced by QweakSimVDC_WirePlaneSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimVDC_WirePlaneHit::StorePrimaryEventNumber ( G4int  en)
inline

Definition at line 124 of file QweakSimVDC_WirePlaneHit.hh.

References primaryEventNumber.

void QweakSimVDC_WirePlaneHit::StorePrimaryQ2 ( G4double  q2)
inline

Definition at line 127 of file QweakSimVDC_WirePlaneHit.hh.

References primaryQ2.

void QweakSimVDC_WirePlaneHit::StoreTotalEnergy ( G4double  etot)
inline

Definition at line 146 of file QweakSimVDC_WirePlaneHit.hh.

References currentTotalEnergy.

Referenced by QweakSimVDC_WirePlaneSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimVDC_WirePlaneHit::StoreVDCID ( G4int  vdc_ID)
inline

Definition at line 90 of file QweakSimVDC_WirePlaneHit.hh.

References vdcID.

Referenced by QweakSimVDC_WirePlaneSD::ProcessHits().

90 { vdcID = vdc_ID; }

+ Here is the caller graph for this function:

void QweakSimVDC_WirePlaneHit::StoreWirePlaneID ( G4int  wireplane_ID)
inline

Definition at line 93 of file QweakSimVDC_WirePlaneHit.hh.

References wireplaneID.

Referenced by QweakSimVDC_WirePlaneSD::ProcessHits().

93 { wireplaneID = wireplane_ID; }

+ Here is the caller graph for this function:

void QweakSimVDC_WirePlaneHit::StoreWorldMomentum ( G4ThreeVector  gpxyz)
inline

Definition at line 108 of file QweakSimVDC_WirePlaneHit.hh.

References worldMomentum.

Referenced by QweakSimVDC_WirePlaneSD::ProcessHits().

108 { worldMomentum = gpxyz; }

+ Here is the caller graph for this function:

void QweakSimVDC_WirePlaneHit::StoreWorldPosition ( G4ThreeVector  gxyz)
inline

Definition at line 102 of file QweakSimVDC_WirePlaneHit.hh.

References worldPos.

Referenced by QweakSimVDC_WirePlaneSD::ProcessHits().

102 { worldPos = gxyz; }

+ Here is the caller graph for this function:

Field Documentation

G4double QweakSimVDC_WirePlaneHit::crossSection
private
G4double QweakSimVDC_WirePlaneHit::crossSectionWeight
private
G4double QweakSimVDC_WirePlaneHit::currentKineticEnergy
private
G4double QweakSimVDC_WirePlaneHit::currentTotalEnergy
private
G4ThreeVector QweakSimVDC_WirePlaneHit::localMomentum
private
G4ThreeVector QweakSimVDC_WirePlaneHit::localPos
private
G4double QweakSimVDC_WirePlaneHit::originVertexKineticEnergy
private
G4ThreeVector QweakSimVDC_WirePlaneHit::originVertexMomentumDirection
private
G4ThreeVector QweakSimVDC_WirePlaneHit::originVertexPosition
private
G4double QweakSimVDC_WirePlaneHit::originVertexTotalEnergy
private
G4String QweakSimVDC_WirePlaneHit::particleName
private
G4int QweakSimVDC_WirePlaneHit::particleType
private
G4int QweakSimVDC_WirePlaneHit::primaryEventNumber
private
G4double QweakSimVDC_WirePlaneHit::primaryQ2
private
G4double QweakSimVDC_WirePlaneHit::time
private
G4int QweakSimVDC_WirePlaneHit::vdcID
private
G4int QweakSimVDC_WirePlaneHit::wireplaneID
private
G4ThreeVector QweakSimVDC_WirePlaneHit::worldMomentum
private
G4ThreeVector QweakSimVDC_WirePlaneHit::worldPos
private

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