CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
BesCgemSliceParametrization.cc
Go to the documentation of this file.
2#include "G4ThreeVector.hh"
3#include "G4RotationMatrix.hh"
4
6 origin = new G4ThreeVector(0., 0., 0.);
7 rot = new G4RotationMatrix();
8
9;}
10
12 delete origin;
13 delete rot;
14}
15
16void 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}
void ComputeTransformation(const G4int copyNo, G4VPhysicalVolume *physVol) const