BOSS 7.0.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 7 of file DedxCurAlg.cxx.

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

Member Function Documentation

◆ execute()

StatusCode DedxCurAlg::execute ( )

Definition at line 29 of file DedxCurAlg.cxx.

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

◆ finalize()

StatusCode DedxCurAlg::finalize ( )

Definition at line 43 of file DedxCurAlg.cxx.

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

◆ initialize()

StatusCode DedxCurAlg::initialize ( )

Definition at line 16 of file DedxCurAlg.cxx.

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

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