1 #ifndef Fireworks_Core_FWGeometry_h
2 #define Fireworks_Core_FWGeometry_h
15 #include "TEveVSDStructs.h"
16 #include "TGeoMatrix.h"
51 const TGeoMatrix*
getMatrix(
unsigned int id )
const;
56 TGeoShape*
getShape(
unsigned int id )
const;
68 const float*
getCorners(
unsigned int id )
const;
73 void localToGlobal(
unsigned int id,
const float* local,
float* global,
bool translatep=
true )
const;
74 void localToGlobal(
unsigned int id,
const float* local1,
float* global1,
const float* local2,
float* global2,
bool translatep=
true )
const;
86 return ( this->
id <
id );
91 unsigned int id = o.
id;
95 typedef std::vector<FWGeometry::GeomDetInfo>
IdToInfo;
96 typedef std::vector<FWGeometry::GeomDetInfo>::const_iterator
IdToInfoItr;
104 void localToGlobal(
const GeomDetInfo&
info,
const float* local,
float* global,
bool translatep=
true )
const;
static TFile * findFile(const char *fileName)
void initMap(const FWRecoGeom::InfoMap &map)
IdToInfoItr find(unsigned int) const
const float * getParameters(unsigned int id) const
bool match_id(const GeomDetInfo &o, unsigned int mask) const
TGeoShape * getShape(unsigned int id) const
const TGeoMatrix * getMatrix(unsigned int id) const
std::map< unsigned int, TGeoMatrix * > m_idToMatrix
const float * getShapePars(unsigned int id) const
bool operator<(unsigned int id) const
TEveGeoShape * getEveShape(unsigned int id) const
void loadMap(const char *fileName)
void localToGlobal(unsigned int id, const float *local, float *global, bool translatep=true) const
bool contains(unsigned int id) const
std::vector< FWRecoGeom::Info > InfoMap
static const int kSubdetOffset
const float * getCorners(unsigned int id) const
std::vector< unsigned int > getMatchedIds(Detector det, SubDetector subdet) const
std::vector< FWGeometry::GeomDetInfo > IdToInfo
static const int kDetOffset
std::vector< FWGeometry::GeomDetInfo >::const_iterator IdToInfoItr