BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
InjSigTimeCal.cxx
Go to the documentation of this file.
1#include <fstream>
2#include <string>
3#include <iostream>
4#include <sstream>
6
7using namespace std;
8namespace CalibData {
9
10 StatusCode InjSigTimeCal::update(CalibBase1& other, MsgStream* log)
11 {
12 InjSigTimeCal& other1 = dynamic_cast<InjSigTimeCal& >(other);
13 cout<<"\n"<<"here is the update in the InjSigTime in calibration"<<std::endl;
14 CalibBase1::update(other, log);
15
16 return StatusCode::SUCCESS;
17 }
18
19 void InjSigTimeCal::setFlag(const int flag) {
20 m_flag.push_back( flag );
21 return;
22 }
23 void InjSigTimeCal::setIST(const ULong64_t Ist) {
24 m_IST.push_back( Ist );
25 return;
26 }
27 int InjSigTimeCal::getFlag(unsigned int No){
28 int flag = 0;
29 if( m_flag.size() != 0 ) {
30 vector<int>::iterator it = m_flag.begin() + No;
31 flag = (*it);
32 }
33 return flag;
34 }
35 ULong64_t InjSigTimeCal::getIST(unsigned int No){
36 ULong64_t Ist = 0;
37 if( m_IST.size() != 0 ) {
38 vector<ULong64_t>::iterator it = m_IST.begin() + No;
39 Ist = (*it);
40 }
41 return Ist;
42 }
43}
virtual StatusCode update(CalibBase1 &obj, MsgStream *)
ULong64_t getIST(unsigned int No)
void setIST(const ULong64_t Ist)
int getFlag(unsigned int No)
void setFlag(const int flag)
virtual StatusCode update(CalibBase1 &other, MsgStream *log)