CGEM BOSS
6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
CgemSim-01-00-40/src/BesCgemSliceParametrization.cc
Go to the documentation of this file.
1
#include "BesCgemSliceParametrization.hh"
2
#include "G4ThreeVector.hh"
3
#include "G4RotationMatrix.hh"
4
5
BesCgemSliceParametrization::BesCgemSliceParametrization
() {
6
origin =
new
G4ThreeVector(0., 0., 0.);
7
rot =
new
G4RotationMatrix();
8
9
;}
10
11
BesCgemSliceParametrization::~BesCgemSliceParametrization
() {
12
delete
origin;
13
delete
rot;
14
}
15
16
void
BesCgemSliceParametrization::ComputeTransformation
(
const
G4int copyNo, G4VPhysicalVolume* physVol)
const
{
17
G4double Zposition = -fAnodeLength * 0.5 + (2 * copyNo + 1) * 0.5 * fSliceLength;
18
origin->setZ(Zposition);
19
physVol->SetTranslation(*origin);
20
rot->rotateZ(-fTiltAngle);
21
physVol->SetRotation(rot);
22
23
// if(copyNo%100 == 0) std::cout << copyNo << " zpos " << Zposition << " rotation " << rot->getPhi() << std::endl;
24
25
}
BesCgemSliceParametrization::ComputeTransformation
void ComputeTransformation(const G4int copyNo, G4VPhysicalVolume *physVol) const
Definition
CgemSim-01-00-40/src/BesCgemSliceParametrization.cc:16
BesCgemSliceParametrization::~BesCgemSliceParametrization
virtual ~BesCgemSliceParametrization()
Definition
CgemSim-01-00-40/src/BesCgemSliceParametrization.cc:11
BesCgemSliceParametrization::BesCgemSliceParametrization
BesCgemSliceParametrization()
Definition
CgemSim-01-00-40/src/BesCgemSliceParametrization.cc:5
6.6.5.i
Simulation
BOOST
CgemSim
CgemSim-01-00-40
src
BesCgemSliceParametrization.cc
Generated by
1.12.0