QwGeant4
QweakSimVDC_DriftCellHit Class Reference

Region 3 Vertical Drift Chamber Drift Cell Hit. More...

#include <QweakSimVDC_DriftCellHit.hh>

Inherits G4VHit.

Public Member Functions

 QweakSimVDC_DriftCellHit ()
 
 QweakSimVDC_DriftCellHit (G4int dc_id)
 
virtual ~QweakSimVDC_DriftCellHit ()
 
 QweakSimVDC_DriftCellHit (const QweakSimVDC_DriftCellHit &right)
 
const QweakSimVDC_DriftCellHitoperator= (const QweakSimVDC_DriftCellHit &right)
 
int operator== (const QweakSimVDC_DriftCellHit &right) const
 
void * operator new (size_t)
 
void operator delete (void *aHit)
 
float x ()
 
float y ()
 
virtual void Draw ()
 
virtual void Print ()
 
void StoreDriftCellID (G4int dc_id)
 
G4int GetDriftCellID () const
 
void StoreDriftCellPlaneID (G4int dcplane_id)
 
G4int GetDriftCellPlaneID () const
 
void StoreTime (G4double t)
 
G4double GetTime () const
 
void StoreLocalPos (G4ThreeVector xyz)
 
G4ThreeVector GetLocalPos () const
 
void StoreWorldPos (G4ThreeVector xyz)
 
G4ThreeVector GetWorldPos () const
 
void StoreCellPos (G4ThreeVector xyz)
 
G4ThreeVector GetCellPos () const
 
void StoreCellRot (G4RotationMatrix rmat)
 
G4RotationMatrix GetCellRot () const
 
void StoreLogV (G4LogicalVolume *val)
 
const G4LogicalVolume * GetLogV () const
 
void StoreOriginVertexPosition (G4ThreeVector xyz)
 
G4ThreeVector GetOriginVertexPosition () const
 
void StoreOriginVertexMomentumDirection (G4ThreeVector pxyz)
 
G4ThreeVector GetOriginVertexMomentumDirection () const
 
void StoreOriginVertexKineticEnergy (G4double ekin)
 
G4double GetOriginVertexKineticEnergy () const
 
void StoreMomentumDirection (G4ThreeVector pxyz)
 
G4ThreeVector GetMomentumDirection () const
 
void StoreKineticEnergy (G4double ekin)
 
G4double GetKineticEnergy () const
 
void StoreTotalEnergy (G4double etot)
 
G4double GetTotalEnergy () const
 
void StoreDCWidthOnFrame (G4double dcw)
 
G4double GetDCWidthOnFrame () const
 
void StoreDCFullThickness (G4double dct)
 
G4double GetDCFullThickness () const
 
void StoreDCUPlaneWireAngle (G4double dca)
 
G4double GetDCUPlaneWireAngle () const
 
void StoreDCVPlaneWireAngle (G4double dca)
 
G4double GetDCVPlaneWireAngle () const
 

Private Attributes

G4int driftCellID
 
G4int driftCellPlaneID
 
G4double time
 
G4ThreeVector localPos
 
G4ThreeVector worldPos
 
G4ThreeVector cellPos
 
G4RotationMatrix cellRot
 
const G4LogicalVolume * pLogV
 
G4ThreeVector originVertexPosition
 
G4ThreeVector originVertexMomentumDirection
 
G4double originVertexKineticEnergy
 
G4ThreeVector currentMomentumDirection
 
G4double currentKineticEnergy
 
G4double currentTotalEnergy
 
G4double dcWidthOnFrame
 
G4double dcFullThickness
 
G4double dcUPlaneWireAngle
 
G4double dcVPlaneWireAngle
 

Detailed Description

Region 3 Vertical Drift Chamber Drift Cell Hit.

Placeholder for a long explaination

Definition at line 56 of file QweakSimVDC_DriftCellHit.hh.

Constructor & Destructor Documentation

QweakSimVDC_DriftCellHit::QweakSimVDC_DriftCellHit ( )

Definition at line 45 of file QweakSimVDC_DriftCellHit.cc.

References driftCellID, driftCellPlaneID, pLogV, and time.

46 {
47 
48  driftCellID = -1;
49  driftCellPlaneID = -1;
50  pLogV = 0;
51  time = 0.;
52 }
const G4LogicalVolume * pLogV
QweakSimVDC_DriftCellHit::QweakSimVDC_DriftCellHit ( G4int  dc_id)

Definition at line 56 of file QweakSimVDC_DriftCellHit.cc.

References driftCellID, driftCellPlaneID, pLogV, and time.

57 {
58 
59  driftCellID = dc_id;
60  driftCellPlaneID = -1;
61  time = 0.;
62  pLogV = 0;
63 
64 
65 }
const G4LogicalVolume * pLogV
QweakSimVDC_DriftCellHit::~QweakSimVDC_DriftCellHit ( )
virtual

Definition at line 69 of file QweakSimVDC_DriftCellHit.cc.

70 {;}
QweakSimVDC_DriftCellHit::QweakSimVDC_DriftCellHit ( const QweakSimVDC_DriftCellHit right)

Definition at line 74 of file QweakSimVDC_DriftCellHit.cc.

References cellPos, cellRot, currentKineticEnergy, currentMomentumDirection, currentTotalEnergy, dcFullThickness, dcUPlaneWireAngle, dcVPlaneWireAngle, dcWidthOnFrame, driftCellID, driftCellPlaneID, localPos, originVertexKineticEnergy, originVertexMomentumDirection, originVertexPosition, pLogV, time, and worldPos.

75  : G4VHit() {
76 
77 
78  driftCellID = right.driftCellID;
80 
81  cellPos = right.cellPos;
82  cellRot = right.cellRot;
83  pLogV = right.pLogV;
84 
85  worldPos = right.worldPos;
86  localPos = right.localPos;
87  time = right.time;
88 
92 
96 
101 }
const G4LogicalVolume * pLogV

Member Function Documentation

void QweakSimVDC_DriftCellHit::Draw ( )
virtual

Definition at line 145 of file QweakSimVDC_DriftCellHit.cc.

References cellPos, cellRot, and pLogV.

146 {
147 
148  G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
149 
150  if(pVVisManager)
151  {
152 // // draw small yellow balls for the impact point
153 // G4Circle circle(worldPos);
154 // circle.SetScreenSize(0.1);
155 // circle.SetFillStyle(G4Circle::filled);
156 // G4Colour colourHit(0.,0.,1.); // blue
157 // G4VisAttributes attribs(colourHit);
158 // circle.SetVisAttributes(attribs);
159 // pVVisManager->Draw(circle);
160 
161 
162  G4Colour colourCell(1.,1.,1.); //white
163  G4VisAttributes attribs(colourCell);
164 
165  // draw/overlay a white drift cell for a hit
166  G4Transform3D trans(cellRot.inverse(),cellPos);
167  const G4VisAttributes* pVA = pLogV->GetVisAttributes();
168 
169  if(pVA) attribs = *pVA;
170  attribs.SetColour(colourCell);
171  attribs.SetForceSolid(true);
172  attribs.SetVisibility(true);
173 
174  pVVisManager->Draw(*pLogV,attribs,trans);
175 
176  }
177 }
const G4LogicalVolume * pLogV
G4ThreeVector QweakSimVDC_DriftCellHit::GetCellPos ( ) const
inline

Definition at line 117 of file QweakSimVDC_DriftCellHit.hh.

References cellPos.

117 { return cellPos; }
G4RotationMatrix QweakSimVDC_DriftCellHit::GetCellRot ( ) const
inline

Definition at line 119 of file QweakSimVDC_DriftCellHit.hh.

References cellRot.

119 { return cellRot; }
G4double QweakSimVDC_DriftCellHit::GetDCFullThickness ( ) const
inline

Definition at line 141 of file QweakSimVDC_DriftCellHit.hh.

References dcFullThickness.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4double QweakSimVDC_DriftCellHit::GetDCUPlaneWireAngle ( ) const
inline

Definition at line 143 of file QweakSimVDC_DriftCellHit.hh.

References dcUPlaneWireAngle.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4double QweakSimVDC_DriftCellHit::GetDCVPlaneWireAngle ( ) const
inline

Definition at line 145 of file QweakSimVDC_DriftCellHit.hh.

References dcVPlaneWireAngle.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4double QweakSimVDC_DriftCellHit::GetDCWidthOnFrame ( ) const
inline

Definition at line 139 of file QweakSimVDC_DriftCellHit.hh.

References dcWidthOnFrame.

Referenced by QweakSimEventAction::EndOfEventAction().

+ Here is the caller graph for this function:

G4int QweakSimVDC_DriftCellHit::GetDriftCellID ( ) const
inline

Definition at line 103 of file QweakSimVDC_DriftCellHit.hh.

References driftCellID.

G4int QweakSimVDC_DriftCellHit::GetDriftCellPlaneID ( ) const
inline

Definition at line 106 of file QweakSimVDC_DriftCellHit.hh.

References driftCellPlaneID.

G4double QweakSimVDC_DriftCellHit::GetKineticEnergy ( ) const
inline

Definition at line 134 of file QweakSimVDC_DriftCellHit.hh.

References currentKineticEnergy.

G4ThreeVector QweakSimVDC_DriftCellHit::GetLocalPos ( ) const
inline

Definition at line 111 of file QweakSimVDC_DriftCellHit.hh.

References localPos.

111 { return localPos; }
const G4LogicalVolume* QweakSimVDC_DriftCellHit::GetLogV ( ) const
inline

Definition at line 121 of file QweakSimVDC_DriftCellHit.hh.

References pLogV.

Referenced by QweakSimVDC_DriftCellFrontSD::ProcessHits(), and QweakSimVDC_DriftCellBackSD::ProcessHits().

121 { return pLogV; }
const G4LogicalVolume * pLogV

+ Here is the caller graph for this function:

G4ThreeVector QweakSimVDC_DriftCellHit::GetMomentumDirection ( ) const
inline

Definition at line 132 of file QweakSimVDC_DriftCellHit.hh.

References currentMomentumDirection.

132 { return currentMomentumDirection; }
G4double QweakSimVDC_DriftCellHit::GetOriginVertexKineticEnergy ( ) const
inline

Definition at line 129 of file QweakSimVDC_DriftCellHit.hh.

References originVertexKineticEnergy.

G4ThreeVector QweakSimVDC_DriftCellHit::GetOriginVertexMomentumDirection ( ) const
inline

Definition at line 127 of file QweakSimVDC_DriftCellHit.hh.

References originVertexMomentumDirection.

G4ThreeVector QweakSimVDC_DriftCellHit::GetOriginVertexPosition ( ) const
inline

Definition at line 125 of file QweakSimVDC_DriftCellHit.hh.

References originVertexPosition.

125 { return originVertexPosition; }
G4double QweakSimVDC_DriftCellHit::GetTime ( ) const
inline

Definition at line 109 of file QweakSimVDC_DriftCellHit.hh.

References time.

109 { return time; }
G4double QweakSimVDC_DriftCellHit::GetTotalEnergy ( ) const
inline

Definition at line 136 of file QweakSimVDC_DriftCellHit.hh.

References currentTotalEnergy.

G4ThreeVector QweakSimVDC_DriftCellHit::GetWorldPos ( ) const
inline

Definition at line 113 of file QweakSimVDC_DriftCellHit.hh.

References worldPos.

113 { return worldPos; }
void QweakSimVDC_DriftCellHit::operator delete ( void *  aHit)
inline

Definition at line 162 of file QweakSimVDC_DriftCellHit.hh.

References QweakSimVDC_DriftCellHitAllocator.

163 {
165 }
Region 3 Vertical Drift Chamber Drift Cell Hit.
G4Allocator< QweakSimVDC_DriftCellHit > QweakSimVDC_DriftCellHitAllocator
void * QweakSimVDC_DriftCellHit::operator new ( size_t  )
inline

Definition at line 154 of file QweakSimVDC_DriftCellHit.hh.

References QweakSimVDC_DriftCellHitAllocator.

155 {
156  void* aHit;
157  aHit = (void*)QweakSimVDC_DriftCellHitAllocator.MallocSingle();
158  return aHit;
159 }
G4Allocator< QweakSimVDC_DriftCellHit > QweakSimVDC_DriftCellHitAllocator
const QweakSimVDC_DriftCellHit & QweakSimVDC_DriftCellHit::operator= ( const QweakSimVDC_DriftCellHit right)

Definition at line 105 of file QweakSimVDC_DriftCellHit.cc.

References cellPos, cellRot, currentKineticEnergy, currentMomentumDirection, currentTotalEnergy, dcFullThickness, dcUPlaneWireAngle, dcVPlaneWireAngle, dcWidthOnFrame, driftCellID, driftCellPlaneID, localPos, originVertexKineticEnergy, originVertexMomentumDirection, originVertexPosition, pLogV, time, and worldPos.

106 {
107 
108  driftCellID = right.driftCellID;
110 
111  cellPos = right.cellPos;
112  cellRot = right.cellRot;
113  pLogV = right.pLogV;
114 
115  worldPos = right.worldPos;
116  localPos = right.localPos;
117  time = right.time;
118 
122 
126 
131 
132  return *this;
133 }
const G4LogicalVolume * pLogV
int QweakSimVDC_DriftCellHit::operator== ( const QweakSimVDC_DriftCellHit right) const

Definition at line 135 of file QweakSimVDC_DriftCellHit.cc.

136 {
137 
138  //return (this==&right) ? 1 : 0;
139 
140 return 0;
141 }
void QweakSimVDC_DriftCellHit::Print ( )
virtual

Definition at line 181 of file QweakSimVDC_DriftCellHit.cc.

Referenced by QweakSimEventAction::EndOfEventAction().

182 {
183 // G4cout << " DriftCell Plane: " << driftCellPlaneID << " , "
184 // << " DriftCell[" << driftCellID << "] : time " << time/ns
185 // << " (nsec) --- local (x,y,z) [cm] "
186 // << localPos.x()/cm << ", "
187 // << localPos.y()/cm << ", "
188 // << localPos.z()/cm << ", "
189 // << G4endl;
190 }

+ Here is the caller graph for this function:

void QweakSimVDC_DriftCellHit::StoreCellPos ( G4ThreeVector  xyz)
inline

Definition at line 116 of file QweakSimVDC_DriftCellHit.hh.

References cellPos.

Referenced by QweakSimVDC_DriftCellFrontSD::ProcessHits(), and QweakSimVDC_DriftCellBackSD::ProcessHits().

116 { cellPos = xyz; }

+ Here is the caller graph for this function:

void QweakSimVDC_DriftCellHit::StoreCellRot ( G4RotationMatrix  rmat)
inline

Definition at line 118 of file QweakSimVDC_DriftCellHit.hh.

References cellRot.

Referenced by QweakSimVDC_DriftCellFrontSD::ProcessHits(), and QweakSimVDC_DriftCellBackSD::ProcessHits().

118 { cellRot = rmat; }

+ Here is the caller graph for this function:

void QweakSimVDC_DriftCellHit::StoreDCFullThickness ( G4double  dct)
inline

Definition at line 140 of file QweakSimVDC_DriftCellHit.hh.

References dcFullThickness.

Referenced by QweakSimVDC_DriftCellFrontSD::ProcessHits(), and QweakSimVDC_DriftCellBackSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimVDC_DriftCellHit::StoreDCUPlaneWireAngle ( G4double  dca)
inline

Definition at line 142 of file QweakSimVDC_DriftCellHit.hh.

References dcUPlaneWireAngle.

Referenced by QweakSimVDC_DriftCellFrontSD::ProcessHits(), and QweakSimVDC_DriftCellBackSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimVDC_DriftCellHit::StoreDCVPlaneWireAngle ( G4double  dca)
inline

Definition at line 144 of file QweakSimVDC_DriftCellHit.hh.

References dcVPlaneWireAngle.

Referenced by QweakSimVDC_DriftCellFrontSD::ProcessHits(), and QweakSimVDC_DriftCellBackSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimVDC_DriftCellHit::StoreDCWidthOnFrame ( G4double  dcw)
inline

Definition at line 138 of file QweakSimVDC_DriftCellHit.hh.

References dcWidthOnFrame.

Referenced by QweakSimVDC_DriftCellFrontSD::ProcessHits(), and QweakSimVDC_DriftCellBackSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimVDC_DriftCellHit::StoreDriftCellID ( G4int  dc_id)
inline

Definition at line 102 of file QweakSimVDC_DriftCellHit.hh.

References driftCellID.

void QweakSimVDC_DriftCellHit::StoreDriftCellPlaneID ( G4int  dcplane_id)
inline

Definition at line 105 of file QweakSimVDC_DriftCellHit.hh.

References driftCellPlaneID.

Referenced by QweakSimVDC_DriftCellFrontSD::ProcessHits(), and QweakSimVDC_DriftCellBackSD::ProcessHits().

105 { driftCellPlaneID = dcplane_id; }

+ Here is the caller graph for this function:

void QweakSimVDC_DriftCellHit::StoreKineticEnergy ( G4double  ekin)
inline

Definition at line 133 of file QweakSimVDC_DriftCellHit.hh.

References currentKineticEnergy.

Referenced by QweakSimVDC_DriftCellFrontSD::ProcessHits(), and QweakSimVDC_DriftCellBackSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimVDC_DriftCellHit::StoreLocalPos ( G4ThreeVector  xyz)
inline

Definition at line 110 of file QweakSimVDC_DriftCellHit.hh.

References localPos.

Referenced by QweakSimVDC_DriftCellFrontSD::ProcessHits(), and QweakSimVDC_DriftCellBackSD::ProcessHits().

110 { localPos = xyz; }

+ Here is the caller graph for this function:

void QweakSimVDC_DriftCellHit::StoreLogV ( G4LogicalVolume *  val)
inline

Definition at line 120 of file QweakSimVDC_DriftCellHit.hh.

References pLogV.

Referenced by QweakSimVDC_DriftCellFrontSD::ProcessHits(), and QweakSimVDC_DriftCellBackSD::ProcessHits().

120 { pLogV = val; }
const G4LogicalVolume * pLogV

+ Here is the caller graph for this function:

void QweakSimVDC_DriftCellHit::StoreMomentumDirection ( G4ThreeVector  pxyz)
inline

Definition at line 131 of file QweakSimVDC_DriftCellHit.hh.

References currentMomentumDirection.

Referenced by QweakSimVDC_DriftCellFrontSD::ProcessHits(), and QweakSimVDC_DriftCellBackSD::ProcessHits().

131 { currentMomentumDirection = pxyz; }

+ Here is the caller graph for this function:

void QweakSimVDC_DriftCellHit::StoreOriginVertexKineticEnergy ( G4double  ekin)
inline

Definition at line 128 of file QweakSimVDC_DriftCellHit.hh.

References originVertexKineticEnergy.

Referenced by QweakSimVDC_DriftCellFrontSD::ProcessHits(), and QweakSimVDC_DriftCellBackSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimVDC_DriftCellHit::StoreOriginVertexMomentumDirection ( G4ThreeVector  pxyz)
inline

Definition at line 126 of file QweakSimVDC_DriftCellHit.hh.

References originVertexMomentumDirection.

Referenced by QweakSimVDC_DriftCellFrontSD::ProcessHits(), and QweakSimVDC_DriftCellBackSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimVDC_DriftCellHit::StoreOriginVertexPosition ( G4ThreeVector  xyz)
inline

Definition at line 124 of file QweakSimVDC_DriftCellHit.hh.

References originVertexPosition.

Referenced by QweakSimVDC_DriftCellFrontSD::ProcessHits(), and QweakSimVDC_DriftCellBackSD::ProcessHits().

124 { originVertexPosition = xyz; }

+ Here is the caller graph for this function:

void QweakSimVDC_DriftCellHit::StoreTime ( G4double  t)
inline

Definition at line 108 of file QweakSimVDC_DriftCellHit.hh.

References time.

Referenced by QweakSimVDC_DriftCellFrontSD::ProcessHits(), and QweakSimVDC_DriftCellBackSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimVDC_DriftCellHit::StoreTotalEnergy ( G4double  etot)
inline

Definition at line 135 of file QweakSimVDC_DriftCellHit.hh.

References currentTotalEnergy.

Referenced by QweakSimVDC_DriftCellFrontSD::ProcessHits(), and QweakSimVDC_DriftCellBackSD::ProcessHits().

+ Here is the caller graph for this function:

void QweakSimVDC_DriftCellHit::StoreWorldPos ( G4ThreeVector  xyz)
inline

Definition at line 112 of file QweakSimVDC_DriftCellHit.hh.

References worldPos.

Referenced by QweakSimVDC_DriftCellFrontSD::ProcessHits(), and QweakSimVDC_DriftCellBackSD::ProcessHits().

112 { worldPos = xyz; }

+ Here is the caller graph for this function:

float QweakSimVDC_DriftCellHit::x ( )
inline
float QweakSimVDC_DriftCellHit::y ( )
inline

Field Documentation

G4ThreeVector QweakSimVDC_DriftCellHit::cellPos
private
G4RotationMatrix QweakSimVDC_DriftCellHit::cellRot
private
G4double QweakSimVDC_DriftCellHit::currentKineticEnergy
private
G4ThreeVector QweakSimVDC_DriftCellHit::currentMomentumDirection
private
G4double QweakSimVDC_DriftCellHit::currentTotalEnergy
private
G4double QweakSimVDC_DriftCellHit::dcFullThickness
private
G4double QweakSimVDC_DriftCellHit::dcUPlaneWireAngle
private
G4double QweakSimVDC_DriftCellHit::dcVPlaneWireAngle
private
G4double QweakSimVDC_DriftCellHit::dcWidthOnFrame
private
G4int QweakSimVDC_DriftCellHit::driftCellID
private
G4int QweakSimVDC_DriftCellHit::driftCellPlaneID
private
G4ThreeVector QweakSimVDC_DriftCellHit::localPos
private
G4double QweakSimVDC_DriftCellHit::originVertexKineticEnergy
private
G4ThreeVector QweakSimVDC_DriftCellHit::originVertexMomentumDirection
private
G4ThreeVector QweakSimVDC_DriftCellHit::originVertexPosition
private
const G4LogicalVolume* QweakSimVDC_DriftCellHit::pLogV
private
G4double QweakSimVDC_DriftCellHit::time
private
G4ThreeVector QweakSimVDC_DriftCellHit::worldPos
private

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