CGEM BOSS 6.6.5.f
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/ISvcLocator.h"
4#include "GaudiKernel/IDataProviderSvc.h"
5#include "GaudiKernel/Bootstrap.h"
6
7DedxCurAlg::DedxCurAlg( const std::string& name,
8 ISvcLocator* pSvcLocator )
9 : Algorithm ( name, pSvcLocator ), m_pCalibDataSvc(0)
10{
11 // Declare properties here.
12
13}
14
15
17 StatusCode sc;
18 MsgStream log(msgSvc(), name());
19 log << MSG::INFO << "Initialize()" << endreq;
20
21 // So far don't have any properties, but in case we do some day..
22// setProperties();
23
24 return StatusCode::SUCCESS;
25
26}
27
28
29StatusCode DedxCurAlg::execute( ) {
30
31 MsgStream log(msgSvc(), name());
32
33 IDedxCurSvc* vtxsvc;
34 Gaudi::svcLocator()->service("DedxCurSvc", vtxsvc);
35 for(int i=0;i<5;i++){
36 std::cout<<"vtxsvc->getSigma(i)"<<vtxsvc->getSigma(i)<<std::endl;
37 std::cout<<"vtxsvc->getCurve(i)"<<vtxsvc->getCurve(i)<<std::endl;
38}
39
40 return StatusCode::SUCCESS;
41}
42
43StatusCode DedxCurAlg::finalize( ) {
44
45 MsgStream log(msgSvc(), name());
46 log << MSG::INFO
47 << " DedxCurAlg FINALIZE!! "
48 << endreq;
49
50 return StatusCode::SUCCESS;
51}
52
53
DedxCurAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: DedxCurAlg.cxx:7
StatusCode finalize()
Definition: DedxCurAlg.cxx:43
StatusCode initialize()
Definition: DedxCurAlg.cxx:16
StatusCode execute()
Definition: DedxCurAlg.cxx:29
virtual const double getCurve(int i)=0
virtual const double getSigma(int i)=0