BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
DedxCurAlg Class Reference

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

#include <DedxCurAlg.h>

+ Inheritance diagram for DedxCurAlg:

Public Member Functions

 DedxCurAlg (const std::string &name, ISvcLocator *pSvcLocator)
 
StatusCode initialize ()
 
StatusCode execute ()
 
StatusCode finalize ()
 

Detailed Description

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

Definition at line 10 of file DedxCurAlg.h.

Constructor & Destructor Documentation

◆ DedxCurAlg()

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

Definition at line 9 of file DedxCurAlg.cxx.

11 : Algorithm ( name, pSvcLocator ), m_pCalibDataSvc(0)
12{
13 // Declare properties here.
14
15}

Member Function Documentation

◆ execute()

StatusCode DedxCurAlg::execute ( )

Definition at line 31 of file DedxCurAlg.cxx.

31 {
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}
IMessageSvc * msgSvc()
virtual const double getCurve(int i)=0
virtual const double getSigma(int i)=0

◆ finalize()

StatusCode DedxCurAlg::finalize ( )

Definition at line 45 of file DedxCurAlg.cxx.

45 {
46
47 MsgStream log(msgSvc(), name());
48 log << MSG::INFO
49 << " DedxCurAlg FINALIZE!! "
50 << endreq;
51
52 return StatusCode::SUCCESS;
53}

◆ initialize()

StatusCode DedxCurAlg::initialize ( )

Definition at line 18 of file DedxCurAlg.cxx.

18 {
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}

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