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