BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
UseMdcCalibData Class Reference

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

#include <UseMdcCalibData.h>

Inheritance diagram for UseMdcCalibData:

Public Member Functions

 UseMdcCalibData (const std::string &name, ISvcLocator *pSvcLocator)
 bes/bes/BossCvs/Calibration/CalibSvc/CalibROOTCnv/src/test/UseMdcCalibData.cxx,v 1.7
StatusCode initialize ()
StatusCode execute ()
StatusCode finalize ()

Detailed Description

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

Definition at line 16 of file UseMdcCalibData.h.

Constructor & Destructor Documentation

◆ UseMdcCalibData()

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

bes/bes/BossCvs/Calibration/CalibSvc/CalibROOTCnv/src/test/UseMdcCalibData.cxx,v 1.7

Definition at line 41 of file UseMdcCalibData.cxx.

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

Member Function Documentation

◆ execute()

StatusCode UseMdcCalibData::execute ( )

Definition at line 79 of file UseMdcCalibData.cxx.

79 {
80
81 MsgStream log( msgSvc(), name() );
82
83 // Cheat for now since Windows is having trouble finding definition
84
85 std::string fullPath = "/Calib/MdcCal";
86 std::string file = m_pRootSvc->getrootfile();
87 std::cout << "file=" << file << "\n";
88 // return StatusCode::SUCCESS;
89 log << MSG::INFO << "execute() fullPath = " << fullPath << endmsg;
90
91 SmartDataPtr<CalibData::MdcCalibData> test1Copy( m_pCalibDataSvc, fullPath );
92 if ( !test1Copy )
93 ;
94 // CalibData::MdcCalibData test;
95
96 // m_pCalibDataSvc->registerObject(FullPath,test);
97 m_pRootSvc->writeToRoot( "Mdc_test.root", fullPath );
98 // SmartDataPtr<CalibData::MdcCalibData> test1Copy(m_pCalibDataSvc, fullPath);
99 // if(!test1Copy);
100 return StatusCode::SUCCESS;
101}
char * file
Definition DQA_TO_DB.cxx:16
IMessageSvc * msgSvc()

◆ finalize()

StatusCode UseMdcCalibData::finalize ( )

Definition at line 105 of file UseMdcCalibData.cxx.

105 {
106
107 MsgStream log( msgSvc(), name() );
108 log << MSG::INFO << " UseMdcCalibData1 FINALIZE!! " << endmsg;
109
110 return StatusCode::SUCCESS;
111}

◆ initialize()

StatusCode UseMdcCalibData::initialize ( )

Definition at line 46 of file UseMdcCalibData.cxx.

46 {
47 StatusCode sc;
48 MsgStream log( msgSvc(), name() );
49 log << MSG::INFO << "Initialize()" << endmsg;
50
51 // So far don't have any properties, but in case we do some day..
52 // setProperties();
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( "CalibRootCnvSvc", m_pRootSvc, true );
68 if ( !sc.isSuccess() )
69 {
70 log << MSG::ERROR << "Could not get ICalibRootSvc interface of CalibRootCnvSvc" << endmsg;
71 return sc;
72 }
73 // Get properties from the JobOptionsSvc
74
75 sc = setProperties();
76 return StatusCode::SUCCESS;
77}

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