5#include "CalibData/EsTime/EsTimeCalibData.h"
6#include "GaudiKernel/MsgStream.h"
10 if( m_toffsetb.size()>0 ) { m_toffsetb.clear(); }
11 if( m_toffsete.size()>0 ) { m_toffsete.clear(); }
12 if( m_bunchtime.size()>0 ) { m_bunchtime.clear(); }
13 if( m_runFrom.size()>0 ) { m_runFrom.clear(); }
14 if( m_runTo.size()>0 ) { m_runTo.clear(); }
15 if( m_eventFrom.size()>0 ) { m_eventFrom.clear(); }
16 if( m_eventTo.size()>0 ) { m_eventTo.clear(); }
22 std::cout<<
"========================================"<<
"\n"
23 <<
"here is the update in the EsTimeCalibData"<<
"\n"
24 <<
"=================================================="<<std::endl;
27 if( m_TestCalibConst) {
delete m_TestCalibConst; }
28 if( m_toffsetb.size()>0 ) { m_toffsetb.clear(); }
29 if( m_toffsete.size()>0 ) { m_toffsete.clear(); }
30 if( m_bunchtime.size()>0 ) { m_bunchtime.clear(); }
31 if( m_runFrom.size()>0 ) { m_runFrom.clear(); }
32 if( m_runTo.size()>0 ) { m_runTo.clear(); }
33 if( m_eventFrom.size()>0 ) { m_eventFrom.clear(); }
34 if( m_eventTo.size()>0 ) { m_eventTo.clear(); }
36 m_TestCalibConst =
new vector<double>(*other1.m_TestCalibConst);
37 m_toffsetb = other1.m_toffsetb;
38 m_toffsete = other1.m_toffsete;
39 m_bunchtime = other1.m_bunchtime;
40 m_runFrom = other1.m_runFrom;
41 m_runTo = other1.m_runTo;
42 m_eventFrom = other1.m_eventFrom;
43 m_eventTo = other1.m_eventTo;
45 return StatusCode::SUCCESS;
50 if(m_TestCalibConst)
delete m_TestCalibConst;
51 m_TestCalibConst =
new vector<double>(*TestCalibConst);
56 m_toffsetb.push_back( toffset );
61 m_toffsete.push_back( toffset );
67 m_bunchtime.push_back( bunchtime );
72 m_runFrom.push_back( runFrom );
77 m_runTo.push_back( runTo );
82 m_eventFrom.push_back( eventFrom );
87 m_eventTo.push_back( eventTo );
96 double toffsetb = 0.0;
97 if( m_toffsetb.size() != 0 ) {
98 vector<double>::iterator it = m_toffsetb.begin() + No;
109 double toffsete = 0.0;
110 if( m_toffsete.size() != 0 ) {
111 vector<double>::iterator it = m_toffsete.begin() + No;
122 double bunchtime = 0.0;
123 if( m_bunchtime.size() != 0 ) {
124 vector<int>::iterator it = m_bunchtime.begin() + No;
136 if( m_runFrom.size() != 0 ) {
137 vector<int>::iterator it = m_runFrom.begin() + No;
149 if( m_runTo.size() != 0 ) {
150 vector<int>::iterator it = m_runTo.begin() + No;
158 if( m_eventFrom.size() != 0 ) {
159 vector<int>::iterator it = m_eventFrom.begin() + No;
171 if( m_eventTo.size() != 0 ) {
172 vector<int>::iterator it = m_eventTo.begin() + No;
virtual StatusCode update(CalibBase1 &obj, MsgStream *)
void setRunFrom(const int runFrom)
void setEventTo(const int eventTo)
void setToffsetb(const double toffsetb)
void setEventFrom(const int eventFrom)
virtual StatusCode update(CalibBase1 &other, MsgStream *log)
void setBunchTime(const int bunchtime)
void setTestCalibConst(const vector< double > *TestCalibConst)
void setRunTo(const int runTo)
void setToffsete(const double toffsete)