CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
BesCgemSliceParametrization Class Reference

#include <BesCgemSliceParametrization.hh>

+ Inheritance diagram for BesCgemSliceParametrization:

Public Member Functions

 BesCgemSliceParametrization ()
 
virtual ~BesCgemSliceParametrization ()
 
void ComputeTransformation (const G4int copyNo, G4VPhysicalVolume *physVol) const
 
void SetAnodeLength (double alength)
 
void SetSliceLength (double slength)
 
void SetTiltAngle (double tangle)
 

Detailed Description

Definition at line 9 of file BesCgemSliceParametrization.hh.

Constructor & Destructor Documentation

◆ BesCgemSliceParametrization()

BesCgemSliceParametrization::BesCgemSliceParametrization ( )

Definition at line 5 of file BesCgemSliceParametrization.cc.

5 {
6 origin = new G4ThreeVector(0., 0., 0.);
7 rot = new G4RotationMatrix();
8
9;}

◆ ~BesCgemSliceParametrization()

BesCgemSliceParametrization::~BesCgemSliceParametrization ( )
virtual

Definition at line 11 of file BesCgemSliceParametrization.cc.

11 {
12 delete origin;
13 delete rot;
14}

Member Function Documentation

◆ ComputeTransformation()

void BesCgemSliceParametrization::ComputeTransformation ( const G4int  copyNo,
G4VPhysicalVolume *  physVol 
) const

Definition at line 16 of file BesCgemSliceParametrization.cc.

16 {
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}

◆ SetAnodeLength()

void BesCgemSliceParametrization::SetAnodeLength ( double  alength)
inline

Definition at line 16 of file BesCgemSliceParametrization.hh.

16{ fAnodeLength = alength; }

◆ SetSliceLength()

void BesCgemSliceParametrization::SetSliceLength ( double  slength)
inline

Definition at line 17 of file BesCgemSliceParametrization.hh.

17{ fSliceLength = slength; }

◆ SetTiltAngle()

void BesCgemSliceParametrization::SetTiltAngle ( double  tangle)
inline

Definition at line 18 of file BesCgemSliceParametrization.hh.

18{ fTiltAngle = tangle; }

The documentation for this class was generated from the following files: