BOSS 7.0.9
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/VertexFit-00-02-95/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/VertexFit-00-02-95/src/test/test_read.cxx.

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

◆ 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 39 of file Analysis/VertexFit/VertexFit-00-02-95/src/test/test_read.cxx.

39 {
40
41 MsgStream log(msgSvc(), name());
42// ReadPara* a1 = m_mdc->getReadPara();
43 IVertexDbSvc* vtxsvc;
44 Gaudi::svcLocator()->service("VertexDbSvc", vtxsvc);
45 // service("VertexDbSvc", vtxsvc, true);
46 bool aa = vtxsvc->isVertexValid();
47 std::cout<<" status: "<< aa <<std::endl;
48 double* a1 = vtxsvc->PrimaryVertex();
49 double* a2 = vtxsvc->SigmaPrimaryVertex();
50 std::cout<<" vx: "<<a1[0]<<" vy: "<<a1[1] <<" vz: " << a1[2] <<std::endl;
51 std::cout<<" vx sigma: "<<a2[0]<<" vy sigma: "<<a2[1] <<" vz sigma: " << a2[2] <<std::endl;
52 return StatusCode::SUCCESS;
53}
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 55 of file Analysis/VertexFit/VertexFit-00-02-95/src/test/test_read.cxx.

55 {
56return StatusCode::SUCCESS;
57}

◆ finalize() [2/2]

StatusCode test_read::finalize ( )

◆ initialize() [1/2]

StatusCode test_read::initialize ( )

Definition at line 17 of file Analysis/VertexFit/VertexFit-00-02-95/src/test/test_read.cxx.

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

◆ initialize() [2/2]

StatusCode test_read::initialize ( )

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