QwGeant4
QweakSimGEM_WirePlaneHit Class Reference

Handling of a Readoutplane Hit of the GEM detector (I know there is no wire plane ... just for consistent class names ) More...

#include <QweakSimGEM_WirePlaneHit.hh>

Inherits G4VHit.

Public Member Functions

 QweakSimGEM_WirePlaneHit ()
 
 QweakSimGEM_WirePlaneHit (G4int GEM_id, G4int wireplane_ID)
 
virtual ~QweakSimGEM_WirePlaneHit ()
 
 QweakSimGEM_WirePlaneHit (const QweakSimGEM_WirePlaneHit &right)
 
const QweakSimGEM_WirePlaneHitoperator= (const QweakSimGEM_WirePlaneHit &right)
 
int operator== (const QweakSimGEM_WirePlaneHit &right) const
 
void * operator new (size_t)
 
void operator delete (void *aHit)
 
float x ()
 
float y ()
 
virtual void Draw ()
 
virtual void Print ()
 
void StoreGEMID (G4int GEM_ID)
 
G4int GetGEMID () 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 StoreKineticEnergy (G4double ekin)
 
G4double GetKineticEnergy () const
 
void StoreTotalEnergy (G4double etot)
 
G4double GetTotalEnergy () const
 

Private Attributes

G4int GEMID
 
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
 

Detailed Description

Handling of a Readoutplane Hit of the GEM detector (I know there is no wire plane ... just for consistent class names )

Placeholder for a long explaination

Definition at line 40 of file QweakSimGEM_WirePlaneHit.hh.

Constructor & Destructor Documentation

QweakSimGEM_WirePlaneHit::QweakSimGEM_WirePlaneHit ( )

Definition at line 47 of file QweakSimGEM_WirePlaneHit.cc.

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

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

Definition at line 74 of file QweakSimGEM_WirePlaneHit.cc.

References GEMID, time, and wireplaneID.

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

Definition at line 87 of file QweakSimGEM_WirePlaneHit.cc.

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

Definition at line 92 of file QweakSimGEM_WirePlaneHit.cc.

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

93  : G4VHit() {
94 
95 // G4cout << G4endl << "###### Calling QweakSimGEM_WirePlaneHit::(const QweakSimGEM_WirePlaneHit &right) " << G4endl << G4endl;
96 
97  GEMID = right.GEMID;
98  wireplaneID = right.wireplaneID;
99 
100  worldPos = right.worldPos;
101  localPos = right.localPos;
102 
105 
108 
109  time = right.time;
110 
114 
115  //primaryQ2 = right.primaryQ2;
116  //primaryEventNumber = right.primaryEventNumber;
117 
118 // G4cout << G4endl << "###### Leaving QweakSimGEM_WirePlaneHit::(const QweakSimGEM_WirePlaneHit &right) " << G4endl << G4endl;
119 }

Member Function Documentation

void QweakSimGEM_WirePlaneHit::Draw ( )
virtual

Definition at line 164 of file QweakSimGEM_WirePlaneHit.cc.

References worldPos.

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

Definition at line 130 of file QweakSimGEM_WirePlaneHit.hh.

References crossSection.

G4double QweakSimGEM_WirePlaneHit::GetCrossSectionWeight ( ) const
inline

Definition at line 133 of file QweakSimGEM_WirePlaneHit.hh.

References crossSectionWeight.

G4int QweakSimGEM_WirePlaneHit::GetGEMID ( ) const
inline

Definition at line 90 of file QweakSimGEM_WirePlaneHit.hh.

References GEMID.

G4double QweakSimGEM_WirePlaneHit::GetGlobalTime ( ) const
inline

Definition at line 96 of file QweakSimGEM_WirePlaneHit.hh.

References time.

96 { return time; }
G4double QweakSimGEM_WirePlaneHit::GetKineticEnergy ( ) const
inline

Definition at line 136 of file QweakSimGEM_WirePlaneHit.hh.

References currentKineticEnergy.

G4ThreeVector QweakSimGEM_WirePlaneHit::GetLocalMomentum ( ) const
inline

Definition at line 105 of file QweakSimGEM_WirePlaneHit.hh.

References localMomentum.

105 { return localMomentum; }
G4ThreeVector QweakSimGEM_WirePlaneHit::GetLocalPosition ( ) const
inline

Definition at line 99 of file QweakSimGEM_WirePlaneHit.hh.

References localPos.

99 { return localPos; }
G4double QweakSimGEM_WirePlaneHit::GetOriginVertexKineticEnergy ( ) const
inline

Definition at line 117 of file QweakSimGEM_WirePlaneHit.hh.

References originVertexKineticEnergy.

G4ThreeVector QweakSimGEM_WirePlaneHit::GetOriginVertexMomentumDirection ( ) const
inline

Definition at line 114 of file QweakSimGEM_WirePlaneHit.hh.

References originVertexMomentumDirection.

G4ThreeVector QweakSimGEM_WirePlaneHit::GetOriginVertexPosition ( ) const
inline

Definition at line 111 of file QweakSimGEM_WirePlaneHit.hh.

References originVertexPosition.

111 { return originVertexPosition; }
G4double QweakSimGEM_WirePlaneHit::GetOriginVertexTotalEnergy ( ) const
inline

Definition at line 120 of file QweakSimGEM_WirePlaneHit.hh.

References originVertexTotalEnergy.

G4int QweakSimGEM_WirePlaneHit::GetPrimaryEventNumber ( ) const
inline

Definition at line 124 of file QweakSimGEM_WirePlaneHit.hh.

References primaryEventNumber.

G4double QweakSimGEM_WirePlaneHit::GetPrimaryQ2 ( ) const
inline

Definition at line 127 of file QweakSimGEM_WirePlaneHit.hh.

References primaryQ2.

127 { return primaryQ2; }
G4double QweakSimGEM_WirePlaneHit::GetTotalEnergy ( ) const
inline

Definition at line 139 of file QweakSimGEM_WirePlaneHit.hh.

References currentTotalEnergy.

G4int QweakSimGEM_WirePlaneHit::GetWirePlaneID ( ) const
inline

Definition at line 93 of file QweakSimGEM_WirePlaneHit.hh.

References wireplaneID.

G4ThreeVector QweakSimGEM_WirePlaneHit::GetWorldMomentum ( ) const
inline

Definition at line 108 of file QweakSimGEM_WirePlaneHit.hh.

References worldMomentum.

108 { return worldMomentum; }
G4ThreeVector QweakSimGEM_WirePlaneHit::GetWorldPosition ( ) const
inline

Definition at line 102 of file QweakSimGEM_WirePlaneHit.hh.

References worldPos.

102 { return worldPos; }
void QweakSimGEM_WirePlaneHit::operator delete ( void *  aHit)
inline

Definition at line 157 of file QweakSimGEM_WirePlaneHit.hh.

References QweakSimGEM_WirePlane_HitAllocator.

158 {
160 }
G4Allocator< QweakSimGEM_WirePlaneHit > QweakSimGEM_WirePlane_HitAllocator
Handling of a Readoutplane Hit of the GEM detector (I know there is no wire plane ...
void * QweakSimGEM_WirePlaneHit::operator new ( size_t  )
inline

Definition at line 149 of file QweakSimGEM_WirePlaneHit.hh.

References QweakSimGEM_WirePlane_HitAllocator.

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

Definition at line 123 of file QweakSimGEM_WirePlaneHit.cc.

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

124 {
125 // G4cout << G4endl << "###### Calling QweakSimGEM_WirePlaneHit::operator=(const QweakSimGEM_WirePlaneHit &right) " << G4endl << G4endl;
126 
127  GEMID = right.GEMID;
128  wireplaneID = right.wireplaneID;
129 
130  worldPos = right.worldPos;
131  localPos = right.localPos;
134 
137 
138  time = right.time;
139 
143 
144 // G4cout << G4endl << "###### Leaving QweakSimGEM_WirePlaneHit::operator=(const QweakSimGEM_WirePlaneHit &right) " << G4endl << G4endl;
145 
146  return *this;
147 }
int QweakSimGEM_WirePlaneHit::operator== ( const QweakSimGEM_WirePlaneHit right) const

Definition at line 152 of file QweakSimGEM_WirePlaneHit.cc.

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

Definition at line 185 of file QweakSimGEM_WirePlaneHit.cc.

186 {
187 // G4cout << " GEM[" << GEMID << "] : WirePlane[" << wireplaneID << "] : time " << time/ns
188 // << " (nsec) --- local (x,y,z) [cm] "
189 // << localPos.x()/cm << ", "
190 // << localPos.y()/cm << ", "
191 // << localPos.z()/cm << ", "
192 // << G4endl;
193 }
void QweakSimGEM_WirePlaneHit::StoreCrossSection ( G4double  cs)
inline

Definition at line 129 of file QweakSimGEM_WirePlaneHit.hh.

References crossSection.

void QweakSimGEM_WirePlaneHit::StoreCrossSectionWeight ( G4double  csw)
inline

Definition at line 132 of file QweakSimGEM_WirePlaneHit.hh.

References crossSectionWeight.

void QweakSimGEM_WirePlaneHit::StoreGEMID ( G4int  GEM_ID)
inline

Definition at line 89 of file QweakSimGEM_WirePlaneHit.hh.

References GEMID.

Referenced by QweakSimGEM_WirePlaneSD::ProcessHits().

89 { GEMID = GEM_ID; }

+ Here is the caller graph for this function:

void QweakSimGEM_WirePlaneHit::StoreGlobalTime ( G4double  t)
inline

Definition at line 95 of file QweakSimGEM_WirePlaneHit.hh.

References time.

Referenced by QweakSimGEM_WirePlaneSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimGEM_WirePlaneHit::StoreKineticEnergy ( G4double  ekin)
inline

Definition at line 135 of file QweakSimGEM_WirePlaneHit.hh.

References currentKineticEnergy.

Referenced by QweakSimGEM_WirePlaneSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimGEM_WirePlaneHit::StoreLocalMomentum ( G4ThreeVector  lpxyz)
inline

Definition at line 104 of file QweakSimGEM_WirePlaneHit.hh.

References localMomentum.

Referenced by QweakSimGEM_WirePlaneSD::ProcessHits().

104 { localMomentum = lpxyz; }

+ Here is the caller graph for this function:

void QweakSimGEM_WirePlaneHit::StoreLocalPosition ( G4ThreeVector  lxyz)
inline

Definition at line 98 of file QweakSimGEM_WirePlaneHit.hh.

References localPos.

Referenced by QweakSimGEM_WirePlaneSD::ProcessHits().

98 { localPos = lxyz; }

+ Here is the caller graph for this function:

void QweakSimGEM_WirePlaneHit::StoreOriginVertexKineticEnergy ( G4double  ekin)
inline

Definition at line 116 of file QweakSimGEM_WirePlaneHit.hh.

References originVertexKineticEnergy.

Referenced by QweakSimGEM_WirePlaneSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimGEM_WirePlaneHit::StoreOriginVertexMomentumDirection ( G4ThreeVector  pxyz)
inline

Definition at line 113 of file QweakSimGEM_WirePlaneHit.hh.

References originVertexMomentumDirection.

Referenced by QweakSimGEM_WirePlaneSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimGEM_WirePlaneHit::StoreOriginVertexPosition ( G4ThreeVector  xyz)
inline

Definition at line 110 of file QweakSimGEM_WirePlaneHit.hh.

References originVertexPosition.

Referenced by QweakSimGEM_WirePlaneSD::ProcessHits().

110 { originVertexPosition = xyz; }

+ Here is the caller graph for this function:

void QweakSimGEM_WirePlaneHit::StoreOriginVertexTotalEnergy ( G4double  et)
inline

Definition at line 119 of file QweakSimGEM_WirePlaneHit.hh.

References originVertexTotalEnergy.

void QweakSimGEM_WirePlaneHit::StorePrimaryEventNumber ( G4int  en)
inline

Definition at line 123 of file QweakSimGEM_WirePlaneHit.hh.

References primaryEventNumber.

void QweakSimGEM_WirePlaneHit::StorePrimaryQ2 ( G4double  q2)
inline

Definition at line 126 of file QweakSimGEM_WirePlaneHit.hh.

References primaryQ2.

void QweakSimGEM_WirePlaneHit::StoreTotalEnergy ( G4double  etot)
inline

Definition at line 138 of file QweakSimGEM_WirePlaneHit.hh.

References currentTotalEnergy.

Referenced by QweakSimGEM_WirePlaneSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimGEM_WirePlaneHit::StoreWirePlaneID ( G4int  wireplane_ID)
inline

Definition at line 92 of file QweakSimGEM_WirePlaneHit.hh.

References wireplaneID.

Referenced by QweakSimGEM_WirePlaneSD::ProcessHits().

92 { wireplaneID = wireplane_ID; }

+ Here is the caller graph for this function:

void QweakSimGEM_WirePlaneHit::StoreWorldMomentum ( G4ThreeVector  gpxyz)
inline

Definition at line 107 of file QweakSimGEM_WirePlaneHit.hh.

References worldMomentum.

Referenced by QweakSimGEM_WirePlaneSD::ProcessHits().

107 { worldMomentum = gpxyz; }

+ Here is the caller graph for this function:

void QweakSimGEM_WirePlaneHit::StoreWorldPosition ( G4ThreeVector  gxyz)
inline

Definition at line 101 of file QweakSimGEM_WirePlaneHit.hh.

References worldPos.

Referenced by QweakSimGEM_WirePlaneSD::ProcessHits().

101 { worldPos = gxyz; }

+ Here is the caller graph for this function:

float QweakSimGEM_WirePlaneHit::x ( )
inline
float QweakSimGEM_WirePlaneHit::y ( )
inline

Field Documentation

G4double QweakSimGEM_WirePlaneHit::crossSection
private
G4double QweakSimGEM_WirePlaneHit::crossSectionWeight
private
G4double QweakSimGEM_WirePlaneHit::currentKineticEnergy
private
G4double QweakSimGEM_WirePlaneHit::currentTotalEnergy
private
G4int QweakSimGEM_WirePlaneHit::GEMID
private
G4ThreeVector QweakSimGEM_WirePlaneHit::localMomentum
private
G4ThreeVector QweakSimGEM_WirePlaneHit::localPos
private
G4double QweakSimGEM_WirePlaneHit::originVertexKineticEnergy
private
G4ThreeVector QweakSimGEM_WirePlaneHit::originVertexMomentumDirection
private
G4ThreeVector QweakSimGEM_WirePlaneHit::originVertexPosition
private
G4double QweakSimGEM_WirePlaneHit::originVertexTotalEnergy
private
G4int QweakSimGEM_WirePlaneHit::primaryEventNumber
private
G4double QweakSimGEM_WirePlaneHit::primaryQ2
private
G4double QweakSimGEM_WirePlaneHit::time
private
G4int QweakSimGEM_WirePlaneHit::wireplaneID
private
G4ThreeVector QweakSimGEM_WirePlaneHit::worldMomentum
private
G4ThreeVector QweakSimGEM_WirePlaneHit::worldPos
private

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