test_read Class Reference

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

#include <test_read.h>

List of all members.

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 ()

Private Attributes

IMdcTunningSvcm_mdc


Detailed Description

Simple algorithm to test reading vertex database.

Definition at line 9 of file test_read.h.


Constructor & Destructor Documentation

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

Definition at line 8 of file test_read.cxx.

00010   : Algorithm     ( name, pSvcLocator )
00011 {
00012   // Declare properties here.
00013 
00014 }

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


Member Function Documentation

StatusCode test_read::execute (  ) 

StatusCode test_read::execute (  ) 

Definition at line 39 of file test_read.cxx.

References IVertexDbSvc::isVertexValid(), msgSvc(), IVertexDbSvc::PrimaryVertex(), and IVertexDbSvc::SigmaPrimaryVertex().

00039                                {
00040    
00041   MsgStream log(msgSvc(), name());
00042 //  ReadPara* a1 = m_mdc->getReadPara();
00043    IVertexDbSvc*  vtxsvc;
00044   Gaudi::svcLocator()->service("VertexDbSvc", vtxsvc);
00045  //  service("VertexDbSvc", vtxsvc, true);
00046    bool aa = vtxsvc->isVertexValid();
00047   std::cout<<" status: "<< aa <<std::endl;
00048   double* a1 = vtxsvc->PrimaryVertex();
00049   double* a2 = vtxsvc->SigmaPrimaryVertex();
00050   std::cout<<" vx: "<<a1[0]<<" vy: "<<a1[1] <<" vz: " << a1[2] <<std::endl;
00051   std::cout<<" vx sigma: "<<a2[0]<<" vy sigma: "<<a2[1] <<" vz sigma: " << a2[2] <<std::endl;
00052   return StatusCode::SUCCESS;
00053 }

StatusCode test_read::finalize (  ) 

StatusCode test_read::finalize (  ) 

Definition at line 55 of file test_read.cxx.

00055                                {
00056 return StatusCode::SUCCESS;
00057 }

StatusCode test_read::initialize (  ) 

StatusCode test_read::initialize (  ) 

Definition at line 17 of file test_read.cxx.

References Bes_Common::INFO, and msgSvc().

00017                                  {
00018   StatusCode sc;
00019   MsgStream log(msgSvc(), name());
00020   log << MSG::INFO << "Initialize()" << endreq;
00021 
00022   // So far don't have any properties, but in case we do some day..
00023 //  setProperties();
00024 /*sc = service("VertexDbSvc", m_mdc, true);
00025   if ( !sc.isSuccess() ) {
00026     log << MSG::ERROR 
00027         << "Could not get ICalibRootSvc interface of CalibRootCnvSvc" 
00028         << endreq;
00029     return sc;
00030   }
00031 */
00032   // Get properties from the JobOptionsSvc
00033   
00034  return StatusCode::SUCCESS;
00035 
00036 }


Member Data Documentation

IMdcTunningSvc* test_read::m_mdc [private]

Definition at line 21 of file test_read.h.


Generated on Tue Nov 29 23:35:59 2016 for BOSS_7.0.2 by  doxygen 1.4.7