BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
CalibData::MdcDataConst Class Reference

#include <MdcDataConst.h>

+ Inheritance diagram for CalibData::MdcDataConst:

Public Member Functions

void readPar (char *p1)
 
virtual ~MdcDataConst ()
 
virtual const CLID & clID () const
 
virtual StatusCode update (CalibBase1 &other, MsgStream *log)
 
double getWireEff (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 StatusCode update (CalibBase1 &obj, MsgStream *)
 
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 MdcDataConst.h.

Constructor & Destructor Documentation

◆ ~MdcDataConst()

virtual CalibData::MdcDataConst::~MdcDataConst ( )
inlinevirtual

Definition at line 12 of file MdcDataConst.h.

12{}

Member Function Documentation

◆ classID()

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

Definition at line 15 of file MdcDataConst.h.

const CLID CLID_Calib_MdcDataConst
Definition: CalibModel.h:63

Referenced by clID().

◆ clID()

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

Definition at line 13 of file MdcDataConst.h.

13{ return classID(); }
static const CLID & classID()
Definition: MdcDataConst.h:15

◆ getWireEff()

double CalibData::MdcDataConst::getWireEff ( int  i)
inline

Definition at line 19 of file MdcDataConst.h.

19{return wireEff[i];}

◆ readPar()

void CalibData::MdcDataConst::readPar ( char *  p1)

Definition at line 23 of file MdcDataConst.cxx.

23 {
24 istringstream fWireEff;
25 string aa1 = wireEffPointer;
26 fWireEff.str(aa1);
27
28 //read notes line
29 string tempString;
30 fWireEff >> tempString >> tempString >> tempString >> tempString;
31
32 //read wire efficiency
33 string tempLayer,tempCell;
34 int tempGlobalWire;
35 double tempWireEff;
36 for(int i=0; i<NMDCWIRE; i++){
37 fWireEff >> tempGlobalWire >> tempLayer >> tempCell >> tempWireEff;
38 wireEff[tempGlobalWire] = tempWireEff;
39 }
40
41 }

Referenced by TreeMdcDataConstCnv::i_createObj().

◆ update()

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

Reimplemented from CalibData::CalibBase1.

Definition at line 10 of file MdcDataConst.cxx.

11 {
12 MdcDataConst& other1 = dynamic_cast<MdcDataConst& >(other);
13 cout<<"\n"<<"here is the update in the MdcDataConst in calibration"<<std::endl;
14 CalibBase1::update(other, log);
15 for(int i=0;i<NMDCWIRE;i++){
16 wireEff[i]=other1.wireEff[i];
17 }
18
19 return StatusCode::SUCCESS;
20 }
virtual StatusCode update(CalibBase1 &obj, MsgStream *)
Definition: CalibBase1.cxx:33
Index other(Index i, Index j)
Definition: EvtCyclic3.cc:118

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