CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ElectronSelector.h
Go to the documentation of this file.
1 #ifndef PhysicsTools_PatUtils_ElectronSelector_h
2 #define PhysicsTools_PatUtils_ElectronSelector_h
3 
20 #include <string>
21 
25 
27 
28 namespace pat {
29 
32  std::string selectionType;
33 
34  double value;
35 
37 
38  double HoverEBarmax; double HoverEEndmax;
49 
50  };
51 
53 
56 
57  public:
58  ElectronSelector( const ElectronSelection& cfg ) : config_( cfg ) {}
60 
66  const ParticleStatus
67  filter( const unsigned int& index,
69  const ElectronIDmap& electronIDs,
70  const reco::ClusterShape* clusterShape
71  ) const;
72 
73 
74  private:
75 
77 
79  const ParticleStatus
80  customSelection_( const unsigned int& index,
82  const reco::ClusterShape* clusterShape ) const;
83 
87  const reco::ElectronIDRef&
88  electronID_( const unsigned int& index,
90  const ElectronIDmap& electronIDs
91  ) const;
92 
93 
94  }; // class
95 } // namespace
96 
97 #endif
Selects good electrons.
bool doBremEoverPcomp
switch to apply cut on comparison between brem and E/P
ElectronSelector(const ElectronSelection &cfg)
Defines the enumerations of particle type and status.
reco::GsfElectron Electron
reco::ElectronIDAssociationCollection ElectronIDmap
const ParticleStatus customSelection_(const unsigned int &index, const edm::View< Electron > &electrons, const reco::ClusterShape *clusterShape) const
Full-fledged selection based on SusyAnalyser.
std::string selectionType
Choose selection type (see PATElectronCleaner)
const ParticleStatus filter(const unsigned int &index, const edm::View< Electron > &electrons, const ElectronIDmap &electronIDs, const reco::ClusterShape *clusterShape) const
Structure defining the electron selection.
const reco::ElectronIDRef & electronID_(const unsigned int &index, const edm::View< Electron > &electrons, const ElectronIDmap &electronIDs) const
ParticleStatus
Definition of particle status after selection.
Definition: ParticleCode.h:32
ElectronSelection config_
double value
Cut value for likelihood or neural net.