QwGeant4
QweakSimVDC_DriftCellParameterisation.cc
Go to the documentation of this file.
1 //=============================================================================
2 //
3 // ---------------------------
4 // | Doxygen File Information |
5 // ---------------------------
6 //
7 /**
8 
9  \file QweakSimVDC_DriftCellParameterisation.cc
10 
11  $Revision: 1.2 $
12  $Date: 2005/12/27 19:19:38 $
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:38 $
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 // geant4 includes
40 #include "G4ThreeVector.hh"
41 #include "G4VPhysicalVolume.hh"
42 
43 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
44 
46 {
47  myNumberOfDriftCells = NumberOfDriftCells;
48  mySpacingInX = SpacingInX;
49 }
50 
51 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
52 
54 {}
55 
56 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
57 
58 void QweakSimVDC_DriftCellParameterisation::ComputeTransformation (const G4int copyNo, G4VPhysicalVolume* physVol) const
59 {
60  // assuming ODD numbers of drift cells, because then we have
61  // a wire going through the center of the wire plane
62 
63  G4double Xposition = (-0.5*(myNumberOfDriftCells - 1))*mySpacingInX + (copyNo * mySpacingInX);
64 
65  G4ThreeVector origin(Xposition,0,0);
66  physVol->SetTranslation(origin);
67  physVol->SetRotation(0);
68 
69 }
70 
71 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
72 
73 //=======================================================
74 // -----------------------
75 // | CVS File Information |
76 // -----------------------
77 //
78 // $Revisions$
79 // $Log: QweakSimVDC_DriftCellParameterisation.cc,v $
80 // Revision 1.2 2005/12/27 19:19:38 grimm
81 // - Redesign of Doxygen header containing CVS info like revision and date
82 // - Added CVS revision log at the end of file
83 //
84 //
QweakSimVDC_DriftCellParameterisation(G4int NumberOfDriftCells, G4double SpacingInX)
void ComputeTransformation(const G4int copyNo, G4VPhysicalVolume *physVol) const