CMS 3D CMS Logo

SiStripRecHitConverterAlgorithm.h
Go to the documentation of this file.
1 #ifndef SiStripRecHitConverterAlgorithm_h
2 #define SiStripRecHitConverterAlgorithm_h
3 
9 
14 
15 namespace edm {
16  class ParameterSet;
17  class EventSetup;
18 }
19 
21 {
22 
23  public:
24 
25  struct products {
26  std::unique_ptr<SiStripMatchedRecHit2DCollection> matched;
27  std::unique_ptr<SiStripRecHit2DCollection> rphi, stereo, rphiUnmatched, stereoUnmatched;
29  : matched(new SiStripMatchedRecHit2DCollection),
30  rphi(new SiStripRecHit2DCollection),
31  stereo(new SiStripRecHit2DCollection),
32  rphiUnmatched(new SiStripRecHit2DCollection),
33  stereoUnmatched(new SiStripRecHit2DCollection) {}
34 
35  void shrink_to_fit() {
36  matched->shrink_to_fit();
37  rphi->shrink_to_fit(); stereo->shrink_to_fit();
38  rphiUnmatched->shrink_to_fit(); stereoUnmatched->shrink_to_fit();
39  }
40  };
41 
43  void initialize(const edm::EventSetup&);
46 
47  private:
48 
49  void match(products& output, LocalVector trackdirection) const;
50  void fillBad128StripBlocks(const uint32_t detid, bool bad128StripBlocks[6]) const;
51  bool isMasked(const SiStripCluster &cluster, bool bad128StripBlocks[6]) const;
52  bool useModule(const uint32_t id) const;
53 
54  bool useQuality, maskBad128StripBlocks;
55  uint32_t tracker_cache_id, cpe_cache_id, quality_cache_id;
56  edm::ESInputTag cpeTag, matcherTag, qualityTag;
61 
63 
64 };
65 
66 #endif
static AlgebraicMatrix initialize()
std::unique_ptr< SiStripMatchedRecHit2DCollection > matched
edm::ESHandle< SiStripRecHitMatcher > matcher
edm::ESHandle< TrackerGeometry > tracker
static std::string const input
Definition: EdmProvDump.cc:44
std::unique_ptr< SiStripRecHit2DCollection > stereoUnmatched
SiStripRecHit2DCollection::FastFiller Collector
HLT enums.
edm::ESHandle< StripClusterParameterEstimator > parameterestimator
std::string match(BranchDescription const &a, BranchDescription const &b, std::string const &fileName)
edm::ESHandle< SiStripQuality > quality