Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

test_read Class Reference

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

#include <test_read.h>

List of all members.

Public Member Functions

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

Private Attributes

IMdcTunningSvcm_mdc


Detailed Description

Simple algorithm to test reading vertex database.


Constructor & Destructor Documentation

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

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  ) 
 

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  ) 
 

00055                                {
00056 return StatusCode::SUCCESS;
00057 }

StatusCode test_read::initialize  ) 
 

StatusCode test_read::initialize  ) 
 

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]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 18:52:07 2011 for BOSS6.5.5 by  doxygen 1.3.9.1