1#include "GaudiKernel/Kernel.h"
2#include "GaudiKernel/IInterface.h"
3#include "GaudiKernel/StatusCode.h"
6#include "GaudiKernel/MsgStream.h"
7#include "GaudiKernel/PropertyMgr.h"
9#include "EmcRecGeoSvc/EmcRecGeoSvc.h"
10#include "EmcRecGeoSvc/EmcRecROOTGeo.h"
20 declareProperty(
"Gdml",fGdml);
30 if(fROOTGeo)
delete fROOTGeo;
36 if ( IID_IEmcRecGeoSvc.versionMatch(riid) ) {
39 return Service::queryInterface(riid, ppvInterface) ;
41 return StatusCode::SUCCESS;
45 MsgStream log(messageService(), name());
46 log << MSG::INFO << name() <<
": Start of run initialisation" << endreq;
48 StatusCode sc = Service::initialize();
49 if ( sc.isFailure() )
return sc;
55 return StatusCode::SUCCESS;
60 MsgStream log(messageService(), name());
61 log << MSG::INFO << name() <<
": End of Run" << endreq;
62 return StatusCode::SUCCESS;
124 return frontCenter/cm;
static bool is_barrel(const Identifier &id)
Test for barrel.
double GetBarrelOffset2() const
EmcRecCrystal GetCrystal(const Identifier &id) const
int GetBarrelNPhiMax() const
double GetBarrelh3() const
double GetBarrelh1() const
double GetBarrelR() const
int GetBarrelNThetaMax() const
double GetBarrelOffset1() const
double GetBarrelh2() const
double GetBarrelL() const
HepPoint3D GetCFrontCenter(const Identifier &id) const
HepPoint3D GetCCenter(const Identifier &id) const
HepPoint3D Get(int index) const
EmcRecCrystal GetCrystal(const Identifier &id) const
HepPoint3D GetCCenter(const Identifier &id) const
HepPoint3D GetCFrontCenter(const Identifier &id) const
virtual double GetBarrelL() const
virtual HepPoint3D GetCrystalPoint(const Identifier &id, const int i) const
virtual int GetBarrelNPhiMax() const
virtual double GetBarrelR() const
virtual HepPoint3D GetCFrontCenter(const Identifier &id) const
EmcRecGeoSvc(const std::string &name, ISvcLocator *svcloc)
virtual EmcRecCrystal GetCrystal(const Identifier &id) const
virtual StatusCode initialize()
virtual StatusCode finalize()
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvUnknown)
virtual double GetBarrelh2() const
virtual double GetBarrelOffset1() const
virtual HepPoint3D GetCCenter(const Identifier &id) const
virtual double GetBarrelOffset2() const
virtual int GetBarrelNThetaMax() const
virtual double GetBarrelh1() const
virtual double GetBarrelh3() const
EmcRecCrystal GetCrystal(const Identifier &id) const
HepPoint3D GetCFrontCenter(const Identifier &id) const
HepPoint3D GetCCenter(const Identifier &id) const