BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
EmcRecGeoSvc.h
Go to the documentation of this file.
1//
2// Bes Emc barrel part and endcap Geometry service
3//
4// Created by Zhe Wang, May, 29 2004
5//
6
7#ifndef EMC_REC_GEO_SVC_H
8#define EMC_REC_GEO_SVC_H
9
10#include "GaudiKernel/Service.h"
11
13
15#include "Identifier/EmcID.h"
16
17#include "CLHEP/Geometry/Point3D.h"
18#ifndef ENABLE_BACKWARDS_COMPATIBILITY
20#endif
24using namespace CLHEP;
25
26class EmcRecROOTGeo;
27
28class EmcRecGeoSvc:public extends<Service, IEmcRecGeoSvc>
29{
30 public:
31 EmcRecGeoSvc(const std::string& name, ISvcLocator* svcloc);
33
34 // virtual StatusCode queryInterface(const InterfaceID& riid, void** ppvUnknown);
35 virtual StatusCode initialize ( );
36 virtual StatusCode finalize ( );
37
38 //access for geometry
39 virtual EmcRecCrystal GetCrystal(const Identifier& id) const;
40 virtual HepPoint3D GetCrystalPoint(const Identifier& id, const int i) const;
41 virtual HepPoint3D GetCCenter(const Identifier& id) const;
42 virtual HepPoint3D GetCFrontCenter(const Identifier& id) const;
43
44 virtual double GetBarrelR() const;
45 virtual double GetBarrelOffset1() const;
46 virtual double GetBarrelOffset2() const;
47 virtual double GetBarrelh1() const;
48 virtual double GetBarrelh2() const;
49 virtual double GetBarrelh3() const;
50 virtual double GetBarrelL() const;
51 virtual int GetBarrelNPhiMax() const;
52 virtual int GetBarrelNThetaMax() const;
53
54 private:
55 EmcRecBarrelGeo fBarrel;
56 EmcRecEndCapGeo fEndCap;
57 EmcRecROOTGeo *fROOTGeo;
58
59 private:
60 bool fGdml; //use gdml or code
61};
62
63#endif //EMC_REC_GEO_SVC_H
64
HepGeom::Point3D< double > HepPoint3D
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 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