BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
CorrectedETSCal.cxx
Go to the documentation of this file.
1#include "CalibData/Ets/CorrectedETSCal.h"
2#include <fstream>
3#include <iostream>
4#include <sstream>
5#include <string>
6
7using namespace std;
8namespace CalibData {
9
10 StatusCode CorrectedETSCal::update( CalibBase1& other, MsgStream* log ) {
11 CorrectedETSCal& other1 = dynamic_cast<CorrectedETSCal&>( other );
12 cout << "\n"
13 << "here is the update in the CorrectedETS in calibration" << std::endl;
14 CalibBase1::update( other, log );
15
16 return StatusCode::SUCCESS;
17 }
18
19 void CorrectedETSCal::setEts1( unsigned long ets1 ) {
20 m_ets1.push_back( ets1 );
21 return;
22 }
23 void CorrectedETSCal::setEts2_pre( unsigned long ets2_pre ) {
24 m_ets2_pre.push_back( ets2_pre );
25 return;
26 }
27 void CorrectedETSCal::setFlag_pre( unsigned long flag_pre ) {
28 m_flag_pre.push_back( flag_pre );
29 }
30 void CorrectedETSCal::setTrigChannel_9( int trigChannel_9 ) {
31 m_trigChannel_9.push_back( trigChannel_9 );
32 return;
33 }
34 void CorrectedETSCal::setEvt( int evt ) {
35 m_evt.push_back( evt );
36 return;
37 }
38 unsigned long CorrectedETSCal::getEts1( unsigned int No ) {
39 unsigned long ets1 = 0;
40 if ( m_ets1.size() != 0 )
41 {
42 vector<unsigned long>::iterator it = m_ets1.begin() + No;
43 ets1 = ( *it );
44 }
45 return ets1;
46 }
47
48 unsigned long CorrectedETSCal::getEts2_pre( unsigned int No ) {
49 unsigned long ets2_pre = 0;
50 if ( m_ets2_pre.size() != 0 )
51 {
52 vector<unsigned long>::iterator it = m_ets2_pre.begin() + No;
53 ets2_pre = ( *it );
54 }
55 return ets2_pre;
56 }
57 unsigned long CorrectedETSCal::getFlag_pre( unsigned int No ) {
58 unsigned long flag_pre = 0;
59 if ( m_flag_pre.size() != 0 )
60 {
61 vector<unsigned long>::iterator it = m_flag_pre.begin() + No;
62 flag_pre = ( *it );
63 }
64 return flag_pre;
65 }
66 int CorrectedETSCal::getTrigChannel_9( unsigned int No ) {
67 int trigChannel_9 = 0;
68 if ( m_trigChannel_9.size() != 0 )
69 {
70 vector<int>::iterator it = m_trigChannel_9.begin() + No;
71 trigChannel_9 = ( *it );
72 }
73 return trigChannel_9;
74 }
75 int CorrectedETSCal::getEvt( unsigned int No ) {
76 int evt = 0;
77 if ( m_evt.size() != 0 )
78 {
79 vector<int>::iterator it = m_evt.begin() + No;
80 evt = ( *it );
81 }
82 return evt;
83 }
84
85} // namespace CalibData
virtual StatusCode update(CalibBase1 &obj, MsgStream *)
int getTrigChannel_9(unsigned int No)
virtual StatusCode update(CalibBase1 &other, MsgStream *log)
void setFlag_pre(unsigned long flag_pre)
void setTrigChannel_9(int trigChannel_9)
int getEvt(unsigned int No)
void setEts1(unsigned long ets1)
unsigned long getFlag_pre(unsigned int No)
unsigned long getEts1(unsigned int No)
void setEts2_pre(unsigned long ets2_pre)
unsigned long getEts2_pre(unsigned int No)