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  class EventSetup;
18 }
19 
21 {
22 
23  public:
24 
25  struct products {
26  std::auto_ptr<SiStripMatchedRecHit2DCollection> matched;
27  std::auto_ptr<SiStripRecHit2DCollection> rphi, stereo, rphiUnmatched, stereoUnmatched;
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 
61 
63 
64 };
65 
66 #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:44
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