BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
OffEvtFilterCal.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 OffEvtFilterCal::update(CalibBase1& other, MsgStream* log)
11 {
12 OffEvtFilterCal& other1 = dynamic_cast<OffEvtFilterCal& >(other);
13 cout<<"\n"<<"here is the update in the OffEvtFilter in calibration"<<std::endl;
14 CalibBase1::update(other1, log);
15 return StatusCode::SUCCESS;
16 }
17
19 m_flag.push_back( flag );
20 return;
21 }
22 void OffEvtFilterCal::setTBegin(const double tBegin){
23 m_tBegin.push_back( tBegin);
24 return;
25 }
26 void OffEvtFilterCal::setTEnd(const double tEnd){
27 m_tEnd.push_back(tEnd);
28 return;
29 }
30 int OffEvtFilterCal::getFlag(unsigned int No){
31 int flag = 0;
32 if( m_flag.size() != 0 ) {
33 vector<int>::iterator it = m_flag.begin() + No;
34 flag = (*it);
35 }
36 return flag;
37 }
38 double OffEvtFilterCal::getTBegin(unsigned int No){
39 double tBegin = 0.0;
40 if( m_tBegin.size() != 0 ) {
41 vector<double>::iterator it = m_tBegin.begin() + No;
42 tBegin = (*it);
43 }
44 return tBegin;
45 }
46 double OffEvtFilterCal::getTEnd(unsigned int No){
47 double tEnd = 0.0;
48 if( m_tEnd.size() != 0 ) {
49 vector<double>::iterator it = m_tEnd.begin() + No;
50 tEnd = (*it);
51 }
52 return tEnd;
53 }
54}
virtual StatusCode update(CalibBase1 &obj, MsgStream *)
Definition: CalibBase1.cxx:33
void setTEnd(const double tEnd)
double getTEnd(unsigned int No)
void setTBegin(const double tBegin)
virtual StatusCode update(CalibBase1 &other, MsgStream *log)
void setFlag(const int flag)
int getFlag(unsigned int No)
double getTBegin(unsigned int No)