Simple algorithm to test functioning of "the other" TDS.
More...
#include <checkEmc.h>
|
| | checkEmc (const std::string &name, ISvcLocator *pSvcLocator) |
| | Instantiation of a static factory to create instances of this algorithm.
|
| StatusCode | initialize () |
| StatusCode | execute () |
| StatusCode | finalize () |
Simple algorithm to test functioning of "the other" TDS.
Definition at line 17 of file checkEmc.h.
◆ checkEmc()
| checkEmc::checkEmc |
( |
const std::string & | name, |
|
|
ISvcLocator * | pSvcLocator ) |
Instantiation of a static factory to create instances of this algorithm.
Definition at line 41 of file checkEmc.cxx.
42 : Algorithm( name, pSvcLocator ), m_pCalibDataSvc( 0 ) {
43
44}
◆ execute()
| StatusCode checkEmc::execute |
( |
| ) |
|
Definition at line 80 of file checkEmc.cxx.
80 {
81
82 MsgStream log(
msgSvc(), name() );
83
84
85
86 std::string fullPath = "/Calib/EmcCal";
87 log << MSG::INFO << "execute() fullPath = " << fullPath << endmsg;
88 SmartDataPtr<CalibData::EmcCalibData>
test( m_pCalibDataSvc, fullPath );
89 int no1 =
test->getDigiCalibConstNo();
90 for ( int i = 0; i < no1; i++ )
91 {
92 double aa =
test->getDigiCalibConst( i );
93 std::cout << "getDigiCalibConst(" << i << ")=========" << aa << endl;
94 }
95 return StatusCode::SUCCESS;
96}
◆ finalize()
| StatusCode checkEmc::finalize |
( |
| ) |
|
Definition at line 100 of file checkEmc.cxx.
100 {
101
102 MsgStream log(
msgSvc(), name() );
103 log << MSG::INFO << " checkEmc FINALIZE!! " << endmsg;
104
105 return StatusCode::SUCCESS;
106}
◆ initialize()
| StatusCode checkEmc::initialize |
( |
| ) |
|
Definition at line 46 of file checkEmc.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( "CalibTreeCnvSvc", m_pTreeSvc, true );
68 if ( !sc.isSuccess() )
69 {
70 log << MSG::ERROR << "Could not get ICalibTreeSvc interface of CalibTreeCnvSvc" << endmsg;
71 return sc;
72 }
73
74
75 sc = setProperties();
76
77 return StatusCode::SUCCESS;
78}
The documentation for this class was generated from the following files: