CGEM BOSS
6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
TofElecData.cxx
Go to the documentation of this file.
1
// $Header: /bes/bes/BossCvs/Calibration/CalibData/src/Tof/TofElecData.cxx,v 1.1 2009/09/22 07:28:05 huangb Exp $
2
3
/** @class Mdctxpar
4
* Implementation of Mdcspres calibration TCDS class
5
*/
6
7
8
#include "GaudiKernel/MsgStream.h"
9
#include "
CalibData/Tof/TofElecData.h
"
10
namespace
CalibData
{
11
12
TofElecData::TofElecData
(std::vector<BarrelElec>* bTofCal,std::vector<EndcapElec>* eTofCal){
13
if
(bTofCal){
14
m_bTofElecData =
new
std::vector<BarrelElec>(*bTofCal);
15
}
16
if
(eTofCal){
17
m_eTofElecData =
new
std::vector<EndcapElec>(*eTofCal);
18
}
19
}
20
21
StatusCode
TofElecData::update
(
CalibBase1
& other, MsgStream* log)
22
{
23
TofElecData
& other1 =
dynamic_cast<
TofElecData
&
>
(other);
24
std::cout<<
"========================================"
<<
"\n"
<<
"here is the update in the TofElecData"
<<
"\n"
<<
"=================================================="
<<std::endl;
25
CalibBase1::update
(other, log);
26
delete
m_bTofElecData;
27
m_bTofElecData =
new
std::vector<BarrelElec>(*(other1.m_bTofElecData));
28
delete
m_eTofElecData;
29
m_eTofElecData =
new
std::vector<EndcapElec>(*(other1.m_eTofElecData));
30
return
StatusCode::SUCCESS;
31
}
32
33
void
TofElecData::sim
(
TofElecData
* other1){
34
// if(!m_bTofElecData->empty()) delete m_bTofElecData;
35
if
(m_bTofElecData)
delete
m_bTofElecData;
36
m_bTofElecData =
new
std::vector<BarrelElec>(*(other1->m_bTofElecData));
37
if
(m_eTofElecData)
delete
m_eTofElecData;
38
m_eTofElecData =
new
std::vector<EndcapElec>(*(other1->m_eTofElecData));
39
}
40
41
//get the CalibData
42
43
BarrelElec
TofElecData::getBTof
(
int
cnt)
const
{
44
std::vector<BarrelElec>::iterator it = m_bTofElecData->begin();
45
for
(
int
i=0;i!=cnt;i++,it++)
46
{
47
}
48
return
*it;
49
}
50
51
52
EndcapElec
TofElecData::getETof
(
int
cnt)
const
{
53
std::vector<EndcapElec>::iterator it = m_eTofElecData->begin();
54
for
(
int
i=0;i!=cnt;i++,it++)
55
{
56
}
57
return
*it;
58
}
59
60
}
61
62
TofElecData.h
CalibData::BarrelElec
Definition
Calibration/CalibData/CalibData-00-01-09/CalibData/Tof/BarrelElec.h:8
CalibData::CalibBase1
Definition
CalibBase1.h:27
CalibData::CalibBase1::update
virtual StatusCode update(CalibBase1 &obj, MsgStream *)
Definition
CalibBase1.cxx:33
CalibData::EndcapElec
Definition
Calibration/CalibData/CalibData-00-01-09/CalibData/Tof/EndcapElec.h:7
CalibData::TofElecData
Definition
TofElecData.h:18
CalibData::TofElecData::update
virtual StatusCode update(CalibBase1 &other, MsgStream *log)
Definition
TofElecData.cxx:21
CalibData::TofElecData::sim
void sim(TofElecData *other1)
Definition
TofElecData.cxx:33
CalibData::TofElecData::TofElecData
TofElecData()
Definition
TofElecData.h:21
CalibData::TofElecData::getETof
EndcapElec getETof(int cnt) const
Definition
TofElecData.cxx:52
CalibData::TofElecData::getBTof
BarrelElec getBTof(int cnt) const
Definition
TofElecData.cxx:43
CalibData
Definition
Calibration/CalibData/CalibData-00-01-09/CalibData/CalibBase.h:27
6.6.5.i
Calibration
CalibData
CalibData-00-01-09
src
Tof
TofElecData.cxx
Generated by
1.12.0