CMS 3D CMS Logo

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 #include <memory>
10 
12 public:
14 
16 
17  bool noShots() { return !shots_; }
18 
22  return false;
23  } //FIXME
24  bool clean(const edm::DetSet<SiStripDigi>& in,
27 
28  bool loop(const edmNew::DetSet<SiStripDigi>& in) { return false; } //FIXME
29  bool loop(const edm::DetSet<SiStripDigi>& in);
30 
32  // void reset(edmNew::DetSet<SiStripDigi>::const_iterator& a, edmNew::DetSet<SiStripDigi>::const_iterator& b){;} //FIXME
33 
34 private:
35  void subtractCM();
36 
38 
39  uint32_t cacheDetId;
40  bool shots_;
41  bool shotApv_[25];
43 
44  std::vector<SiStripDigi> vdigis, apvDigis; //caches of digis, in case an apvshot is found
45  std::unique_ptr<edm::DetSet<SiStripDigi>> pDetSet;
46  unsigned short maxNumOfApvs;
47  unsigned short stripsPerApv;
48  unsigned short stripsForMedian;
49 };
50 
51 #endif
SiStripApvShotCleaner::dumpInVector
void dumpInVector(edm::DetSet< SiStripDigi >::const_iterator *, size_t)
Definition: SiStripApvShotCleaner.cc:83
MessageLogger.h
edm::DetSet< SiStripDigi >
SiStripApvShotCleaner::stripsPerApv
unsigned short stripsPerApv
Definition: SiStripApvShotCleaner.h:47
SiStripApvShotCleaner::apvDigis
std::vector< SiStripDigi > apvDigis
Definition: SiStripApvShotCleaner.h:44
SiStripApvShotCleaner::reset
void reset(edm::DetSet< SiStripDigi >::const_iterator &a, edm::DetSet< SiStripDigi >::const_iterator &b)
Definition: SiStripApvShotCleaner.cc:148
SiStripApvShotCleaner::maxNumOfApvs
unsigned short maxNumOfApvs
Definition: SiStripApvShotCleaner.h:46
SiStripApvShotCleaner::~SiStripApvShotCleaner
~SiStripApvShotCleaner()
Definition: SiStripApvShotCleaner.h:15
SiStripApvShotCleaner::subtractCM
void subtractCM()
Definition: SiStripApvShotCleaner.cc:109
SiStripApvShotCleaner::vdigis
std::vector< SiStripDigi > vdigis
Definition: SiStripApvShotCleaner.h:44
SiStripDigi.h
mps_fire.end
end
Definition: mps_fire.py:242
edmNew::DetSet
Definition: DetSetNew.h:22
SiStripApvShotCleaner::pFirstDigiOfApv
edm::DetSet< SiStripDigi >::const_iterator pFirstDigiOfApv[7]
Definition: SiStripApvShotCleaner.h:42
SiStripApvShotCleaner::pDetSet
std::unique_ptr< edm::DetSet< SiStripDigi > > pDetSet
Definition: SiStripApvShotCleaner.h:45
b
double b
Definition: hdecay.h:118
SiStripApvShotCleaner::stripsForMedian
unsigned short stripsForMedian
Definition: SiStripApvShotCleaner.h:48
SiStripApvShotCleaner
Definition: SiStripApvShotCleaner.h:11
SiStripApvShotCleaner::shotApv_
bool shotApv_[25]
Definition: SiStripApvShotCleaner.h:41
a
double a
Definition: hdecay.h:119
SiStripApvShotCleaner::shots_
bool shots_
Definition: SiStripApvShotCleaner.h:40
recoMuon::in
Definition: RecoMuonEnumerators.h:6
SiStripApvShotCleaner::noShots
bool noShots()
Definition: SiStripApvShotCleaner.h:17
DetSetVector.h
SiStripApvShotCleaner::loop
bool loop(const edmNew::DetSet< SiStripDigi > &in)
Definition: SiStripApvShotCleaner.h:28
SiStripApvShotCleaner::clean
bool clean(const edmNew::DetSet< SiStripDigi > &in, edmNew::DetSet< SiStripDigi >::const_iterator &scan, edmNew::DetSet< SiStripDigi >::const_iterator &end)
Definition: SiStripApvShotCleaner.h:19
SiStripApvShotCleaner::cacheDetId
uint32_t cacheDetId
Definition: SiStripApvShotCleaner.h:39
SiStripApvShotCleaner::SiStripApvShotCleaner
SiStripApvShotCleaner()
Definition: SiStripApvShotCleaner.cc:8
DetSetVectorNew.h
edmNew::DetSet::const_iterator
const data_type * const_iterator
Definition: DetSetNew.h:31
edm::DetSet::const_iterator
collection_type::const_iterator const_iterator
Definition: DetSet.h:31