BOSS 8.0.0
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 16 of file checkMdc.h.

Constructor & Destructor Documentation

◆ checkMdc()

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

Definition at line 48 of file checkMdc.cxx.

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

Member Function Documentation

◆ execute()

StatusCode checkMdc::execute ( )

Definition at line 88 of file checkMdc.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/MdcCal";
95 log << MSG::INFO << "execute() fullPath = " << fullPath << endmsg;
96
97 SmartDataPtr<CalibData::MdcCalibData> test( m_pCalibDataSvc, fullPath );
98 // if(!btof) ;
99 int qtparno = test->getqtparNo();
100 int xtno = test->getxtNo();
101 int t0no = test->gett0No();
102 std::cout << "qtparno=" << qtparno << "xtno=" << xtno << "t0no=" << t0no << std::endl;
103
104 return StatusCode::SUCCESS;
105}
std::string test
IMessageSvc * msgSvc()

◆ finalize()

StatusCode checkMdc::finalize ( )

Definition at line 109 of file checkMdc.cxx.

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

◆ initialize()

StatusCode checkMdc::initialize ( )

Definition at line 54 of file checkMdc.cxx.

54 {
55 StatusCode sc;
56 MsgStream log( msgSvc(), name() );
57 log << MSG::INFO << "Initialize()" << endmsg;
58
59 // So far don't have any properties, but in case we do some day..
60 // setProperties();
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 // Get properties from the JobOptionsSvc
82
83 sc = setProperties();
84
85 return StatusCode::SUCCESS;
86}

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