BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
InjSigTimeCal.cxx
Go to the documentation of this file.
1#include "CalibData/Ets/InjSigTimeCal.h"
2#include <fstream>
3#include <iostream>
4#include <sstream>
5#include <string>
6
7using namespace std;
8namespace CalibData {
9
10 StatusCode InjSigTimeCal::update( CalibBase1& other, MsgStream* log ) {
11 InjSigTimeCal& other1 = dynamic_cast<InjSigTimeCal&>( other );
12 cout << "\n"
13 << "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 {
31 vector<int>::iterator it = m_flag.begin() + No;
32 flag = ( *it );
33 }
34 return flag;
35 }
36 ULong64_t InjSigTimeCal::getIST( unsigned int No ) {
37 ULong64_t Ist = 0;
38 if ( m_IST.size() != 0 )
39 {
40 vector<ULong64_t>::iterator it = m_IST.begin() + No;
41 Ist = ( *it );
42 }
43 return Ist;
44 }
45} // namespace CalibData
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)