BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
CorrectedETSCal.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 CorrectedETSCal::update(CalibBase1& other, MsgStream* log)
11 {
12 CorrectedETSCal& other1 = dynamic_cast<CorrectedETSCal& >(other);
13 cout<<"\n"<<"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 }
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 vector<unsigned long>::iterator it = m_ets1.begin() + No;
42 ets1 = (*it);
43 }
44 return ets1;
45 }
46
47 unsigned long CorrectedETSCal::getEts2_pre(unsigned int No){
48 unsigned long ets2_pre = 0;
49 if( m_ets2_pre.size() != 0 ) {
50 vector<unsigned long>::iterator it = m_ets2_pre.begin() + No;
51 ets2_pre = (*it);
52 }
53 return ets2_pre;
54 }
55 unsigned long CorrectedETSCal::getFlag_pre(unsigned int No) {
56 unsigned long flag_pre=0;
57 if( m_flag_pre.size() != 0 ) {
58 vector<unsigned long>::iterator it = m_flag_pre.begin() + No;
59 flag_pre=(*it);
60 }
61 return flag_pre;
62 }
64 int trigChannel_9 = 0;
65 if( m_trigChannel_9.size() != 0 ) {
66 vector<int>::iterator it = m_trigChannel_9.begin() + No;
67 trigChannel_9 = (*it);
68 }
69 return trigChannel_9;
70 }
71 int CorrectedETSCal::getEvt(unsigned int No){
72 int evt = 0;
73 if( m_evt.size() != 0 ) {
74 vector<int>::iterator it = m_evt.begin() + No;
75 evt = (*it);
76 }
77 return evt;
78 }
79
80}
virtual StatusCode update(CalibBase1 &obj, MsgStream *)
Definition: CalibBase1.cxx:33
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)