BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
DedxCurAlg.cxx
Go to the documentation of this file.
1#include "DedxCurAlg.h"
2#include "DedxCurSvc/IDedxCurSvc.h"
3#include "GaudiKernel/Bootstrap.h"
4#include "GaudiKernel/IDataProviderSvc.h"
5#include "GaudiKernel/ISvcLocator.h"
6
8
9DedxCurAlg::DedxCurAlg( const std::string& name, ISvcLocator* pSvcLocator )
10 : Algorithm( name, pSvcLocator ), m_pCalibDataSvc( 0 ) {
11 // Declare properties here.
12}
13
15 StatusCode sc;
16 MsgStream log( msgSvc(), name() );
17 log << MSG::INFO << "Initialize()" << endmsg;
18
19 // So far don't have any properties, but in case we do some day..
20 // setProperties();
21
22 return StatusCode::SUCCESS;
23}
24
25StatusCode DedxCurAlg::execute() {
26
27 MsgStream log( msgSvc(), name() );
28
29 IDedxCurSvc* vtxsvc;
30 Gaudi::svcLocator()->service( "DedxCurSvc", vtxsvc );
31 for ( int i = 0; i < 5; i++ )
32 {
33 std::cout << "vtxsvc->getSigma(i)" << vtxsvc->getSigma( i ) << std::endl;
34 std::cout << "vtxsvc->getCurve(i)" << vtxsvc->getCurve( i ) << std::endl;
35 }
36
37 return StatusCode::SUCCESS;
38}
39
41
42 MsgStream log( msgSvc(), name() );
43 log << MSG::INFO << " DedxCurAlg FINALIZE!! " << endmsg;
44
45 return StatusCode::SUCCESS;
46}
DECLARE_COMPONENT(BesBdkRc)
IMessageSvc * msgSvc()
Simple algorithm to test functioning of "the other" TDS.
Definition DedxCurAlg.h:11
DedxCurAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition DedxCurAlg.cxx:9
StatusCode finalize()
StatusCode initialize()
StatusCode execute()
virtual const double getCurve(int i)=0
virtual const double getSigma(int i)=0