test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripApvShotCleaner.h
Go to the documentation of this file.
1 #ifndef RecoLocalTracker_SiStripClusterizer_SiStripApvShotCleaner_H
2 #define RecoLocalTracker_SiStripClusterizer_SiStripApvShotCleaner_H
3 
8 #include <vector>
9 
10 
12 
13  public:
15 
17 
18  bool noShots(){return !shots_;}
19 
22 
23  bool loop(const edmNew::DetSet<SiStripDigi>& in){return false;} //FIXME
24  bool loop(const edm::DetSet<SiStripDigi>& in);
25 
26  void refresh();
27 
29  // void reset(edmNew::DetSet<SiStripDigi>::const_iterator& a, edmNew::DetSet<SiStripDigi>::const_iterator& b){;} //FIXME
30 
31  private:
32 
34  bool operator ()(SiStripDigi const& a, SiStripDigi const& b) {return a.adc() > b.adc();}
35  };
36 
37  void subtractCM();
38 
40 
41  uint32_t cacheDetId;
42  bool shots_;
43  bool shotApv_[25];
45 
46  std::vector<SiStripDigi> vdigis,apvDigis; //caches of digis, in case an apvshot is found
48  unsigned short maxNumOfApvs ;
49  unsigned short stripsPerApv ;
50  unsigned short stripsForMedian;
51 
52 
53 };
54 
55 #endif
edm::DetSet< SiStripDigi >::const_iterator pFirstDigiOfApv[7]
edm::DetSet< SiStripDigi > * pDetSet
void dumpInVector(edm::DetSet< SiStripDigi >::const_iterator *, size_t)
data_type const * const_iterator
Definition: DetSetNew.h:30
std::vector< SiStripDigi > vdigis
void reset(edm::DetSet< SiStripDigi >::const_iterator &a, edm::DetSet< SiStripDigi >::const_iterator &b)
#define end
Definition: vmac.h:37
A Digi for the silicon strip detector, containing both strip and adc information, and suitable for st...
Definition: SiStripDigi.h:12
bool loop(const edmNew::DetSet< SiStripDigi > &in)
double b
Definition: hdecay.h:120
std::vector< SiStripDigi > apvDigis
double a
Definition: hdecay.h:121
bool clean(const edmNew::DetSet< SiStripDigi > &in, edmNew::DetSet< SiStripDigi >::const_iterator &scan, edmNew::DetSet< SiStripDigi >::const_iterator &end)
collection_type::const_iterator const_iterator
Definition: DetSet.h:33
const uint16_t & adc() const
Definition: SiStripDigi.h:41
bool operator()(SiStripDigi const &a, SiStripDigi const &b)