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"
10#include "VertexFit/IVertexDbSvc.h"
14#include "DatabaseSvc/IDatabaseSvc.h"
15#include "GaudiKernel/IService.h"
18#include "CLHEP/Matrix/Vector.h"
19#include "DatabaseSvc/IDatabaseSvc.h"
20using CLHEP::HepVector;
23#include "DatabaseSvc/DatabaseSvc.h"
28 virtual public IIncidentListener{
33 virtual StatusCode
queryInterface(
const InterfaceID& riid,
void** ppvUnknown);
38 void handle(
const Incident&);
51 return (m_vdb) ? m_vdb : (m_vdb =
new VertexDbSvc());
54 const DatabaseSvc* GetDatabaseSvc()
const {
return m_dbsvc;}
56 void SetDbName(
const std::string& _dbName) {dbName = _dbName;}
57 std::string GetDbName()
const {
return dbName;}
58 void SetBossVer(
const std::string& _bossver) {m_bossver = _bossver;}
59 std::string GetBossVer()
const {
return m_bossver;}
60 void SetBossRelease(
const std::string& _bossrelease)
61 {m_bossRelease = _bossrelease;}
62 std::string GetBossRelease()
const {
return m_bossRelease;}
63 void SetVerPar(
const std::string& _verpar) {m_verpar = _verpar;}
64 std::string GetVerPar()
const {
return m_verpar;}
78 std::string m_bossver;
80 std::string m_bossRelease;
81 double m_primaryVertex[3];
82 double m_sigmaPrimaryVertex[3];
83 bool m_isRunNumberValid;
89 std::map<int, std::vector<double> > m_mapPrimaryVertex;
96 unsigned int serialNo;
105 IDataProviderSvc* m_eventSvc;
108 StatusCode getVertexTableInfo();
114 void getVertexTableInfo(
int run);
117 bool getReadBunchInfo(
int run);
118 bool getReadBunchInfo(
int runFrom,
int runTo);
VertexDbSvc(const std::string &name, ISvcLocator *svcloc)
void handle(const Incident &)
virtual StatusCode initialize()
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvUnknown)
double * SigmaPrimaryVertex()
virtual StatusCode finalize()