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  struct HitAndPosition {
26  HitAndPosition(const ME0RecHit* rh, const LocalPoint& lp, const GlobalPoint& gp, unsigned int idx)
27  : rh(rh), lp(lp), gp(gp), layer(rh->me0Id().layer()), idx(idx) {}
28  const ME0RecHit* rh;
31  unsigned int layer;
32  unsigned int idx;
33  };
34 
35  typedef std::vector<HitAndPosition> HitAndPositionContainer;
36  typedef std::vector<const HitAndPosition*> HitAndPositionPtrContainer;
37 
42 
45  virtual std::vector<ME0Segment> run(const ME0Chamber* chamber, const HitAndPositionContainer& rechits) = 0;
46 
47 private:
48 };
49 #endif
ME0RecHitCollection.h
ME0SegmentAlgorithmBase::HitAndPositionContainer
std::vector< HitAndPosition > HitAndPositionContainer
Definition: ME0SegmentAlgorithmBase.h:35
ME0SegmentAlgorithmBase
Definition: ME0SegmentAlgorithmBase.h:23
ME0SegmentAlgorithmBase::run
virtual std::vector< ME0Segment > run(const ME0Chamber *chamber, const HitAndPositionContainer &rechits)=0
ME0SegmentAlgorithmBase::HitAndPosition::gp
GlobalPoint gp
Definition: ME0SegmentAlgorithmBase.h:30
ME0SegmentAlgorithmBase::HitAndPositionPtrContainer
std::vector< const HitAndPosition * > HitAndPositionPtrContainer
Definition: ME0SegmentAlgorithmBase.h:36
ME0SegmentAlgorithmBase::HitAndPosition::lp
LocalPoint lp
Definition: ME0SegmentAlgorithmBase.h:29
HI_PhotonSkim_cff.rechits
rechits
Definition: HI_PhotonSkim_cff.py:76
Point3DBase< float, LocalTag >
ME0SegmentAlgorithmBase::HitAndPosition::HitAndPosition
HitAndPosition(const ME0RecHit *rh, const LocalPoint &lp, const GlobalPoint &gp, unsigned int idx)
Definition: ME0SegmentAlgorithmBase.h:26
ME0SegmentAlgorithmBase::HitAndPosition::rh
const ME0RecHit * rh
Definition: ME0SegmentAlgorithmBase.h:28
edm::ParameterSet
Definition: ParameterSet.h:47
ME0Chamber
Definition: ME0Chamber.h:10
ME0Segment.h
ME0SegmentAlgorithmBase::~ME0SegmentAlgorithmBase
virtual ~ME0SegmentAlgorithmBase()
Destructor.
Definition: ME0SegmentAlgorithmBase.h:41
ME0RecHit
Definition: ME0RecHit.h:16
Frameworkfwd.h
ME0EtaPartition.h
relativeConstraints.chamber
chamber
Definition: relativeConstraints.py:53
ME0SegmentAlgorithmBase::HitAndPosition::idx
unsigned int idx
Definition: ME0SegmentAlgorithmBase.h:32
ME0Chamber.h
ME0SegmentAlgorithmBase::ME0SegmentAlgorithmBase
ME0SegmentAlgorithmBase(const edm::ParameterSet &)
Constructor.
Definition: ME0SegmentAlgorithmBase.h:39
ME0SegmentAlgorithmBase::HitAndPosition
Definition: ME0SegmentAlgorithmBase.h:25
ME0SegmentAlgorithmBase::HitAndPosition::layer
unsigned int layer
Definition: ME0SegmentAlgorithmBase.h:31