QwGeant4
QweakSimHDC_WirePlaneHit Class Reference

Handles hits of the HDC wire planes. More...

#include <QweakSimHDC_WirePlaneHit.hh>

Inherits G4VHit.

Public Member Functions

 QweakSimHDC_WirePlaneHit ()
 
 QweakSimHDC_WirePlaneHit (G4int HDC_id, G4int wireplane_ID)
 
virtual ~QweakSimHDC_WirePlaneHit ()
 
 QweakSimHDC_WirePlaneHit (const QweakSimHDC_WirePlaneHit &right)
 
const QweakSimHDC_WirePlaneHitoperator= (const QweakSimHDC_WirePlaneHit &right)
 
int operator== (const QweakSimHDC_WirePlaneHit &right) const
 
void * operator new (size_t)
 
void operator delete (void *aHit)
 
float x ()
 
float y ()
 
virtual void Draw ()
 
virtual void Print ()
 
void StoreHDCID (G4int HDC_ID)
 
G4int GetHDCID () 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 HDCID
 
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

Handles hits of the HDC wire planes.

Placeholder for a long explaination

Definition at line 41 of file QweakSimHDC_WirePlaneHit.hh.

Constructor & Destructor Documentation

QweakSimHDC_WirePlaneHit::QweakSimHDC_WirePlaneHit ( )

Definition at line 47 of file QweakSimHDC_WirePlaneHit.cc.

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

48 {
49 // G4cout << G4endl << "###### Calling QweakSimHDC_WirePlaneHit::QweakSimHDC_WirePlaneHit() " << G4endl << G4endl;
50 
51  HDCID = -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 QweakSimHDC_WirePlaneHit::QweakSimHDC_WirePlaneHit() " << G4endl << G4endl;
70 }
QweakSimHDC_WirePlaneHit::QweakSimHDC_WirePlaneHit ( G4int  HDC_id,
G4int  wireplane_ID 
)

Definition at line 74 of file QweakSimHDC_WirePlaneHit.cc.

References HDCID, time, and wireplaneID.

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

Definition at line 87 of file QweakSimHDC_WirePlaneHit.cc.

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

Definition at line 92 of file QweakSimHDC_WirePlaneHit.cc.

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

93  : G4VHit() {
94 
95 // G4cout << G4endl << "###### Calling QweakSimHDC_WirePlaneHit::(const QweakSimHDC_WirePlaneHit &right) " << G4endl << G4endl;
96 
97  HDCID = right.HDCID;
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  //primaryQ2 = right.primaryQ2;
118  //primaryEventNumber = right.primaryEventNumber;
119 
120 // G4cout << G4endl << "###### Leaving QweakSimHDC_WirePlaneHit::(const QweakSimHDC_WirePlaneHit &right) " << G4endl << G4endl;
121 }

Member Function Documentation

void QweakSimHDC_WirePlaneHit::Draw ( )
virtual

Definition at line 166 of file QweakSimHDC_WirePlaneHit.cc.

References worldPos.

167 {
168 // G4cout << G4endl << "###### Calling QweakSimHDC_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 QweakSimHDC_WirePlaneHit::Draw() " << G4endl << G4endl;
183 }
G4double QweakSimHDC_WirePlaneHit::GetCrossSection ( ) const
inline

Definition at line 132 of file QweakSimHDC_WirePlaneHit.hh.

References crossSection.

G4double QweakSimHDC_WirePlaneHit::GetCrossSectionWeight ( ) const
inline

Definition at line 135 of file QweakSimHDC_WirePlaneHit.hh.

References crossSectionWeight.

G4double QweakSimHDC_WirePlaneHit::GetGlobalTime ( ) const
inline

Definition at line 99 of file QweakSimHDC_WirePlaneHit.hh.

References time.

Referenced by QweakSimEventAction::EndOfEventAction().

99 { return time; }

+ Here is the caller graph for this function:

G4int QweakSimHDC_WirePlaneHit::GetHDCID ( ) const
inline

Definition at line 93 of file QweakSimHDC_WirePlaneHit.hh.

References HDCID.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4double QweakSimHDC_WirePlaneHit::GetKineticEnergy ( ) const
inline

Definition at line 144 of file QweakSimHDC_WirePlaneHit.hh.

References currentKineticEnergy.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4ThreeVector QweakSimHDC_WirePlaneHit::GetLocalMomentum ( ) const
inline

Definition at line 108 of file QweakSimHDC_WirePlaneHit.hh.

References localMomentum.

Referenced by QweakSimEventAction::EndOfEventAction().

108 { return localMomentum; }

+ Here is the caller graph for this function:

G4ThreeVector QweakSimHDC_WirePlaneHit::GetLocalPosition ( ) const
inline

Definition at line 102 of file QweakSimHDC_WirePlaneHit.hh.

References localPos.

Referenced by QweakSimEventAction::EndOfEventAction().

102 { return localPos; }

+ Here is the caller graph for this function:

G4double QweakSimHDC_WirePlaneHit::GetOriginVertexKineticEnergy ( ) const
inline

Definition at line 120 of file QweakSimHDC_WirePlaneHit.hh.

References originVertexKineticEnergy.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4ThreeVector QweakSimHDC_WirePlaneHit::GetOriginVertexMomentumDirection ( ) const
inline

Definition at line 117 of file QweakSimHDC_WirePlaneHit.hh.

References originVertexMomentumDirection.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4ThreeVector QweakSimHDC_WirePlaneHit::GetOriginVertexPosition ( ) const
inline

Definition at line 114 of file QweakSimHDC_WirePlaneHit.hh.

References originVertexPosition.

Referenced by QweakSimEventAction::EndOfEventAction().

114 { return originVertexPosition; }

+ Here is the caller graph for this function:

G4double QweakSimHDC_WirePlaneHit::GetOriginVertexTotalEnergy ( ) const
inline

Definition at line 123 of file QweakSimHDC_WirePlaneHit.hh.

References originVertexTotalEnergy.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4String QweakSimHDC_WirePlaneHit::GetParticleName ( ) const
inline

Definition at line 138 of file QweakSimHDC_WirePlaneHit.hh.

References particleName.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4int QweakSimHDC_WirePlaneHit::GetParticleType ( ) const
inline

Definition at line 141 of file QweakSimHDC_WirePlaneHit.hh.

References particleType.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4int QweakSimHDC_WirePlaneHit::GetPrimaryEventNumber ( ) const
inline

Definition at line 126 of file QweakSimHDC_WirePlaneHit.hh.

References primaryEventNumber.

G4double QweakSimHDC_WirePlaneHit::GetPrimaryQ2 ( ) const
inline

Definition at line 129 of file QweakSimHDC_WirePlaneHit.hh.

References primaryQ2.

129 { return primaryQ2; }
G4double QweakSimHDC_WirePlaneHit::GetTotalEnergy ( ) const
inline

Definition at line 147 of file QweakSimHDC_WirePlaneHit.hh.

References currentTotalEnergy.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4int QweakSimHDC_WirePlaneHit::GetWirePlaneID ( ) const
inline

Definition at line 96 of file QweakSimHDC_WirePlaneHit.hh.

References wireplaneID.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4ThreeVector QweakSimHDC_WirePlaneHit::GetWorldMomentum ( ) const
inline

Definition at line 111 of file QweakSimHDC_WirePlaneHit.hh.

References worldMomentum.

Referenced by QweakSimEventAction::EndOfEventAction().

111 { return worldMomentum; }

+ Here is the caller graph for this function:

G4ThreeVector QweakSimHDC_WirePlaneHit::GetWorldPosition ( ) const
inline

Definition at line 105 of file QweakSimHDC_WirePlaneHit.hh.

References worldPos.

Referenced by QweakSimEventAction::EndOfEventAction().

105 { return worldPos; }

+ Here is the caller graph for this function:

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

Definition at line 165 of file QweakSimHDC_WirePlaneHit.hh.

References QweakSimHDC_WirePlane_HitAllocator.

166 {
168 }
G4Allocator< QweakSimHDC_WirePlaneHit > QweakSimHDC_WirePlane_HitAllocator
Handles hits of the HDC wire planes.
void * QweakSimHDC_WirePlaneHit::operator new ( size_t  )
inline

Definition at line 157 of file QweakSimHDC_WirePlaneHit.hh.

References QweakSimHDC_WirePlane_HitAllocator.

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

Definition at line 125 of file QweakSimHDC_WirePlaneHit.cc.

References currentKineticEnergy, currentTotalEnergy, HDCID, localMomentum, localPos, originVertexKineticEnergy, originVertexMomentumDirection, originVertexPosition, time, wireplaneID, worldMomentum, and worldPos.

126 {
127 // G4cout << G4endl << "###### Calling QweakSimHDC_WirePlaneHit::operator=(const QweakSimHDC_WirePlaneHit &right) " << G4endl << G4endl;
128 
129  HDCID = right.HDCID;
130  wireplaneID = right.wireplaneID;
131 
132  worldPos = right.worldPos;
133  localPos = right.localPos;
136 
139 
140  time = right.time;
141 
145 
146 // G4cout << G4endl << "###### Leaving QweakSimHDC_WirePlaneHit::operator=(const QweakSimHDC_WirePlaneHit &right) " << G4endl << G4endl;
147 
148  return *this;
149 }
int QweakSimHDC_WirePlaneHit::operator== ( const QweakSimHDC_WirePlaneHit right) const

Definition at line 154 of file QweakSimHDC_WirePlaneHit.cc.

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

Definition at line 187 of file QweakSimHDC_WirePlaneHit.cc.

188 {
189 // G4cout << " HDC[" << HDCID << "] : 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 }
void QweakSimHDC_WirePlaneHit::StoreCrossSection ( G4double  cs)
inline

Definition at line 131 of file QweakSimHDC_WirePlaneHit.hh.

References crossSection.

void QweakSimHDC_WirePlaneHit::StoreCrossSectionWeight ( G4double  csw)
inline

Definition at line 134 of file QweakSimHDC_WirePlaneHit.hh.

References crossSectionWeight.

void QweakSimHDC_WirePlaneHit::StoreGlobalTime ( G4double  t)
inline

Definition at line 98 of file QweakSimHDC_WirePlaneHit.hh.

References time.

Referenced by QweakSimHDC_WirePlaneSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimHDC_WirePlaneHit::StoreHDCID ( G4int  HDC_ID)
inline

Definition at line 92 of file QweakSimHDC_WirePlaneHit.hh.

References HDCID.

Referenced by QweakSimHDC_WirePlaneSD::ProcessHits().

92 { HDCID = HDC_ID; }

+ Here is the caller graph for this function:

void QweakSimHDC_WirePlaneHit::StoreKineticEnergy ( G4double  ekin)
inline

Definition at line 143 of file QweakSimHDC_WirePlaneHit.hh.

References currentKineticEnergy.

Referenced by QweakSimHDC_WirePlaneSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimHDC_WirePlaneHit::StoreLocalMomentum ( G4ThreeVector  lpxyz)
inline

Definition at line 107 of file QweakSimHDC_WirePlaneHit.hh.

References localMomentum.

Referenced by QweakSimHDC_WirePlaneSD::ProcessHits().

107 { localMomentum = lpxyz; }

+ Here is the caller graph for this function:

void QweakSimHDC_WirePlaneHit::StoreLocalPosition ( G4ThreeVector  lxyz)
inline

Definition at line 101 of file QweakSimHDC_WirePlaneHit.hh.

References localPos.

Referenced by QweakSimHDC_WirePlaneSD::ProcessHits().

101 { localPos = lxyz; }

+ Here is the caller graph for this function:

void QweakSimHDC_WirePlaneHit::StoreOriginVertexKineticEnergy ( G4double  ekin)
inline

Definition at line 119 of file QweakSimHDC_WirePlaneHit.hh.

References originVertexKineticEnergy.

Referenced by QweakSimHDC_WirePlaneSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimHDC_WirePlaneHit::StoreOriginVertexMomentumDirection ( G4ThreeVector  pxyz)
inline

Definition at line 116 of file QweakSimHDC_WirePlaneHit.hh.

References originVertexMomentumDirection.

Referenced by QweakSimHDC_WirePlaneSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimHDC_WirePlaneHit::StoreOriginVertexPosition ( G4ThreeVector  xyz)
inline

Definition at line 113 of file QweakSimHDC_WirePlaneHit.hh.

References originVertexPosition.

Referenced by QweakSimHDC_WirePlaneSD::ProcessHits().

113 { originVertexPosition = xyz; }

+ Here is the caller graph for this function:

void QweakSimHDC_WirePlaneHit::StoreOriginVertexTotalEnergy ( G4double  et)
inline

Definition at line 122 of file QweakSimHDC_WirePlaneHit.hh.

References originVertexTotalEnergy.

void QweakSimHDC_WirePlaneHit::StoreParticleName ( G4String  pn)
inline

Definition at line 137 of file QweakSimHDC_WirePlaneHit.hh.

References particleName.

Referenced by QweakSimHDC_WirePlaneSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimHDC_WirePlaneHit::StoreParticleType ( G4int  pt)
inline

Definition at line 140 of file QweakSimHDC_WirePlaneHit.hh.

References particleType.

Referenced by QweakSimHDC_WirePlaneSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimHDC_WirePlaneHit::StorePrimaryEventNumber ( G4int  en)
inline

Definition at line 125 of file QweakSimHDC_WirePlaneHit.hh.

References primaryEventNumber.

void QweakSimHDC_WirePlaneHit::StorePrimaryQ2 ( G4double  q2)
inline

Definition at line 128 of file QweakSimHDC_WirePlaneHit.hh.

References primaryQ2.

void QweakSimHDC_WirePlaneHit::StoreTotalEnergy ( G4double  etot)
inline

Definition at line 146 of file QweakSimHDC_WirePlaneHit.hh.

References currentTotalEnergy.

Referenced by QweakSimHDC_WirePlaneSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimHDC_WirePlaneHit::StoreWirePlaneID ( G4int  wireplane_ID)
inline

Definition at line 95 of file QweakSimHDC_WirePlaneHit.hh.

References wireplaneID.

Referenced by QweakSimHDC_WirePlaneSD::ProcessHits().

95 { wireplaneID = wireplane_ID; }

+ Here is the caller graph for this function:

void QweakSimHDC_WirePlaneHit::StoreWorldMomentum ( G4ThreeVector  gpxyz)
inline

Definition at line 110 of file QweakSimHDC_WirePlaneHit.hh.

References worldMomentum.

Referenced by QweakSimHDC_WirePlaneSD::ProcessHits().

110 { worldMomentum = gpxyz; }

+ Here is the caller graph for this function:

void QweakSimHDC_WirePlaneHit::StoreWorldPosition ( G4ThreeVector  gxyz)
inline

Definition at line 104 of file QweakSimHDC_WirePlaneHit.hh.

References worldPos.

Referenced by QweakSimHDC_WirePlaneSD::ProcessHits().

104 { worldPos = gxyz; }

+ Here is the caller graph for this function:

float QweakSimHDC_WirePlaneHit::x ( )
inline
float QweakSimHDC_WirePlaneHit::y ( )
inline

Field Documentation

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

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