BOSS 8.0.0
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 11 of file DedxCurAlg.h.

Constructor & Destructor Documentation

◆ DedxCurAlg()

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

Definition at line 9 of file DedxCurAlg.cxx.

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

Referenced by DedxCurAlg().

Member Function Documentation

◆ execute()

StatusCode DedxCurAlg::execute ( )

Definition at line 25 of file DedxCurAlg.cxx.

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

◆ finalize()

StatusCode DedxCurAlg::finalize ( )

Definition at line 40 of file DedxCurAlg.cxx.

40 {
41
42 MsgStream log( msgSvc(), name() );
43 log << MSG::INFO << " DedxCurAlg FINALIZE!! " << endmsg;
44
45 return StatusCode::SUCCESS;
46}

◆ initialize()

StatusCode DedxCurAlg::initialize ( )

Definition at line 14 of file DedxCurAlg.cxx.

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

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