BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
EmcRecROOTGeo.h
Go to the documentation of this file.
1//
2// EmcRecROOTGeo
3//
4// May 15, 2007, Created by Miao He
5//
6// Construct ROOT geometry from gdml
7//
8#ifndef EMC_REC_ROOT_GEO_H
9#define EMC_REC_ROOT_GEO_H
10
11#include <map>
13#include "Identifier/EmcID.h"
14#include "CLHEP/Geometry/Point3D.h"
15#ifndef ENABLE_BACKWARDS_COMPATIBILITY
17#endif
18using namespace CLHEP;
19class EmcRecCrystal;
20
22{
23 public:
24 // Constructors and destructors
27
28 public:
29 void InitFromXML();
30 void FillCrystalMap(EmcRecCrystal&, const int, const int, const int);
31 EmcRecCrystal GetCrystal(const Identifier& id) const;
32 HepPoint3D GetCCenter(const Identifier& id) const;
33 HepPoint3D GetCFrontCenter(const Identifier& id) const;
34 void ComputeThetaPhi(const int part, const int theta, const int phi,
35 int& newTheta, int& newPhi);
36
37 private:
38 std::map<Identifier, EmcRecCrystal> m_crystalMap;
39
40};
41
42#endif
HepGeom::Point3D< double > HepPoint3D
Definition: EmcRecROOTGeo.h:16
void ComputeThetaPhi(const int part, const int theta, const int phi, int &newTheta, int &newPhi)
void FillCrystalMap(EmcRecCrystal &, const int, const int, const int)
EmcRecCrystal GetCrystal(const Identifier &id) const
HepPoint3D GetCFrontCenter(const Identifier &id) const
HepPoint3D GetCCenter(const Identifier &id) const