5#include "GaudiKernel/IInterface.h"
6#include "GaudiKernel/Kernel.h"
7#include "GaudiKernel/Service.h"
8#include "GaudiKernel/IIncidentListener.h"
9#include "GaudiKernel/IDataProviderSvc.h"
15#include "GaudiKernel/IService.h"
18#include "CLHEP/Matrix/Vector.h"
20using CLHEP::HepVector;
28 virtual public IIncidentListener{
30 VertexDbSvc(
const std::string& name, ISvcLocator* svcloc );
33 virtual StatusCode
queryInterface(
const InterfaceID& riid,
void** ppvUnknown);
38 void handle(
const Incident&);
50 return (m_vdb) ? m_vdb : (m_vdb =
new VertexDbSvc());
53 const DatabaseSvc* GetDatabaseSvc()
const {
return m_dbsvc;}
55 void SetDbName(
const std::string& _dbName) {dbName = _dbName;}
56 std::string GetDbName()
const {
return dbName;}
57 void SetBossVer(
const std::string& _bossver) {m_bossver = _bossver;}
58 std::string GetBossVer()
const {
return m_bossver;}
59 void SetBossRelease(
const std::string& _bossrelease)
60 {m_bossRelease = _bossrelease;}
61 std::string GetBossRelease()
const {
return m_bossRelease;}
62 void SetVerPar(
const std::string& _verpar) {m_verpar = _verpar;}
63 std::string GetVerPar()
const {
return m_verpar;}
76 std::string m_bossver;
78 std::string m_bossRelease;
79 double m_primaryVertex[3];
80 double m_sigmaPrimaryVertex[3];
81 bool m_isRunNumberValid;
88 unsigned int serialNo;
97 IDataProviderSvc* m_eventSvc;
100 StatusCode getVertexTableInfo();
106 void getVertexTableInfo(
int run);
109 bool getReadBunchInfo(
int run);
void handle(const Incident &)
virtual StatusCode initialize()
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvUnknown)
double * SigmaPrimaryVertex()
virtual StatusCode finalize()