CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HitExtractorSTRP.h
Go to the documentation of this file.
1 #ifndef RecoTracker_TkSeedingLayers_HitExtractorSTRP_H
2 #define RecoTracker_TkSeedingLayers_HitExtractorSTRP_H
3 
6 #include "HitExtractor.h"
7 
9 
10 #include <vector>
11 class DetLayer;
12 
13 
14 namespace ctfseeding {
15 
17 
18 public:
20 
21  HitExtractorSTRP( const DetLayer* detLayer, SeedingLayer::Side & side, int idLayer);
22  virtual ~HitExtractorSTRP(){}
23 
24  virtual HitExtractor::Hits hits( const SeedingLayer & sl, const edm::Event& , const edm::EventSetup& ) const;
25  virtual HitExtractorSTRP * clone() const { return new HitExtractorSTRP(*this); }
26 
28  void useRPhiHits( const edm::InputTag & m) { hasRPhiHits = true; theRPhiHits = m; }
29  void useStereoHits( const edm::InputTag & m) { hasStereoHits = true; theStereoHits = m; }
30  void useRingSelector(int minRing, int maxRing);
32 
33  void cleanedOfClusters( const edm::Event& ev, HitExtractor::Hits & hits, bool matched) const;
36  bool skipThis(const SiStripRecHit2D * hit,edm::Handle<edmNew::DetSetVector<SiStripClusterRef> > & stripClusterRefs) const;
38  const SiStripRecHit2D * hit,
40  void setNoProjection() const {failProjection=true;};
41 private:
42  bool ringRange(int ring) const;
43 private:
44  const DetLayer * theLayer;
46  mutable const SeedingLayer * theSLayer;
53  mutable bool failProjection;
54 };
55 
56 }
57 #endif
HitExtractorSTRP(const DetLayer *detLayer, SeedingLayer::Side &side, int idLayer)
void useMatchedHits(const edm::InputTag &m)
bool ringRange(int ring) const
void cleanedOfClusters(const edm::Event &ev, HitExtractor::Hits &hits, bool matched) const
void useRPhiHits(const edm::InputTag &m)
virtual HitExtractor::Hits hits(const SeedingLayer &sl, const edm::Event &, const edm::EventSetup &) const
bool skipThis(TransientTrackingRecHit::ConstRecHitPointer &ptr, edm::Handle< edmNew::DetSetVector< SiStripClusterRef > > &stripClusterRefs, TransientTrackingRecHit::ConstRecHitPointer &replaceMe) const
const SeedingLayer * theSLayer
void useRingSelector(int minRing, int maxRing)
virtual HitExtractorSTRP * clone() const
void useSimpleRphiHitsCleaner(bool use)
void project(TransientTrackingRecHit::ConstRecHitPointer &ptr, const SiStripRecHit2D *hit, TransientTrackingRecHit::ConstRecHitPointer &replaceMe) const
SiStripRecHit2D::ClusterRef SiStripClusterRef
void useStereoHits(const edm::InputTag &m)
std::vector< TransientTrackingRecHit::ConstRecHitPointer > Hits
Definition: HitExtractor.h:16