BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
test_read Class Reference

Simple algorithm to test reading vertex database. More...

#include <test_read.h>

Inheritance diagram for test_read:

Public Member Functions

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

Detailed Description

Simple algorithm to test reading vertex database.

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

Definition at line 9 of file Analysis/VertexFit/src/test/test_read.h.

Constructor & Destructor Documentation

◆ test_read() [1/2]

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

Definition at line 8 of file Analysis/VertexFit/src/test/test_read.cxx.

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

◆ test_read() [2/2]

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

Member Function Documentation

◆ execute() [1/2]

StatusCode test_read::execute ( )

Definition at line 33 of file Analysis/VertexFit/src/test/test_read.cxx.

33 {
34
35 MsgStream log( msgSvc(), name() );
36 // ReadPara* a1 = m_mdc->getReadPara();
37 IVertexDbSvc* vtxsvc;
38 Gaudi::svcLocator()->service( "VertexDbSvc", vtxsvc );
39 // service("VertexDbSvc", vtxsvc, true);
40 bool aa = vtxsvc->isVertexValid();
41 std::cout << " status: " << aa << std::endl;
42 double* a1 = vtxsvc->PrimaryVertex();
43 double* a2 = vtxsvc->SigmaPrimaryVertex();
44 std::cout << " vx: " << a1[0] << " vy: " << a1[1] << " vz: " << a1[2] << std::endl;
45 std::cout << " vx sigma: " << a2[0] << " vy sigma: " << a2[1] << " vz sigma: " << a2[2]
46 << std::endl;
47 return StatusCode::SUCCESS;
48}
IMessageSvc * msgSvc()
virtual bool isVertexValid()=0
virtual double * SigmaPrimaryVertex()=0
virtual double * PrimaryVertex()=0

◆ execute() [2/2]

StatusCode test_read::execute ( )

◆ finalize() [1/2]

StatusCode test_read::finalize ( )

Definition at line 50 of file Analysis/VertexFit/src/test/test_read.cxx.

50{ return StatusCode::SUCCESS; }

◆ finalize() [2/2]

StatusCode test_read::finalize ( )

◆ initialize() [1/2]

StatusCode test_read::initialize ( )

Definition at line 13 of file Analysis/VertexFit/src/test/test_read.cxx.

13 {
14 StatusCode sc;
15 MsgStream log( msgSvc(), name() );
16 log << MSG::INFO << "Initialize()" << endmsg;
17
18 // So far don't have any properties, but in case we do some day..
19 // setProperties();
20 /*sc = service("VertexDbSvc", m_mdc, true);
21 if ( !sc.isSuccess() ) {
22 log << MSG::ERROR
23 << "Could not get ICalibRootSvc interface of CalibRootCnvSvc"
24 << endmsg;
25 return sc;
26 }
27 */
28 // Get properties from the JobOptionsSvc
29
30 return StatusCode::SUCCESS;
31}

◆ initialize() [2/2]

StatusCode test_read::initialize ( )

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