Simple algorithm to test functioning of "the other" TDS.
More...
#include <UseMdcCalibData.h>
|
| | UseMdcCalibData (const std::string &name, ISvcLocator *pSvcLocator) |
| | bes/bes/BossCvs/Calibration/CalibSvc/CalibROOTCnv/src/test/UseMdcCalibData.cxx,v 1.7
|
| StatusCode | initialize () |
| StatusCode | execute () |
| StatusCode | finalize () |
Simple algorithm to test functioning of "the other" TDS.
Definition at line 16 of file UseMdcCalibData.h.
◆ UseMdcCalibData()
| UseMdcCalibData::UseMdcCalibData |
( |
const std::string & | name, |
|
|
ISvcLocator * | pSvcLocator ) |
bes/bes/BossCvs/Calibration/CalibSvc/CalibROOTCnv/src/test/UseMdcCalibData.cxx,v 1.7
Definition at line 41 of file UseMdcCalibData.cxx.
42 : Algorithm( name, pSvcLocator ), m_pCalibDataSvc( 0 ) {
43
44}
◆ execute()
| StatusCode UseMdcCalibData::execute |
( |
| ) |
|
Definition at line 79 of file UseMdcCalibData.cxx.
79 {
80
81 MsgStream log(
msgSvc(), name() );
82
83
84
85 std::string fullPath = "/Calib/MdcCal";
86 std::string
file = m_pRootSvc->getrootfile();
87 std::cout <<
"file=" <<
file <<
"\n";
88
89 log << MSG::INFO << "execute() fullPath = " << fullPath << endmsg;
90
91 SmartDataPtr<CalibData::MdcCalibData> test1Copy( m_pCalibDataSvc, fullPath );
92 if ( !test1Copy )
93 ;
94
95
96
97 m_pRootSvc->writeToRoot( "Mdc_test.root", fullPath );
98
99
100 return StatusCode::SUCCESS;
101}
◆ finalize()
| StatusCode UseMdcCalibData::finalize |
( |
| ) |
|
Definition at line 105 of file UseMdcCalibData.cxx.
105 {
106
107 MsgStream log(
msgSvc(), name() );
108 log << MSG::INFO << " UseMdcCalibData1 FINALIZE!! " << endmsg;
109
110 return StatusCode::SUCCESS;
111}
◆ initialize()
| StatusCode UseMdcCalibData::initialize |
( |
| ) |
|
Definition at line 46 of file UseMdcCalibData.cxx.
46 {
47 StatusCode sc;
48 MsgStream log(
msgSvc(), name() );
49 log << MSG::INFO << "Initialize()" << endmsg;
50
51
52
53
54 log << MSG::INFO << "setProperties()" << endmsg;
55
56 sc = service( "CalibDataSvc", m_pCalibDataSvc, true );
57
58 if ( !sc.isSuccess() )
59 {
60 log << MSG::ERROR << "Could not get IDataProviderSvc interface of CalibXmlCnvSvc"
61 << endmsg;
62 return sc;
63 }
64 else
65 { log << MSG::DEBUG << "Retrieved IDataProviderSvc interface of CalibXmlCnvSvc" << endmsg; }
66
67 sc = service( "CalibRootCnvSvc", m_pRootSvc, true );
68 if ( !sc.isSuccess() )
69 {
70 log << MSG::ERROR << "Could not get ICalibRootSvc interface of CalibRootCnvSvc" << endmsg;
71 return sc;
72 }
73
74
75 sc = setProperties();
76 return StatusCode::SUCCESS;
77}
The documentation for this class was generated from the following files: