CGEM BOSS 6.6.5.f
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)
 
 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

Constructor & Destructor Documentation

◆ BesCgemSliceParametrization() [1/2]

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() [1/2]

BesCgemSliceParametrization::~BesCgemSliceParametrization ( )
virtual

Definition at line 11 of file BesCgemSliceParametrization.cc.

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

◆ BesCgemSliceParametrization() [2/2]

BesCgemSliceParametrization::BesCgemSliceParametrization ( )

◆ ~BesCgemSliceParametrization() [2/2]

virtual BesCgemSliceParametrization::~BesCgemSliceParametrization ( )
virtual

Member Function Documentation

◆ ComputeTransformation() [1/2]

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}

◆ ComputeTransformation() [2/2]

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

◆ SetAnodeLength() [1/2]

void BesCgemSliceParametrization::SetAnodeLength ( double  alength)
inline

Definition at line 16 of file InstallArea/include/CgemSim/CgemSim/BesCgemSliceParametrization.hh.

16{ fAnodeLength = alength; }

◆ SetAnodeLength() [2/2]

void BesCgemSliceParametrization::SetAnodeLength ( double  alength)
inline

Definition at line 16 of file Simulation/BOOST/CgemSim/CgemSim-01-00-32/CgemSim/BesCgemSliceParametrization.hh.

16{ fAnodeLength = alength; }

◆ SetSliceLength() [1/2]

void BesCgemSliceParametrization::SetSliceLength ( double  slength)
inline

Definition at line 17 of file InstallArea/include/CgemSim/CgemSim/BesCgemSliceParametrization.hh.

17{ fSliceLength = slength; }

◆ SetSliceLength() [2/2]

void BesCgemSliceParametrization::SetSliceLength ( double  slength)
inline

Definition at line 17 of file Simulation/BOOST/CgemSim/CgemSim-01-00-32/CgemSim/BesCgemSliceParametrization.hh.

17{ fSliceLength = slength; }

◆ SetTiltAngle() [1/2]

void BesCgemSliceParametrization::SetTiltAngle ( double  tangle)
inline

Definition at line 18 of file InstallArea/include/CgemSim/CgemSim/BesCgemSliceParametrization.hh.

18{ fTiltAngle = tangle; }

◆ SetTiltAngle() [2/2]

void BesCgemSliceParametrization::SetTiltAngle ( double  tangle)
inline

Definition at line 18 of file Simulation/BOOST/CgemSim/CgemSim-01-00-32/CgemSim/BesCgemSliceParametrization.hh.

18{ fTiltAngle = tangle; }

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