BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
checkMdc Class Reference

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

#include <checkMdc.h>

+ Inheritance diagram for checkMdc:

Public Member Functions

 checkMdc (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 15 of file checkMdc.h.

Constructor & Destructor Documentation

◆ checkMdc()

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

Definition at line 47 of file checkMdc.cxx.

49 : Algorithm ( name, pSvcLocator ), m_pCalibDataSvc(0)
50{
51 // Declare properties here.
52 //
53 }

Member Function Documentation

◆ execute()

StatusCode checkMdc::execute ( )

Definition at line 94 of file checkMdc.cxx.

94 {
95
96 MsgStream log(msgSvc(), name());
97
98 // Cheat for now since Windows is having trouble finding definition
99 // of Calibdata::Test_t
100 std::string fullPath = "/Calib/MdcCal";
101 log << MSG::INFO<<"execute() fullPath = "<<fullPath<< endreq;
102
103 SmartDataPtr<CalibData::MdcCalibData> test(m_pCalibDataSvc, fullPath);
104// if(!btof) ;
105 int qtparno = test->getqtparNo();
106 int xtno = test->getxtNo();
107 int t0no = test->gett0No();
108 std::cout<<"qtparno="<<qtparno<<"xtno="<<xtno<<"t0no="<<t0no<<std::endl;
109
110
111
112
113 return StatusCode::SUCCESS;
114}
std::string test
Definition: CalibModel.cxx:43

◆ finalize()

StatusCode checkMdc::finalize ( )

Definition at line 118 of file checkMdc.cxx.

118 {
119
120 MsgStream log(msgSvc(), name());
121 log << MSG::INFO
122 << " checkMdc FINALIZE!! "
123 << endreq;
124
125 return StatusCode::SUCCESS;
126}

◆ initialize()

StatusCode checkMdc::initialize ( )

Definition at line 55 of file checkMdc.cxx.

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

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