CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FilterScrapingPixelProbability.h
Go to the documentation of this file.
1 //
2 // Package: FilterScrapingPixelProbability
3 // Class: FilterScrapingPixelProbability
4 //
5 // Original Author: Gavril Giurgiu (JHU)
6 //
7 // This filter attempts to separate scraping events from collision
8 // events.
9 //
10 // It loops over all tracks in the event and
11 // counts the number of barel pixel hits which have low probability.
12 // The filter is applied on the fraction of hits with low
13 // probability. The default "low probability" is 0 (less than
14 // 10^{-15}). For this choice of low probability the optimal
15 // cut is somewhere between 0.3 and 0.5. Default is 0.4.
16 //
17 
18 
19 #ifndef FilterScrapingPixelProbability_H
20 #define FilterScrapingPixelProbability_H
21 
22 // system include files
23 #include <memory>
24 #include <vector>
25 #include <map>
26 #include <set>
27 
28 // user include files
39 
42 
44 {
45 public:
48 
49 private:
50  virtual bool filter ( edm::Event &, const edm::EventSetup&) override;
51 
56  double low_probability; // Default is 0 which means less than ~10^{-15}.
57  double low_probability_fraction_cut; // Default is 0.4.
58 
60 };
61 
62 #endif
virtual bool filter(edm::Event &, const edm::EventSetup &) override
FilterScrapingPixelProbability(const edm::ParameterSet &)