QwGeant4
QweakSimVDC_DriftCellHit.cc
Go to the documentation of this file.
1 //=============================================================================
2 //
3 // ---------------------------
4 // | Doxygen File Information |
5 // ---------------------------
6 //
7 /**
8 
9  \file QweakSimVDC_DriftCellHit.cc
10 
11  $Revision: 1.2 $
12  $Date: 2005/12/27 19:19:31 $
13 
14  \author Klaus Hans Grimm
15 
16 */
17 //=============================================================================
18 
19 //=============================================================================
20 // -----------------------
21 // | CVS File Information |
22 // -----------------------
23 //
24 // Last Update: $Author: grimm $
25 // Update Date: $Date: 2005/12/27 19:19:31 $
26 // CVS/RCS Revision: $Revision: 1.2 $
27 // Status: $State: Exp $
28 //
29 // ===================================
30 // CVS Revision Log at end of file !!
31 // ===================================
32 //
33 //============================================================================
34 
35 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
36 
38 
39 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
40 
41 G4Allocator<QweakSimVDC_DriftCellHit> QweakSimVDC_DriftCellHitAllocator;
42 
43 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
44 
46 {
47 
48  driftCellID = -1;
49  driftCellPlaneID = -1;
50  pLogV = 0;
51  time = 0.;
52 }
53 
54 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
55 
57 {
58 
59  driftCellID = dc_id;
60  driftCellPlaneID = -1;
61  time = 0.;
62  pLogV = 0;
63 
64 
65 }
66 
67 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
68 
70 {;}
71 
72 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
73 
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 }
102 
103 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
104 
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 }
134 
136 {
137 
138  //return (this==&right) ? 1 : 0;
139 
140 return 0;
141 }
142 
143 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
144 
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 }
178 
179 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
180 
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 }
191 
192 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
193 
194 //=======================================================
195 // -----------------------
196 // | CVS File Information |
197 // -----------------------
198 //
199 // $Revisions$
200 // $Log: QweakSimVDC_DriftCellHit.cc,v $
201 // Revision 1.2 2005/12/27 19:19:31 grimm
202 // - Redesign of Doxygen header containing CVS info like revision and date
203 // - Added CVS revision log at the end of file
204 //
205 //
206 
const QweakSimVDC_DriftCellHit & operator=(const QweakSimVDC_DriftCellHit &right)
Region 3 Vertical Drift Chamber Drift Cell Hit.
int operator==(const QweakSimVDC_DriftCellHit &right) const
G4Allocator< QweakSimVDC_DriftCellHit > QweakSimVDC_DriftCellHitAllocator
const G4LogicalVolume * pLogV