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

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

#include <checkDedx.h>

Inheritance diagram for checkDedx:

Public Member Functions

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

Detailed Description

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

Definition at line 17 of file checkDedx.h.

Constructor & Destructor Documentation

◆ 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 // Declare properties here.
52}

Member Function Documentation

◆ execute()

StatusCode checkDedx::execute ( )

Definition at line 88 of file checkDedx.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 // std::string fullPath = "/Calib/DedxCal";
96 // std::string fullPath = "/Calib/DedxSim";
97 // std::string fullPath = "/Calib/EmcCal";
98 std::string fullPath = "/Calib/EsTimeCal";
99 // std::string fullPath = "/Calib/EstTofCal";
100 // std::string fullPath = "/Calib/MucCal";
101 // std::string fullPath = "/Calib/TofCal";
102 // std::string fullPath = "/Calib/TofQElec";
103 // std::string fullPath = "/Calib/TofSim";
104 // std::string fullPath = "/Calib/MdcAlign";
105 log << MSG::INFO << "execute() fullPath = " << fullPath << endmsg;
106
107 // SmartDataPtr<CalibData::MdcCalibData> test(m_pCalibDataSvc, fullPath);
108 // if(!btof) ;
109 /* for(int i=0;i<16;i++){
110 std::cout<<"test->getdxEP(i)"<<test->getdxEP(i)<<std::endl;
111 }
112 for(int i=0;i<6796;i++){
113 std::cout<<"test->gettension"<<test->gettension(i)<<std::endl;
114 }*/
115 // if(!test) ;
116 // SmartDataPtr<CalibData::DedxCalibData> test(m_pCalibDataSvc, fullPath);
117 // SmartDataPtr<CalibData::DedxSimData> test(m_pCalibDataSvc, fullPath);
118 // SmartDataPtr<CalibData::EmcCalibData> test(m_pCalibDataSvc, fullPath);
119 // SmartDataPtr<CalibData::TofElecData> test(m_pCalibDataSvc, fullPath);
120 // SmartDataPtr<CalibData::TofSimData> test(m_pCalibDataSvc, fullPath);
121 // SmartDataPtr<CalibData::MdcAlignData> test(m_pCalibDataSvc, fullPath);
122 SmartDataPtr<CalibData::EsTimeCalibData> test( m_pCalibDataSvc, fullPath );
123
124 if ( !test )
125 ;
126 // test->getBTof(0);
127 // int qtparno = test->getgain();
128 // int xtno = test->getxtNo();
129 // int t0no = test->gett0No();
130 // int qtparno =test->gethistNo();
131 // int qtparno =test->getDigiCalibConstNo();
132 // int qtparno =test->getToffsete();
133 // int qtparno =test->getRunBegin();
134 // int qtparno =test->getUniformEff();
135 // int qtparno =test->getdyWireEast(0);
136 // std::cout<<"qtparno="<<qtparno<<std::endl;
137 //"xtno="<<xtno<<"t0no="<<t0no<<std::endl;
138 // std::cout<<"xtno="<<xtno<<std::endl;
139
140 return StatusCode::SUCCESS;
141}
std::string test
IMessageSvc * msgSvc()

◆ 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 // 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: