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;
30 virtual public IIncidentListener{
32 VertexDbSvc(
const std::string& name, ISvcLocator* svcloc );
40 void handle(
const Incident&);
53 return (m_vdb) ? m_vdb : (m_vdb =
new VertexDbSvc());
56 const DatabaseSvc* GetDatabaseSvc()
const {
return m_dbsvc;}
58 void SetDbName(
const std::string& _dbName) {dbName = _dbName;}
59 std::string GetDbName()
const {
return dbName;}
60 void SetBossVer(
const std::string& _bossver) {m_bossver = _bossver;}
61 std::string GetBossVer()
const {
return m_bossver;}
62 void SetBossRelease(
const std::string& _bossrelease)
63 {m_bossRelease = _bossrelease;}
64 std::string GetBossRelease()
const {
return m_bossRelease;}
65 void SetVerPar(
const std::string& _verpar) {m_verpar = _verpar;}
66 std::string GetVerPar()
const {
return m_verpar;}
80 std::string m_bossver;
82 std::string m_bossRelease;
83 double m_primaryVertex[3];
84 double m_sigmaPrimaryVertex[3];
85 bool m_isRunNumberValid;
91 std::map<int, std::vector<double> > m_mapPrimaryVertex;
98 unsigned int serialNo;
107 IDataProviderSvc* m_eventSvc;
110 StatusCode getVertexTableInfo();
116 void getVertexTableInfo(
int run);
119 bool getReadBunchInfo(
int run);
120 bool getReadBunchInfo(
int runFrom,
int runTo);
void handle(const Incident &)
virtual StatusCode initialize()
double * SigmaPrimaryVertex()
virtual StatusCode finalize()