CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
CalibData::MdcAlignData Class Reference

#include <MdcAlignData.h>

+ Inheritance diagram for CalibData::MdcAlignData:

Public Member Functions

void readPar (char *p1, char *p2, char *p3)
 
virtual ~MdcAlignData ()
 
virtual const CLID & clID () const
 
virtual StatusCode update (CalibBase1 &other, MsgStream *log)
 
double getdxEP (int i)
 
double getdyEP (int i)
 
double getdzEP (int i)
 
double getrxEP (int i)
 
double getryEP (int i)
 
double getrzEP (int i)
 
double getdxWireEast (int i)
 
double getdyWireEast (int i)
 
double getdzWireEast (int i)
 
double getdxWireWest (int i)
 
double getdyWireWest (int i)
 
double getdzWireWest (int i)
 
double gettension (int i)
 
- Public Member Functions inherited from CalibData::CalibBase1
 CalibBase1 ()
 
 CalibBase1 (int serNo, int runfrm, int runto)
 
 CalibBase1 (int runfrm, int runto)
 
 CalibBase1 (const CalibBase1 &obj)
 
virtual int getSerNo () const
 Following is intended for deep copy.
 
virtual int getrunfrm () const
 
virtual int getrunto () const
 
void setSerNo (int ser)
 
void setrunfrm (int runfrm)
 
void setrunto (int runto)
 

Static Public Member Functions

static const CLID & classID ()
 

Additional Inherited Members

- Protected Attributes inherited from CalibData::CalibBase1
int m_serNo
 
int m_runfrm
 
int m_runto
 

Detailed Description

Definition at line 7 of file MdcAlignData.h.

Constructor & Destructor Documentation

◆ ~MdcAlignData()

virtual CalibData::MdcAlignData::~MdcAlignData ( )
inlinevirtual

Definition at line 12 of file MdcAlignData.h.

12{}

Member Function Documentation

◆ classID()

static const CLID & CalibData::MdcAlignData::classID ( )
inlinestatic

Definition at line 15 of file MdcAlignData.h.

15{ return CLID_Calib_MdcAlign; }
const CLID CLID_Calib_MdcAlign
Definition CalibModel.h:55

Referenced by clID().

◆ clID()

virtual const CLID & CalibData::MdcAlignData::clID ( ) const
inlinevirtual

Definition at line 13 of file MdcAlignData.h.

13{ return classID(); }
static const CLID & classID()

◆ getdxEP()

double CalibData::MdcAlignData::getdxEP ( int i)
inline

Definition at line 21 of file MdcAlignData.h.

21{return dxEP[i];}

◆ getdxWireEast()

double CalibData::MdcAlignData::getdxWireEast ( int i)
inline

Definition at line 27 of file MdcAlignData.h.

27{return dxWireEast[i];}

◆ getdxWireWest()

double CalibData::MdcAlignData::getdxWireWest ( int i)
inline

Definition at line 30 of file MdcAlignData.h.

30{return dxWireWest[i];}

◆ getdyEP()

double CalibData::MdcAlignData::getdyEP ( int i)
inline

Definition at line 22 of file MdcAlignData.h.

22{return dyEP[i];}

◆ getdyWireEast()

double CalibData::MdcAlignData::getdyWireEast ( int i)
inline

Definition at line 28 of file MdcAlignData.h.

28{return dyWireEast[i];}

◆ getdyWireWest()

double CalibData::MdcAlignData::getdyWireWest ( int i)
inline

Definition at line 31 of file MdcAlignData.h.

31{return dyWireWest[i];}

◆ getdzEP()

double CalibData::MdcAlignData::getdzEP ( int i)
inline

Definition at line 23 of file MdcAlignData.h.

23{return dzEP[i];}

◆ getdzWireEast()

double CalibData::MdcAlignData::getdzWireEast ( int i)
inline

Definition at line 29 of file MdcAlignData.h.

29{return dzWireEast[i];}

◆ getdzWireWest()

double CalibData::MdcAlignData::getdzWireWest ( int i)
inline

Definition at line 32 of file MdcAlignData.h.

32{return dzWireWest[i];}

◆ getrxEP()

double CalibData::MdcAlignData::getrxEP ( int i)
inline

Definition at line 24 of file MdcAlignData.h.

24{return rxEP[i];}

◆ getryEP()

double CalibData::MdcAlignData::getryEP ( int i)
inline

Definition at line 25 of file MdcAlignData.h.

25{return ryEP[i];}

◆ getrzEP()

double CalibData::MdcAlignData::getrzEP ( int i)
inline

Definition at line 26 of file MdcAlignData.h.

26{return rzEP[i];}

◆ gettension()

double CalibData::MdcAlignData::gettension ( int i)
inline

Definition at line 33 of file MdcAlignData.h.

33{return tension[i];}

◆ readPar()

void CalibData::MdcAlignData::readPar ( char * p1,
char * p2,
char * p3 )

Definition at line 37 of file MdcAlignData.cxx.

37 {
38 int i;
39 string strtmp;
40
41 istringstream falign;
42 string aa1 = p1;
43 falign.str(aa1);
44 for(i=0; i<7; i++) falign >> strtmp;
45 for(i=0; i<16; i++){
46 falign >> strtmp >> dxEP[i] >> dyEP[i] >> dzEP[i] >> rxEP[i] >> ryEP[i] >> rzEP[i];
47 }
48
49 istringstream fwpos;
50 string aa2 = p2;
51 fwpos.str(aa2);
52 for(i=0; i<7; i++) fwpos >> strtmp;
53 for(i=0; i<6796; i++){
54 fwpos >> strtmp >> dxWireEast[i] >> dyWireEast[i] >> dzWireEast[i]
55 >> dxWireWest[i] >> dyWireWest[i] >> dzWireWest[i];
56 }
57
58 istringstream ften;
59 string aa3 = p3;
60 ften.str(p3);
61 for(i=0; i<6796; i++) ften >> strtmp >> tension[i];
62}

Referenced by TreeMdcAlignDataCnv::i_createObj().

◆ update()

StatusCode CalibData::MdcAlignData::update ( CalibBase1 & other,
MsgStream * log )
virtual

Reimplemented from CalibData::CalibBase1.

Definition at line 10 of file MdcAlignData.cxx.

11 {
12 MdcAlignData& other1 = dynamic_cast<MdcAlignData& >(other);
13 cout<<"\n"<<"here is the update in the MdcCal Alignment"<<std::endl;
14 CalibBase1::update(other, log);
15 for(int i=0;i<16;i++){
16 dxEP[i]=other1.dxEP[i];
17 dyEP[i]=other1.dyEP[i];
18 dzEP[i]=other1.dzEP[i];
19 rxEP[i]=other1.rxEP[i];
20 ryEP[i]=other1.ryEP[i];
21 rzEP[i]=other1.rzEP[i];
22 }
23 for(int i=0;i<6796;i++){
24 dxWireEast[i]=other1.dxWireEast[i];
25 dyWireEast[i]=other1.dyWireEast[i];
26 dzWireEast[i]=other1.dzWireEast[i];
27 dxWireWest[i]=other1.dxWireWest[i];
28 dyWireWest[i]=other1.dyWireWest[i];
29 dzWireWest[i]=other1.dzWireWest[i];
30 tension[i]=other1.tension[i];
31 }
32
33 return StatusCode::SUCCESS;
34 }
virtual StatusCode update(CalibBase1 &obj, MsgStream *)
Index other(Index i, Index j)

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