CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  template<typename T> class RefGetter;
18  class EventSetup;
19 }
20 
22 {
23 
24  public:
25 
26  struct products {
27  std::auto_ptr<SiStripMatchedRecHit2DCollection> matched;
28  std::auto_ptr<SiStripRecHit2DCollection> rphi, stereo, rphiUnmatched, stereoUnmatched;
35 
36  void shrink_to_fit() {
37  matched->shrink_to_fit();
38  rphi->shrink_to_fit(); stereo->shrink_to_fit();
39  rphiUnmatched->shrink_to_fit(); stereoUnmatched->shrink_to_fit();
40  }
41  };
42 
44  void initialize(const edm::EventSetup&);
47 
48  private:
49 
50  void match(products& output, LocalVector trackdirection) const;
51  void fillBad128StripBlocks(const uint32_t detid, bool bad128StripBlocks[6]) const;
52  bool isMasked(const SiStripCluster &cluster, bool bad128StripBlocks[6]) const;
53  bool useModule(const uint32_t id) const;
54 
62 
64 
65 };
66 
67 #endif
void run(edm::Handle< edmNew::DetSetVector< SiStripCluster > > input, products &output)
std::auto_ptr< SiStripRecHit2DCollection > rphiUnmatched
edm::ESHandle< SiStripRecHitMatcher > matcher
edm::ESHandle< TrackerGeometry > tracker
SiStripRecHitConverterAlgorithm(const edm::ParameterSet &)
void fillBad128StripBlocks(const uint32_t detid, bool bad128StripBlocks[6]) const
static std::string const input
Definition: EdmProvDump.cc:43
ESProducts< T, S > products(const T &i1, const S &i2)
Definition: ESProducts.h:189
void match(products &output, LocalVector trackdirection) const
std::auto_ptr< SiStripRecHit2DCollection > stereoUnmatched
std::auto_ptr< SiStripRecHit2DCollection > rphi
SiStripRecHit2DCollection::FastFiller Collector
edm::ESHandle< StripClusterParameterEstimator > parameterestimator
std::auto_ptr< SiStripMatchedRecHit2DCollection > matched
std::auto_ptr< SiStripRecHit2DCollection > stereo
bool isMasked(const SiStripCluster &cluster, bool bad128StripBlocks[6]) const
edm::ESHandle< SiStripQuality > quality