BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
OffEvtFilterCal.cxx
Go to the documentation of this file.
1#include "CalibData/Ets/OffEvtFilterCal.h"
2#include <fstream>
3#include <iostream>
4#include <sstream>
5#include <string>
6
7using namespace std;
8namespace CalibData {
9
10 StatusCode OffEvtFilterCal::update( CalibBase1& other, MsgStream* log ) {
11 OffEvtFilterCal& other1 = dynamic_cast<OffEvtFilterCal&>( other );
12 cout << "\n"
13 << "here is the update in the OffEvtFilter in calibration" << std::endl;
14 CalibBase1::update( other1, log );
15 return StatusCode::SUCCESS;
16 }
17
18 void OffEvtFilterCal::setFlag( const int flag ) {
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 {
34 vector<int>::iterator it = m_flag.begin() + No;
35 flag = ( *it );
36 }
37 return flag;
38 }
39 double OffEvtFilterCal::getTBegin( unsigned int No ) {
40 double tBegin = 0.0;
41 if ( m_tBegin.size() != 0 )
42 {
43 vector<double>::iterator it = m_tBegin.begin() + No;
44 tBegin = ( *it );
45 }
46 return tBegin;
47 }
48 double OffEvtFilterCal::getTEnd( unsigned int No ) {
49 double tEnd = 0.0;
50 if ( m_tEnd.size() != 0 )
51 {
52 vector<double>::iterator it = m_tEnd.begin() + No;
53 tEnd = ( *it );
54 }
55 return tEnd;
56 }
57} // namespace CalibData
virtual StatusCode update(CalibBase1 &obj, MsgStream *)
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)