BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
checkEmc Class Reference

Simple algorithm to test functioning of "the other" TDS. More...

#include <checkEmc.h>

+ Inheritance diagram for checkEmc:

Public Member Functions

 checkEmc (const std::string &name, ISvcLocator *pSvcLocator)
 Instantiation of a static factory to create instances of this algorithm.
 
StatusCode initialize ()
 
StatusCode execute ()
 
StatusCode finalize ()
 
 checkEmc (const std::string &name, ISvcLocator *pSvcLocator)
 
StatusCode initialize ()
 
StatusCode execute ()
 
StatusCode finalize ()
 
 checkEmc (const std::string &name, ISvcLocator *pSvcLocator)
 
StatusCode initialize ()
 
StatusCode execute ()
 
StatusCode finalize ()
 

Detailed Description

Simple algorithm to test functioning of "the other" TDS.

Definition at line 16 of file CalibTreeCnv-00-02-02-bak/src/test/checkEmc.h.

Constructor & Destructor Documentation

◆ checkEmc() [1/3]

checkEmc::checkEmc ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Instantiation of a static factory to create instances of this algorithm.

Definition at line 40 of file CalibTreeCnv-00-02-02-bak/src/test/checkEmc.cxx.

42 : Algorithm ( name, pSvcLocator ), m_pCalibDataSvc(0)
43{
44 // Declare properties here.
45
46}

◆ checkEmc() [2/3]

checkEmc::checkEmc ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

◆ checkEmc() [3/3]

checkEmc::checkEmc ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Member Function Documentation

◆ execute() [1/3]

StatusCode checkEmc::execute ( )

Definition at line 88 of file CalibTreeCnv-00-02-02-bak/src/test/checkEmc.cxx.

88 {
89
90 MsgStream log(msgSvc(), name());
91
92 // Cheat for now since Windows is having trouble finding definition
93 // of Calibdata::Test_t
94 std::string fullPath = "/Calib/EmcCal";
95 log << MSG::INFO<<"execute() fullPath = "<<fullPath<< endreq;
96 SmartDataPtr<CalibData::EmcCalibData> test(m_pCalibDataSvc, fullPath);
97 int no1 = test->getDigiCalibConstNo();
98 for(int i=0;i<no1;i++){
99 double aa = test->getDigiCalibConst(i);
100 std::cout<<"getDigiCalibConst("<<i<<")========="<<aa<<endl;
101 }
102 return StatusCode::SUCCESS;
103}
std::string test
Definition: CalibModel.cxx:43
IMessageSvc * msgSvc()

◆ execute() [2/3]

StatusCode checkEmc::execute ( )

◆ execute() [3/3]

StatusCode checkEmc::execute ( )

◆ finalize() [1/3]

StatusCode checkEmc::finalize ( )

Definition at line 107 of file CalibTreeCnv-00-02-02-bak/src/test/checkEmc.cxx.

107 {
108
109 MsgStream log(msgSvc(), name());
110 log << MSG::INFO
111 << " checkEmc FINALIZE!! "
112 << endreq;
113
114 return StatusCode::SUCCESS;
115}

◆ finalize() [2/3]

StatusCode checkEmc::finalize ( )

◆ finalize() [3/3]

StatusCode checkEmc::finalize ( )

◆ initialize() [1/3]

StatusCode checkEmc::initialize ( )

Definition at line 49 of file CalibTreeCnv-00-02-02-bak/src/test/checkEmc.cxx.

49 {
50 StatusCode sc;
51 MsgStream log(msgSvc(), name());
52 log << MSG::INFO << "Initialize()" << endreq;
53
54 // So far don't have any properties, but in case we do some day..
55// setProperties();
56
57 log<<MSG::INFO << "setProperties()" << endreq;
58
59 sc = service("CalibDataSvc", m_pCalibDataSvc, true);
60
61 if ( !sc.isSuccess() ) {
62 log << MSG::ERROR
63 << "Could not get IDataProviderSvc interface of CalibXmlCnvSvc"
64 << endreq;
65 return sc;
66 } else {
67 log << MSG::DEBUG
68 << "Retrieved IDataProviderSvc interface of CalibXmlCnvSvc"
69 << endreq;
70 }
71
72 sc = service("CalibTreeCnvSvc", m_pTreeSvc, true);
73 if ( !sc.isSuccess() ) {
74 log << MSG::ERROR
75 << "Could not get ICalibTreeSvc interface of CalibTreeCnvSvc"
76 << endreq;
77 return sc;
78 }
79 // Get properties from the JobOptionsSvc
80
81 sc = setProperties();
82
83 return StatusCode::SUCCESS;
84
85}

◆ initialize() [2/3]

StatusCode checkEmc::initialize ( )

◆ initialize() [3/3]

StatusCode checkEmc::initialize ( )

The documentation for this class was generated from the following files: