CMS 3D CMS Logo

ME0SegmentAlgorithmBase.h
Go to the documentation of this file.
1 #ifndef GEMRecHit_ME0SegmentAlgorithmBase_h
2 #define GEMRecHit_ME0SegmentAlgorithmBase_h
3 
20 #include <map>
21 #include <vector>
22 
24 public:
25 
26  struct HitAndPosition {
27  HitAndPosition (const ME0RecHit * rh, const LocalPoint& lp, const GlobalPoint& gp, unsigned int idx ) :
28  rh(rh),lp(lp),gp(gp), layer(rh->me0Id().layer()), idx(idx){}
29  const ME0RecHit * rh;
32  unsigned int layer;
33  unsigned int idx;
34  };
35 
36  typedef std::vector<HitAndPosition> HitAndPositionContainer;
37  typedef std::vector<const HitAndPosition*> HitAndPositionPtrContainer;
38 
43 
46  virtual std::vector<ME0Segment> run(const ME0Chamber * chamber, const HitAndPositionContainer& rechits ) = 0;
47 
48  private:
49 };
50 #endif
virtual std::vector< ME0Segment > run(const ME0Chamber *chamber, const HitAndPositionContainer &rechits)=0
virtual ~ME0SegmentAlgorithmBase()
Destructor.
std::vector< HitAndPosition > HitAndPositionContainer
std::vector< const HitAndPosition * > HitAndPositionPtrContainer
HitAndPosition(const ME0RecHit *rh, const LocalPoint &lp, const GlobalPoint &gp, unsigned int idx)
ME0SegmentAlgorithmBase(const edm::ParameterSet &)
Constructor.