Main Page
Namespaces
Classes
Package Documentation
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 "
RecoEgamma/EgammaTools/interface/EffectiveAreas.h
"
26
#include <
DataFormats/BeamSpot/interface/BeamSpot.h
>
27
enum
EleIDCutNames
{
28
SIGMAIETA
,
29
DETAINSEED
,
30
DPHIIN
,
31
HOVERE
,
32
ISO
,
33
ONEOVERE
,
34
MISSINGHITS
,
35
CONVERSION
,
36
};
37
enum
EleIDWorkingPoints
{
38
VETO
,
39
MEDIUM
,
40
LOOSE
,
41
TIGHT
42
};
43
enum
EleIDEtaBins
{
44
BARREL
,
45
ENDCAP
46
};
47
class
ElectronIdentifier
{
48
public
:
49
ElectronIdentifier
(
const
edm::ParameterSet
&
c
);
50
float
dEtaInSeed
(
const
reco::GsfElectronPtr
& ele);
51
bool
passID
(
const
reco::GsfElectronPtr
& ele,
edm::Handle<reco::BeamSpot>
beamspot
,
edm::Handle<reco::ConversionCollection>
conversions
);
52
float
isolation
(
const
reco::GsfElectronPtr
& ele);
53
54
void
setID
(
std::string
ID
);
55
void
setRho
(
double
rho
);
56
private
:
57
double
rho_
;
58
int
ID_
;
59
std::array<std::array<std::array<double,2>,4>,8>
cuts_
;
60
// Effective area constants
61
EffectiveAreas
_effectiveAreas
;
62
};
63
64
#endif
DDAxes::rho
ENDCAP
Definition:
ElectronIdentifier.h:45
ElectronIdentifier::dEtaInSeed
float dEtaInSeed(const reco::GsfElectronPtr &ele)
Definition:
ElectronIdentifier.cc:128
ElectronIdentifier::ID_
int ID_
Definition:
ElectronIdentifier.h:58
DPHIIN
Definition:
ElectronIdentifier.h:30
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
ElectronIdentifier::rho_
double rho_
Definition:
ElectronIdentifier.h:57
align::ID
uint32_t ID
Definition:
Definitions.h:26
ElectronIdentifier::cuts_
std::array< std::array< std::array< double, 2 >, 4 >, 8 > cuts_
Definition:
ElectronIdentifier.h:59
MakerMacros.h
EnergyCorrector.c
c
Definition:
EnergyCorrector.py:44
edm::Handle< reco::BeamSpot >
ISO
Definition:
ElectronIdentifier.h:32
Conversion.h
EffectiveAreas.h
ONEOVERE
Definition:
ElectronIdentifier.h:33
CONVERSION
Definition:
ElectronIdentifier.h:35
conversions_cfi.conversions
conversions
Definition:
conversions_cfi.py:8
Frameworkfwd.h
SIGMAIETA
Definition:
ElectronIdentifier.h:28
MEDIUM
Definition:
ElectronIdentifier.h:39
MISSINGHITS
Definition:
ElectronIdentifier.h:34
ParameterSet.h
ElectronIdentifier::_effectiveAreas
EffectiveAreas _effectiveAreas
Definition:
ElectronIdentifier.h:61
ElectronFwd.h
EleIDCutNames
EleIDCutNames
Definition:
ElectronIdentifier.h:27
SuperClusterFwd.h
ElectronIdentifier
Definition:
ElectronIdentifier.h:47
LOOSE
Definition:
ElectronIdentifier.h:40
ElectronIdentifier::passID
bool passID(const reco::GsfElectronPtr &ele, edm::Handle< reco::BeamSpot > beamspot, edm::Handle< reco::ConversionCollection > conversions)
Definition:
ElectronIdentifier.cc:149
EleIDEtaBins
EleIDEtaBins
Definition:
ElectronIdentifier.h:43
edm::Ptr< reco::GsfElectron >
HOVERE
Definition:
ElectronIdentifier.h:31
TIGHT
Definition:
ElectronIdentifier.h:41
beamspot
Definition:
BeamSpotWrite2Txt.h:8
EDAnalyzer.h
ElectronIdentifier::ElectronIdentifier
ElectronIdentifier(const edm::ParameterSet &c)
Definition:
ElectronIdentifier.cc:24
EleIDWorkingPoints
EleIDWorkingPoints
Definition:
ElectronIdentifier.h:37
GsfElectron.h
GsfElectronFwd.h
ElectronIdentifier::setRho
void setRho(double rho)
Definition:
ElectronIdentifier.cc:111
VETO
Definition:
ElectronIdentifier.h:38
ConversionFwd.h
DETAINSEED
Definition:
ElectronIdentifier.h:29
ElectronIdentifier::setID
void setID(std::string ID)
Definition:
ElectronIdentifier.cc:121
InputTag.h
BeamSpot.h
BARREL
Definition:
ElectronIdentifier.h:44
edm::ParameterSet
Definition:
ParameterSet.h:36
ElectronIdentifier::isolation
float isolation(const reco::GsfElectronPtr &ele)
Definition:
ElectronIdentifier.cc:132
EffectiveAreas
Definition:
EffectiveAreas.h:8
ConsumesCollector.h
CutApplicatorBase.h
Generated for CMSSW Reference Manual by
1.8.11