BOSS 8.0.0
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
12#include "EmcRecGeoSvc/IEmcRecGeoSvc.h"
13
14#include "Identifier/EmcID.h"
15#include "Identifier/Identifier.h"
16
17#include "CLHEP/Geometry/Point3D.h"
18#ifndef ENABLE_BACKWARDS_COMPATIBILITY
19typedef HepGeom::Point3D<double> HepPoint3D;
20#endif
21#include "EmcRecGeoSvc/EmcRecBarrelGeo.h"
22#include "EmcRecGeoSvc/EmcRecCrystal.h"
23#include "EmcRecGeoSvc/EmcRecEndCapGeo.h"
24using namespace CLHEP;
25
26class EmcRecROOTGeo;
27
28class EmcRecGeoSvc : public extends<Service, IEmcRecGeoSvc> {
29public:
30 EmcRecGeoSvc( const std::string& name, ISvcLocator* svcloc );
32
33 // virtual StatusCode queryInterface(const InterfaceID& riid, void** ppvUnknown);
34 virtual StatusCode initialize();
35 virtual StatusCode finalize();
36
37 // access for geometry
38 virtual EmcRecCrystal GetCrystal( const Identifier& id ) const;
39 virtual HepPoint3D GetCrystalPoint( const Identifier& id, const int i ) const;
40 virtual HepPoint3D GetCCenter( const Identifier& id ) const;
41 virtual HepPoint3D GetCFrontCenter( const Identifier& id ) const;
42
43 virtual double GetBarrelR() const;
44 virtual double GetBarrelOffset1() const;
45 virtual double GetBarrelOffset2() const;
46 virtual double GetBarrelh1() const;
47 virtual double GetBarrelh2() const;
48 virtual double GetBarrelh3() const;
49 virtual double GetBarrelL() const;
50 virtual int GetBarrelNPhiMax() const;
51 virtual int GetBarrelNThetaMax() const;
52
53private:
54 EmcRecBarrelGeo fBarrel;
55 EmcRecEndCapGeo fEndCap;
56 EmcRecROOTGeo* fROOTGeo;
57
58private:
59 bool fGdml; // use gdml or code
60};
61
62#endif // EMC_REC_GEO_SVC_H
HepGeom::Point3D< double > HepPoint3D
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