DQMOffline
Lumi
interface
ElectronIdentifier.h
Go to the documentation of this file.
1
#ifndef DQMOFFLINE_LUMI_ELECTRONIDENTIFIER_H
2
#define DQMOFFLINE_LUMI_ELECTRONIDENTIFIER_H
3
4
#include "
FWCore/Framework/interface/MakerMacros.h
"
// definitions for declaring plug-in modules
5
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
// declaration of EDM types
6
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
// EDAnalyzer class
7
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
8
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
// Parameters
9
#include "
FWCore/Utilities/interface/InputTag.h
"
10
11
#include <string>
// string class
12
#include <TMath.h>
13
#include <cassert>
14
15
#include "
DataFormats/EgammaCandidates/interface/ElectronFwd.h
"
16
#include "
DataFormats/EgammaReco/interface/SuperClusterFwd.h
"
17
#include "
DataFormats/EgammaCandidates/interface/GsfElectronFwd.h
"
18
#include "
DataFormats/EgammaCandidates/interface/GsfElectron.h
"
19
#include "
DataFormats/EgammaCandidates/interface/ConversionFwd.h
"
20
#include "
DataFormats/EgammaCandidates/interface/Conversion.h
"
21
#include "
DataFormats/EgammaCandidates/interface/GsfElectron.h
"
22
23
#include "
PhysicsTools/SelectorUtils/interface/CutApplicatorBase.h
"
24
25
#include "
CommonTools/Egamma/interface/EffectiveAreas.h
"
26
#include "
DataFormats/BeamSpot/interface/BeamSpot.h
"
27
28
enum
EleIDCutNames
{
29
SIGMAIETA
,
30
DETAINSEED
,
31
DPHIIN
,
32
HOVERE
,
33
ISO
,
34
ONEOVERE
,
35
MISSINGHITS
,
36
CONVERSION
,
37
};
38
enum
EleIDWorkingPoints
{
VETO
,
MEDIUM
,
LOOSE
,
TIGHT
};
39
enum
EleIDEtaBins
{
BARREL
,
ENDCAP
};
40
class
ElectronIdentifier
{
41
public
:
42
ElectronIdentifier
(
const
edm::ParameterSet
&
c
);
43
float
dEtaInSeed
(
const
reco::GsfElectronPtr
& ele);
44
bool
passID
(
const
reco::GsfElectronPtr
& ele,
45
edm::Handle<reco::BeamSpot>
beamspot
,
46
edm::Handle<reco::ConversionCollection>
conversions
);
47
float
isolation
(
const
reco::GsfElectronPtr
& ele);
48
49
void
setID
(
std::string
ID
);
50
void
setRho
(
double
rho
);
51
52
private
:
53
double
rho_
;
54
int
ID_
;
55
std::array<std::array<std::array<double, 2>, 4>, 8>
cuts_
;
56
// Effective area constants
57
EffectiveAreas
_effectiveAreas
;
58
};
59
60
#endif
DDAxes::rho
ENDCAP
Definition:
ElectronIdentifier.h:39
ElectronIdentifier::dEtaInSeed
float dEtaInSeed(const reco::GsfElectronPtr &ele)
Definition:
ElectronIdentifier.cc:126
ElectronIdentifier::ID_
int ID_
Definition:
ElectronIdentifier.h:54
pwdgSkimBPark_cfi.conversions
conversions
Definition:
pwdgSkimBPark_cfi.py:10
DPHIIN
Definition:
ElectronIdentifier.h:31
ElectronIdentifier::rho_
double rho_
Definition:
ElectronIdentifier.h:53
align::ID
uint32_t ID
Definition:
Definitions.h:24
MakerMacros.h
edm::Handle< reco::BeamSpot >
ISO
Definition:
ElectronIdentifier.h:33
Conversion.h
EffectiveAreas.h
ONEOVERE
Definition:
ElectronIdentifier.h:34
CONVERSION
Definition:
ElectronIdentifier.h:36
Frameworkfwd.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
SIGMAIETA
Definition:
ElectronIdentifier.h:29
MEDIUM
Definition:
ElectronIdentifier.h:38
MISSINGHITS
Definition:
ElectronIdentifier.h:35
ParameterSet.h
ElectronIdentifier::_effectiveAreas
EffectiveAreas _effectiveAreas
Definition:
ElectronIdentifier.h:57
ElectronFwd.h
EleIDCutNames
EleIDCutNames
Definition:
ElectronIdentifier.h:28
c
auto & c
Definition:
CAHitNtupletGeneratorKernelsImpl.h:56
SuperClusterFwd.h
ElectronIdentifier
Definition:
ElectronIdentifier.h:40
LOOSE
Definition:
ElectronIdentifier.h:38
ElectronIdentifier::passID
bool passID(const reco::GsfElectronPtr &ele, edm::Handle< reco::BeamSpot > beamspot, edm::Handle< reco::ConversionCollection > conversions)
Definition:
ElectronIdentifier.cc:147
EleIDEtaBins
EleIDEtaBins
Definition:
ElectronIdentifier.h:39
edm::Ptr< reco::GsfElectron >
HOVERE
Definition:
ElectronIdentifier.h:32
TIGHT
Definition:
ElectronIdentifier.h:38
beamspot
Definition:
BeamSpotWrite2Txt.h:8
EDAnalyzer.h
ElectronIdentifier::ElectronIdentifier
ElectronIdentifier(const edm::ParameterSet &c)
Definition:
ElectronIdentifier.cc:18
EleIDWorkingPoints
EleIDWorkingPoints
Definition:
ElectronIdentifier.h:38
GsfElectron.h
GsfElectronFwd.h
ElectronIdentifier::setRho
void setRho(double rho)
Definition:
ElectronIdentifier.cc:105
VETO
Definition:
ElectronIdentifier.h:38
ConversionFwd.h
DETAINSEED
Definition:
ElectronIdentifier.h:30
ElectronIdentifier::setID
void setID(std::string ID)
Definition:
ElectronIdentifier.cc:114
InputTag.h
BeamSpot.h
BARREL
Definition:
ElectronIdentifier.h:39
edm::ParameterSet
Definition:
ParameterSet.h:47
ElectronIdentifier::isolation
float isolation(const reco::GsfElectronPtr &ele)
Definition:
ElectronIdentifier.cc:131
EffectiveAreas
Definition:
EffectiveAreas.h:7
ConsumesCollector.h
CutApplicatorBase.h
ElectronIdentifier::cuts_
std::array< std::array< std::array< double, 2 >, 4 >, 8 > cuts_
Definition:
ElectronIdentifier.h:55
Generated for CMSSW Reference Manual by
1.8.14