StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEEmcPointMap.h
1 
12 #ifndef _ST_EEMC_POINT_MAP_
13 #define _ST_EEMC_POINT_MAP_
14 
15 #include <set>
16 #include <Rtypes.h>
17 #include "StEEmcStripEndPointData.h"
18 #include "StRoot/StEEmcUtil/EEmcGeom/EEmcGeomSimple.h"
19 #include "StRoot/StEEmcUtil/EEmcGeom/EEmcGeomDefs.h"
20 
21 // The class
23  public:
24  // constructor
25  StEEmcPointMap_t( Bool_t crossSectorBoundaries = 1 );
26 
27  // deconstructor
28  ~StEEmcPointMap_t() { /* */ };
29 
30  static void getStripEndPoints( Float_t stripGeoId, Float_t& x1, Float_t& y1, Float_t& x2, Float_t& y2 );
31  static void getStripLineParam( Float_t stripGeoId, Float_t& a, Float_t& b );
32  static void convertStripUVtoXY( Short_t sector, Float_t u, Float_t v, Float_t& x, Float_t& y );
33 
34  Float_t getStripDCA( Float_t x, Float_t y, Short_t stripGeoId ) const;
35  Float_t getTowerDCA( Float_t x, Float_t y, Short_t towerGeoId ) const;
36 
37  Short_t getStripsNearestPoint( Float_t x, Float_t y, Float_t r = 10 ) const;
38  void getStripsNearPoint( Float_t x, Float_t y, Float_t r, std::set< Short_t >& stripSet ) const;
39 
40  static Short_t getTowerNearestPoint( Float_t x, Float_t y );
41  static void getTowersNearPoint( Float_t x, Float_t y, Float_t r, std::set< Short_t >& towerSet );
42 
43  Short_t getSectorOfPoint( Float_t x, Float_t y );
44 
45  static StEEmcPointMap_t& instance();
46 
47  protected:
48  Bool_t mCrossSectorBoundaries;
49  static const StEEmcStripEndPointDataVec_t mStripDataVec;
50 
51  void addSmdContribution( Float_t x, Float_t y, Float_t r, Short_t sector, Char_t layer, Short_t sectorSide, std::set< Short_t >& stripSet ) const;
52  static void loadData();
53 
54  private:
55  ClassDef(StEEmcPointMap_t,1);
56 };
57 
58 #endif
59 
60 /*
61  * $Id: StEEmcPointMap.h,v 1.1 2012/08/29 15:44:17 sgliske Exp $
62  * $Log: StEEmcPointMap.h,v $
63  * Revision 1.1 2012/08/29 15:44:17 sgliske
64  * Moved from offline/users/sgliske/StRoot/StEEmcPool
65  *
66  *
67  */
68