BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Emc/EmcRecGeoSvc/include/EmcRecGeoSvc/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 "CLHEP/Geometry/Point3D.h"
12#include "Identifier/EmcID.h"
13#include "Identifier/Identifier.h"
14#include <map>
15#ifndef ENABLE_BACKWARDS_COMPATIBILITY
16typedef HepGeom::Point3D<double> HepPoint3D;
17#endif
18using namespace CLHEP;
19class EmcRecCrystal;
20
22public:
23 // Constructors and destructors
26
27public:
28 void InitFromXML();
29 void FillCrystalMap( EmcRecCrystal&, const int, const int, const int );
30 EmcRecCrystal GetCrystal( const Identifier& id ) const;
31 HepPoint3D GetCCenter( const Identifier& id ) const;
32 HepPoint3D GetCFrontCenter( const Identifier& id ) const;
33 void ComputeThetaPhi( const int part, const int theta, const int phi, int& newTheta,
34 int& newPhi );
35
36private:
37 std::map<Identifier, EmcRecCrystal> m_crystalMap;
38};
39
40#endif
HepGeom::Point3D< double > HepPoint3D
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