BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
MdcAlignPar Class Reference

#include <MdcAlignPar.h>

Public Member Functions

 MdcAlignPar ()
 
 ~MdcAlignPar ()
 
void initAlignPar ()
 
bool rdAlignPar (std::string alignFile)
 
void wrtAlignPar ()
 
void setDx (int iEP, double val)
 
void setDy (int iEP, double val)
 
void setDz (int iEP, double val)
 
void setRx (int iEP, double val)
 
void setRy (int iEP, double val)
 
void setRz (int iEP, double val)
 
void setDelDx (int iEP, double val)
 
void setDelDy (int iEP, double val)
 
void setDelDz (int iEP, double val)
 
void setDelRx (int iEP, double val)
 
void setDelRy (int iEP, double val)
 
void setDelRz (int iEP, double val)
 
void setErrDx (int iEP, double val)
 
void setErrDy (int iEP, double val)
 
void setErrDz (int iEP, double val)
 
void setErrRx (int iEP, double val)
 
void setErrRy (int iEP, double val)
 
void setErrRz (int iEP, double val)
 
 MdcAlignPar ()
 
 ~MdcAlignPar ()
 
void initAlignPar ()
 
bool rdAlignPar (std::string alignFile)
 
void wrtAlignPar ()
 
void setDx (int iEP, double val)
 
void setDy (int iEP, double val)
 
void setDz (int iEP, double val)
 
void setRx (int iEP, double val)
 
void setRy (int iEP, double val)
 
void setRz (int iEP, double val)
 
void setDelDx (int iEP, double val)
 
void setDelDy (int iEP, double val)
 
void setDelDz (int iEP, double val)
 
void setDelRx (int iEP, double val)
 
void setDelRy (int iEP, double val)
 
void setDelRz (int iEP, double val)
 
void setErrDx (int iEP, double val)
 
void setErrDy (int iEP, double val)
 
void setErrDz (int iEP, double val)
 
void setErrRx (int iEP, double val)
 
void setErrRy (int iEP, double val)
 
void setErrRz (int iEP, double val)
 
 MdcAlignPar ()
 
 ~MdcAlignPar ()
 
void initAlignPar ()
 
bool rdAlignPar (std::string alignFile)
 
void wrtAlignPar ()
 
void setDx (int iEP, double val)
 
void setDy (int iEP, double val)
 
void setDz (int iEP, double val)
 
void setRx (int iEP, double val)
 
void setRy (int iEP, double val)
 
void setRz (int iEP, double val)
 
void setDelDx (int iEP, double val)
 
void setDelDy (int iEP, double val)
 
void setDelDz (int iEP, double val)
 
void setDelRx (int iEP, double val)
 
void setDelRy (int iEP, double val)
 
void setDelRz (int iEP, double val)
 
void setErrDx (int iEP, double val)
 
void setErrDy (int iEP, double val)
 
void setErrDz (int iEP, double val)
 
void setErrRx (int iEP, double val)
 
void setErrRy (int iEP, double val)
 
void setErrRz (int iEP, double val)
 

Detailed Description

Constructor & Destructor Documentation

◆ MdcAlignPar() [1/3]

MdcAlignPar::MdcAlignPar ( )

Definition at line 11 of file MdcAlignPar.cpp.

11 {
12 for(int iEP=0; iEP<NEP; iEP++){
13 m_delDx[iEP] = 0.0;
14 m_delDy[iEP] = 0.0;
15 m_delDz[iEP] = 0.0;
16 m_delRx[iEP] = 0.0;
17 m_delRy[iEP] = 0.0;
18 m_delRz[iEP] = 0.0;
19 }
20}

◆ ~MdcAlignPar() [1/3]

MdcAlignPar::~MdcAlignPar ( )

Definition at line 22 of file MdcAlignPar.cpp.

22 {
23}

◆ MdcAlignPar() [2/3]

MdcAlignPar::MdcAlignPar ( )

◆ ~MdcAlignPar() [2/3]

MdcAlignPar::~MdcAlignPar ( )

◆ MdcAlignPar() [3/3]

MdcAlignPar::MdcAlignPar ( )

◆ ~MdcAlignPar() [3/3]

MdcAlignPar::~MdcAlignPar ( )

Member Function Documentation

◆ initAlignPar() [1/3]

void MdcAlignPar::initAlignPar ( )

Definition at line 24 of file MdcAlignPar.cpp.

24 {
25 for(int iEP=0; iEP<NEP; iEP++){
26 m_dx[iEP] = 0.0;
27 m_dy[iEP] = 0.0;
28 m_dz[iEP] = 0.0;
29 m_rx[iEP] = 0.0;
30 m_ry[iEP] = 0.0;
31 m_rz[iEP] = 0.0;
32
33 m_errDx[iEP] = 0.0;
34 m_errDy[iEP] = 0.0;
35 m_errDz[iEP] = 0.0;
36 m_errRx[iEP] = 0.0;
37 m_errRy[iEP] = 0.0;
38 m_errRz[iEP] = 0.0;
39 }
40}

Referenced by main().

◆ initAlignPar() [2/3]

void MdcAlignPar::initAlignPar ( )

◆ initAlignPar() [3/3]

void MdcAlignPar::initAlignPar ( )

◆ rdAlignPar() [1/3]

bool MdcAlignPar::rdAlignPar ( std::string  alignFile)

Definition at line 42 of file MdcAlignPar.cpp.

42 {
43 ifstream fpar(alignFile.c_str());
44 cout << "open file" << endl;
45 if( ! fpar.is_open() ){
46 cout << "ERROR: can not open alignment file " << alignFile.c_str() << endl;
47 return false;
48 }
49
50 int i;
51 string strtmp;
52 for(i=0; i<7; i++) fpar >> strtmp;
53 for(int iEP=0; iEP<NEP; iEP++){
54 fpar >> strtmp >> m_dx[iEP] >> m_dy[iEP] >> m_dz[iEP]
55 >> m_rx[iEP] >> m_ry[iEP] >> m_rz[iEP];
56 }
57 fpar.close();
58 return true;
59}

Referenced by main().

◆ rdAlignPar() [2/3]

bool MdcAlignPar::rdAlignPar ( std::string  alignFile)

◆ rdAlignPar() [3/3]

bool MdcAlignPar::rdAlignPar ( std::string  alignFile)

◆ setDelDx() [1/3]

void MdcAlignPar::setDelDx ( int  iEP,
double  val 
)
inline

◆ setDelDx() [2/3]

void MdcAlignPar::setDelDx ( int  iEP,
double  val 
)
inline

Definition at line 28 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/MdcAlignAlg/MdcAlignPar.h.

28{ m_delDx[iEP] = val; }

◆ setDelDx() [3/3]

void MdcAlignPar::setDelDx ( int  iEP,
double  val 
)
inline

Definition at line 26 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/share/distAlign/src/include/MdcAlignPar.h.

26{ m_delDx[iEP] = val; }

◆ setDelDy() [1/3]

void MdcAlignPar::setDelDy ( int  iEP,
double  val 
)
inline

◆ setDelDy() [2/3]

void MdcAlignPar::setDelDy ( int  iEP,
double  val 
)
inline

Definition at line 29 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/MdcAlignAlg/MdcAlignPar.h.

29{ m_delDy[iEP] = val; }

◆ setDelDy() [3/3]

void MdcAlignPar::setDelDy ( int  iEP,
double  val 
)
inline

Definition at line 27 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/share/distAlign/src/include/MdcAlignPar.h.

27{ m_delDy[iEP] = val; }

◆ setDelDz() [1/3]

void MdcAlignPar::setDelDz ( int  iEP,
double  val 
)
inline

Definition at line 30 of file InstallArea/include/MdcAlignAlg/MdcAlignAlg/MdcAlignPar.h.

30{ m_delDz[iEP] = val; }

◆ setDelDz() [2/3]

void MdcAlignPar::setDelDz ( int  iEP,
double  val 
)
inline

Definition at line 30 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/MdcAlignAlg/MdcAlignPar.h.

30{ m_delDz[iEP] = val; }

◆ setDelDz() [3/3]

void MdcAlignPar::setDelDz ( int  iEP,
double  val 
)
inline

Definition at line 28 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/share/distAlign/src/include/MdcAlignPar.h.

28{ m_delDz[iEP] = val; }

◆ setDelRx() [1/3]

void MdcAlignPar::setDelRx ( int  iEP,
double  val 
)
inline

Definition at line 31 of file InstallArea/include/MdcAlignAlg/MdcAlignAlg/MdcAlignPar.h.

31{ m_delRx[iEP] = val; }

◆ setDelRx() [2/3]

void MdcAlignPar::setDelRx ( int  iEP,
double  val 
)
inline

Definition at line 31 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/MdcAlignAlg/MdcAlignPar.h.

31{ m_delRx[iEP] = val; }

◆ setDelRx() [3/3]

void MdcAlignPar::setDelRx ( int  iEP,
double  val 
)
inline

Definition at line 29 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/share/distAlign/src/include/MdcAlignPar.h.

29{ m_delRx[iEP] = val; }

◆ setDelRy() [1/3]

void MdcAlignPar::setDelRy ( int  iEP,
double  val 
)
inline

Definition at line 32 of file InstallArea/include/MdcAlignAlg/MdcAlignAlg/MdcAlignPar.h.

32{ m_delRy[iEP] = val; }

◆ setDelRy() [2/3]

void MdcAlignPar::setDelRy ( int  iEP,
double  val 
)
inline

Definition at line 32 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/MdcAlignAlg/MdcAlignPar.h.

32{ m_delRy[iEP] = val; }

◆ setDelRy() [3/3]

void MdcAlignPar::setDelRy ( int  iEP,
double  val 
)
inline

Definition at line 30 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/share/distAlign/src/include/MdcAlignPar.h.

30{ m_delRy[iEP] = val; }

◆ setDelRz() [1/3]

void MdcAlignPar::setDelRz ( int  iEP,
double  val 
)
inline

◆ setDelRz() [2/3]

void MdcAlignPar::setDelRz ( int  iEP,
double  val 
)
inline

Definition at line 33 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/MdcAlignAlg/MdcAlignPar.h.

33{ m_delRz[iEP] = val; }

◆ setDelRz() [3/3]

void MdcAlignPar::setDelRz ( int  iEP,
double  val 
)
inline

Definition at line 31 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/share/distAlign/src/include/MdcAlignPar.h.

31{ m_delRz[iEP] = val; }

◆ setDx() [1/3]

void MdcAlignPar::setDx ( int  iEP,
double  val 
)
inline

Definition at line 21 of file InstallArea/include/MdcAlignAlg/MdcAlignAlg/MdcAlignPar.h.

21{ m_dx[iEP] = val; }

◆ setDx() [2/3]

void MdcAlignPar::setDx ( int  iEP,
double  val 
)
inline

Definition at line 21 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/MdcAlignAlg/MdcAlignPar.h.

21{ m_dx[iEP] = val; }

◆ setDx() [3/3]

void MdcAlignPar::setDx ( int  iEP,
double  val 
)
inline

Definition at line 19 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/share/distAlign/src/include/MdcAlignPar.h.

19{ m_dx[iEP] = val; }

◆ setDy() [1/3]

void MdcAlignPar::setDy ( int  iEP,
double  val 
)
inline

Definition at line 22 of file InstallArea/include/MdcAlignAlg/MdcAlignAlg/MdcAlignPar.h.

22{ m_dy[iEP] = val; }

◆ setDy() [2/3]

void MdcAlignPar::setDy ( int  iEP,
double  val 
)
inline

Definition at line 22 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/MdcAlignAlg/MdcAlignPar.h.

22{ m_dy[iEP] = val; }

◆ setDy() [3/3]

void MdcAlignPar::setDy ( int  iEP,
double  val 
)
inline

Definition at line 20 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/share/distAlign/src/include/MdcAlignPar.h.

20{ m_dy[iEP] = val; }

◆ setDz() [1/3]

void MdcAlignPar::setDz ( int  iEP,
double  val 
)
inline

Definition at line 23 of file InstallArea/include/MdcAlignAlg/MdcAlignAlg/MdcAlignPar.h.

23{ m_dz[iEP] = val; }

◆ setDz() [2/3]

void MdcAlignPar::setDz ( int  iEP,
double  val 
)
inline

Definition at line 23 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/MdcAlignAlg/MdcAlignPar.h.

23{ m_dz[iEP] = val; }

◆ setDz() [3/3]

void MdcAlignPar::setDz ( int  iEP,
double  val 
)
inline

Definition at line 21 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/share/distAlign/src/include/MdcAlignPar.h.

21{ m_dz[iEP] = val; }

◆ setErrDx() [1/3]

void MdcAlignPar::setErrDx ( int  iEP,
double  val 
)
inline

◆ setErrDx() [2/3]

void MdcAlignPar::setErrDx ( int  iEP,
double  val 
)
inline

Definition at line 35 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/MdcAlignAlg/MdcAlignPar.h.

35{ m_errDx[iEP] = val; }

◆ setErrDx() [3/3]

void MdcAlignPar::setErrDx ( int  iEP,
double  val 
)
inline

Definition at line 33 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/share/distAlign/src/include/MdcAlignPar.h.

33{ m_errDx[iEP] = val; }

◆ setErrDy() [1/3]

void MdcAlignPar::setErrDy ( int  iEP,
double  val 
)
inline

◆ setErrDy() [2/3]

void MdcAlignPar::setErrDy ( int  iEP,
double  val 
)
inline

Definition at line 36 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/MdcAlignAlg/MdcAlignPar.h.

36{ m_errDy[iEP] = val; }

◆ setErrDy() [3/3]

void MdcAlignPar::setErrDy ( int  iEP,
double  val 
)
inline

Definition at line 34 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/share/distAlign/src/include/MdcAlignPar.h.

34{ m_errDy[iEP] = val; }

◆ setErrDz() [1/3]

void MdcAlignPar::setErrDz ( int  iEP,
double  val 
)
inline

Definition at line 37 of file InstallArea/include/MdcAlignAlg/MdcAlignAlg/MdcAlignPar.h.

37{ m_errDz[iEP] = val; }

◆ setErrDz() [2/3]

void MdcAlignPar::setErrDz ( int  iEP,
double  val 
)
inline

Definition at line 37 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/MdcAlignAlg/MdcAlignPar.h.

37{ m_errDz[iEP] = val; }

◆ setErrDz() [3/3]

void MdcAlignPar::setErrDz ( int  iEP,
double  val 
)
inline

Definition at line 35 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/share/distAlign/src/include/MdcAlignPar.h.

35{ m_errDz[iEP] = val; }

◆ setErrRx() [1/3]

void MdcAlignPar::setErrRx ( int  iEP,
double  val 
)
inline

Definition at line 38 of file InstallArea/include/MdcAlignAlg/MdcAlignAlg/MdcAlignPar.h.

38{ m_errRx[iEP] = val; }

◆ setErrRx() [2/3]

void MdcAlignPar::setErrRx ( int  iEP,
double  val 
)
inline

Definition at line 38 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/MdcAlignAlg/MdcAlignPar.h.

38{ m_errRx[iEP] = val; }

◆ setErrRx() [3/3]

void MdcAlignPar::setErrRx ( int  iEP,
double  val 
)
inline

Definition at line 36 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/share/distAlign/src/include/MdcAlignPar.h.

36{ m_errRx[iEP] = val; }

◆ setErrRy() [1/3]

void MdcAlignPar::setErrRy ( int  iEP,
double  val 
)
inline

Definition at line 39 of file InstallArea/include/MdcAlignAlg/MdcAlignAlg/MdcAlignPar.h.

39{ m_errRy[iEP] = val; }

◆ setErrRy() [2/3]

void MdcAlignPar::setErrRy ( int  iEP,
double  val 
)
inline

Definition at line 39 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/MdcAlignAlg/MdcAlignPar.h.

39{ m_errRy[iEP] = val; }

◆ setErrRy() [3/3]

void MdcAlignPar::setErrRy ( int  iEP,
double  val 
)
inline

Definition at line 37 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/share/distAlign/src/include/MdcAlignPar.h.

37{ m_errRy[iEP] = val; }

◆ setErrRz() [1/3]

void MdcAlignPar::setErrRz ( int  iEP,
double  val 
)
inline

◆ setErrRz() [2/3]

void MdcAlignPar::setErrRz ( int  iEP,
double  val 
)
inline

Definition at line 40 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/MdcAlignAlg/MdcAlignPar.h.

40{ m_errRz[iEP] = val; }

◆ setErrRz() [3/3]

void MdcAlignPar::setErrRz ( int  iEP,
double  val 
)
inline

Definition at line 38 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/share/distAlign/src/include/MdcAlignPar.h.

38{ m_errRz[iEP] = val; }

◆ setRx() [1/3]

void MdcAlignPar::setRx ( int  iEP,
double  val 
)
inline

Definition at line 24 of file InstallArea/include/MdcAlignAlg/MdcAlignAlg/MdcAlignPar.h.

24{ m_rx[iEP] = val; }

◆ setRx() [2/3]

void MdcAlignPar::setRx ( int  iEP,
double  val 
)
inline

Definition at line 24 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/MdcAlignAlg/MdcAlignPar.h.

24{ m_rx[iEP] = val; }

◆ setRx() [3/3]

void MdcAlignPar::setRx ( int  iEP,
double  val 
)
inline

Definition at line 22 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/share/distAlign/src/include/MdcAlignPar.h.

22{ m_rx[iEP] = val; }

◆ setRy() [1/3]

void MdcAlignPar::setRy ( int  iEP,
double  val 
)
inline

Definition at line 25 of file InstallArea/include/MdcAlignAlg/MdcAlignAlg/MdcAlignPar.h.

25{ m_ry[iEP] = val; }

◆ setRy() [2/3]

void MdcAlignPar::setRy ( int  iEP,
double  val 
)
inline

Definition at line 25 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/MdcAlignAlg/MdcAlignPar.h.

25{ m_ry[iEP] = val; }

◆ setRy() [3/3]

void MdcAlignPar::setRy ( int  iEP,
double  val 
)
inline

Definition at line 23 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/share/distAlign/src/include/MdcAlignPar.h.

23{ m_ry[iEP] = val; }

◆ setRz() [1/3]

void MdcAlignPar::setRz ( int  iEP,
double  val 
)
inline

Definition at line 26 of file InstallArea/include/MdcAlignAlg/MdcAlignAlg/MdcAlignPar.h.

26{ m_rz[iEP] = val; }

◆ setRz() [2/3]

void MdcAlignPar::setRz ( int  iEP,
double  val 
)
inline

Definition at line 26 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/MdcAlignAlg/MdcAlignPar.h.

26{ m_rz[iEP] = val; }

◆ setRz() [3/3]

void MdcAlignPar::setRz ( int  iEP,
double  val 
)
inline

Definition at line 24 of file Mdc/MdcAlignAlg/MdcAlignAlg-00-01-04/share/distAlign/src/include/MdcAlignPar.h.

24{ m_rz[iEP] = val; }

◆ wrtAlignPar() [1/3]

void MdcAlignPar::wrtAlignPar ( )

Definition at line 61 of file MdcAlignPar.cpp.

61 {
62 int i;
63 int iEnd;
64 string str[] = {"Inner_east", "Step0_east", "Step1_east",
65 "Step2_east", "Step3_east", "Step4_east",
66 "Step5_east", "Outer_east", "Inner_west",
67 "Step0_west", "Step1_west", "Step2_west",
68 "Step3_west", "Step4_west", "Step5_west",
69 "Outer_west"};
70
71 string name[] = {"Elements", "DeltaX(mm)", "DeltaY(mm)",
72 "DeltaZ(mm)", "RX(rad)", "RY(rad)", "RZ(rad)"};
73
74 ofstream fout("alignPar_new.txt");
75 fout << setw(14) << name[0];
76 for(i=1; i<7; i++) fout << setw(13) << name[i];
77 fout << endl;
78 for (iEnd=0; iEnd<NEP; iEnd++){
79 fout << setw(14) << str[iEnd]
80 << setw(13) << m_dx[iEnd] + m_delDx[iEnd]
81 << setw(13) << m_dy[iEnd] + m_delDy[iEnd]
82 << setw(13) << m_dz[iEnd] + m_delDz[iEnd]
83 << setw(13) << m_rx[iEnd] + m_delRx[iEnd]
84 << setw(13) << m_ry[iEnd] + m_delRy[iEnd]
85 << setw(13) << m_rz[iEnd] + m_delRz[iEnd] << endl;
86 if(7 == iEnd) fout << endl;
87 }
88 fout.close();
89
90 ofstream fdel("delAlign_new.txt");
91 fdel << setw(14) << name[0];
92 for(i=1; i<7; i++) fdel << setw(13) << name[i];
93 fdel << endl;
94 for (iEnd=0; iEnd<NEP; iEnd++){
95 fdel << setw(14) << str[iEnd] << setw(13) << m_delDx[iEnd]
96 << setw(13) << m_delDy[iEnd] << setw(13) << m_delDz[iEnd]
97 << setw(13) << m_delRx[iEnd] << setw(13) << m_delRy[iEnd]
98 << setw(13) << m_delRz[iEnd] << endl;
99 if(7 == iEnd) fdel << endl;
100 }
101
102 fdel << endl << "Fit error:" << endl;
103 for (iEnd=0; iEnd<NEP; iEnd++){
104 fdel << setw(14) << str[iEnd] << setw(13) << m_errDx[iEnd]
105 << setw(13) << m_errDy[iEnd] << setw(13) << m_errDz[iEnd]
106 << setw(13) << m_errRx[iEnd] << setw(13) << m_errRy[iEnd]
107 << setw(13) << m_errRz[iEnd] << endl;
108 if(7 == iEnd) fdel << endl;
109 }
110 fdel.close();
111}

Referenced by main().

◆ wrtAlignPar() [2/3]

void MdcAlignPar::wrtAlignPar ( )

◆ wrtAlignPar() [3/3]

void MdcAlignPar::wrtAlignPar ( )

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