Simple algorithm to test functioning of "the other" TDS.
More...
#include <checkDedx.h>
|
| | checkDedx (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 checkDedx.h.
◆ checkDedx()
| checkDedx::checkDedx |
( |
const std::string & | name, |
|
|
ISvcLocator * | pSvcLocator ) |
Instantiation of a static factory to create instances of this algorithm.
Definition at line 49 of file checkDedx.cxx.
50 : Algorithm( name, pSvcLocator ), m_pCalibDataSvc( 0 ) {
51
52}
◆ execute()
| StatusCode checkDedx::execute |
( |
| ) |
|
Definition at line 88 of file checkDedx.cxx.
88 {
89
90 MsgStream log(
msgSvc(), name() );
91
92
93
94
95
96
97
98 std::string fullPath = "/Calib/EsTimeCal";
99
100
101
102
103
104
105 log << MSG::INFO << "execute() fullPath = " << fullPath << endmsg;
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122 SmartDataPtr<CalibData::EsTimeCalibData>
test( m_pCalibDataSvc, fullPath );
123
125 ;
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140 return StatusCode::SUCCESS;
141}
◆ finalize()
| StatusCode checkDedx::finalize |
( |
| ) |
|
Definition at line 145 of file checkDedx.cxx.
145 {
146
147 MsgStream log(
msgSvc(), name() );
148 log << MSG::INFO << " checkDedx FINALIZE!! " << endmsg;
149
150 return StatusCode::SUCCESS;
151}
◆ initialize()
| StatusCode checkDedx::initialize |
( |
| ) |
|
Definition at line 54 of file checkDedx.cxx.
54 {
55 StatusCode sc;
56 MsgStream log(
msgSvc(), name() );
57 log << MSG::INFO << "Initialize()" << endmsg;
58
59
60
61
62 log << MSG::INFO << "setProperties()" << endmsg;
63
64 sc = service( "CalibDataSvc", m_pCalibDataSvc, true );
65
66 if ( !sc.isSuccess() )
67 {
68 log << MSG::ERROR << "Could not get IDataProviderSvc interface of CalibXmlCnvSvc"
69 << endmsg;
70 return sc;
71 }
72 else
73 { log << MSG::DEBUG << "Retrieved IDataProviderSvc interface of CalibXmlCnvSvc" << endmsg; }
74
75 sc = service( "CalibTreeCnvSvc", m_pTreeSvc, true );
76 if ( !sc.isSuccess() )
77 {
78 log << MSG::ERROR << "Could not get ICalibTreeSvc interface of CalibTreeCnvSvc" << endmsg;
79 return sc;
80 }
81
82
83 sc = setProperties();
84
85 return StatusCode::SUCCESS;
86}
The documentation for this class was generated from the following files: