QwGeant4
QweakSimGEM_WirePlaneHit.cc
Go to the documentation of this file.
1 //=============================================================================
2 //
3 // ---------------------------
4 // | Doxygen File Information |
5 // ---------------------------
6 //
7 /**
8 
9  \file QweakSimGEM_WirePlaneHit.cc
10 
11  $Revision: 1.3 $
12  $Date: 2006/05/05 21:38:06 $
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: 2006/05/05 21:38:06 $
26 // CVS/RCS Revision: $Revision: 1.3 $
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 // geant4 includes
40 #include "G4Circle.hh"
41 
42 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
43 
44 G4Allocator<QweakSimGEM_WirePlaneHit> QweakSimGEM_WirePlane_HitAllocator;
45 
46 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
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 }
71 
72 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
73 
74 QweakSimGEM_WirePlaneHit::QweakSimGEM_WirePlaneHit(G4int GEM_id, G4int wireplane_id)
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 }
84 
85 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
86 
88 {;}
89 
90 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
91 
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 }
120 
121 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
122 
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 }
148 
149 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
150 
151 //int QweakSimGEM_WirePlaneHit::operator==(const QweakSimGEM_WirePlaneHit & right ) const
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 }
161 
162 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
163 
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 }
182 
183 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
184 
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 }
194 
195 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
196 
197 
198 //=======================================================
199 // -----------------------
200 // | CVS File Information |
201 // -----------------------
202 //
203 // $Revisions$
204 // $Log: QweakSimGEM_WirePlaneHit.cc,v $
205 // Revision 1.3 2006/05/05 21:38:06 grimm
206 // Records now the kinetic and total energy.
207 //
208 // Revision 1.2 2005/12/27 19:09:50 grimm
209 // - Redesign of Doxygen header containing CVS info like revision and date
210 // - Added CVS revision log at the end of file
211 //
212 //
G4Allocator< QweakSimGEM_WirePlaneHit > QweakSimGEM_WirePlane_HitAllocator
int operator==(const QweakSimGEM_WirePlaneHit &right) const
const QweakSimGEM_WirePlaneHit & operator=(const QweakSimGEM_WirePlaneHit &right)
Handling of a Readoutplane Hit of the GEM detector (I know there is no wire plane ...