RecoEgamma
EgammaIsolationAlgos
plugins
EgammaTrackExtractor.h
Go to the documentation of this file.
1
#ifndef EgammaIsolationProducers_EgammaTrackExtractor_H
2
#define EgammaIsolationProducers_EgammaTrackExtractor_H
3
4
#include <string>
5
#include <vector>
6
7
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
8
#include "
DataFormats/Common/interface/View.h
"
9
#include "
DataFormats/RecoCandidate/interface/IsoDeposit.h
"
10
#include "
DataFormats/TrackReco/interface/Track.h
"
11
#include "
DataFormats/TrackReco/interface/TrackFwd.h
"
12
#include "
DataFormats/Candidate/interface/Candidate.h
"
13
#include "
PhysicsTools/IsolationAlgos/interface/IsoDepositExtractor.h
"
14
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
15
16
namespace
egammaisolation
{
17
18
class
EgammaTrackExtractor
:
public
reco::isodeposit::IsoDepositExtractor
{
19
public
:
20
EgammaTrackExtractor
(){};
21
EgammaTrackExtractor
(
const
edm::ParameterSet
& par,
edm::ConsumesCollector
&& iC) :
EgammaTrackExtractor
(par, iC) {}
22
EgammaTrackExtractor
(
const
edm::ParameterSet
& par,
edm::ConsumesCollector
& iC);
23
24
~EgammaTrackExtractor
()
override
{}
25
26
void
fillVetos
(
const
edm::Event
&
ev
,
const
edm::EventSetup
& evSetup,
const
reco::TrackCollection
&
track
)
override
{}
27
28
virtual
reco::IsoDeposit::Vetos
vetos
(
const
edm::Event
&
ev
,
29
const
edm::EventSetup
& evSetup,
30
const
reco::Track
&
track
)
const
;
31
32
reco::IsoDeposit
deposit
(
const
edm::Event
&
ev
,
33
const
edm::EventSetup
& evSetup,
34
const
reco::Track
&
muon
)
const override
{
35
edm::LogWarning
(
"EgammaIsolationAlgos|EgammaTrackExtractor"
)
36
<<
"This Function is not implemented, bad IsoDeposit Returned"
;
37
return
reco::IsoDeposit
(
reco::isodeposit::Direction
(1, 1));
38
}
39
40
reco::IsoDeposit
deposit
(
const
edm::Event
&
ev
,
41
const
edm::EventSetup
& evSetup,
42
const
reco::Candidate
&
muon
)
const override
;
43
44
private
:
45
reco::IsoDeposit::Veto
veto
(
const
reco::IsoDeposit::Direction
&
dir
)
const
;
46
47
private
:
48
// Parameter set
49
edm::EDGetTokenT<edm::View<reco::Track>
>
theTrackCollectionToken
;
50
std::string
theDepositLabel
;
51
double
minCandEt_
;
52
double
theDiff_r
;
53
double
theDiff_z
;
54
double
theDR_Max
;
55
double
theDR_Veto
;
56
std::string
theBeamlineOption
;
57
edm::InputTag
barrelEcalHitsTag_
;
58
edm::InputTag
endcapEcalHitsTag_
;
59
edm::EDGetTokenT<reco::BeamSpot>
theBeamSpotToken
;
60
unsigned
int
theNHits_Min
;
61
double
theChi2Ndof_Max
;
62
double
theChi2Prob_Min
;
63
double
thePt_Min
;
64
std::vector<double>
paramForIsolBarrel_
;
65
std::vector<double>
paramForIsolEndcap_
;
66
std::string
dzOptionString
;
67
int
dzOption
;
68
};
69
70
}
// namespace egammaisolation
71
72
#endif
egammaisolation::EgammaTrackExtractor::paramForIsolBarrel_
std::vector< double > paramForIsolBarrel_
min track pt to include into iso deposit
Definition:
EgammaTrackExtractor.h:64
HLT_FULL_cff.track
track
Definition:
HLT_FULL_cff.py:11776
MessageLogger.h
muon
Definition:
MuonCocktails.h:17
egammaisolation
Definition:
EgammaTrackSelector.h:11
egammaisolation::EgammaTrackExtractor::paramForIsolEndcap_
std::vector< double > paramForIsolEndcap_
Barrel requirements to determine if isolated for selective filling.
Definition:
EgammaTrackExtractor.h:65
edm::EDGetTokenT
Definition:
EDGetToken.h:33
egammaisolation::EgammaTrackExtractor::theBeamSpotToken
edm::EDGetTokenT< reco::BeamSpot > theBeamSpotToken
Definition:
EgammaTrackExtractor.h:59
pat::IsoDeposit
reco::IsoDeposit IsoDeposit
Definition:
Isolation.h:7
egammaisolation::EgammaTrackExtractor::fillVetos
void fillVetos(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::TrackCollection &track) override
Definition:
EgammaTrackExtractor.h:26
egammaisolation::EgammaTrackExtractor::EgammaTrackExtractor
EgammaTrackExtractor()
Definition:
EgammaTrackExtractor.h:20
egammaisolation::EgammaTrackExtractor::theDepositLabel
std::string theDepositLabel
Track Collection Label.
Definition:
EgammaTrackExtractor.h:50
reco::IsoDeposit::Veto
Definition:
IsoDeposit.h:59
egammaisolation::EgammaTrackExtractor::theDR_Max
double theDR_Max
z distance to vertex
Definition:
EgammaTrackExtractor.h:54
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition:
MessageLogger.h:122
egammaisolation::EgammaTrackExtractor::theChi2Ndof_Max
double theChi2Ndof_Max
trk.numberOfValidHits >= theNHits_Min
Definition:
EgammaTrackExtractor.h:61
Track.h
TrackFwd.h
egammaisolation::EgammaTrackExtractor::deposit
reco::IsoDeposit deposit(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Track &muon) const override
Definition:
EgammaTrackExtractor.h:32
egammaisolation::EgammaTrackExtractor::dzOption
int dzOption
Definition:
EgammaTrackExtractor.h:67
reco::Track
Definition:
Track.h:27
egammaisolation::EgammaTrackExtractor::~EgammaTrackExtractor
~EgammaTrackExtractor() override
Definition:
EgammaTrackExtractor.h:24
IsoDeposit.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
IsoDepositExtractor.h
egammaisolation::EgammaTrackExtractor::theChi2Prob_Min
double theChi2Prob_Min
trk.normalizedChi2 < theChi2Ndof_Max
Definition:
EgammaTrackExtractor.h:62
egammaisolation::EgammaTrackExtractor::theDiff_r
double theDiff_r
minimum candidate et
Definition:
EgammaTrackExtractor.h:52
edm::ParameterSet
Definition:
ParameterSet.h:47
egammaisolation::EgammaTrackExtractor::theNHits_Min
unsigned int theNHits_Min
BeamSpot name.
Definition:
EgammaTrackExtractor.h:60
egammaisolation::EgammaTrackExtractor::theDR_Veto
double theDR_Veto
Maximum cone angle for deposits.
Definition:
EgammaTrackExtractor.h:55
egammaisolation::EgammaTrackExtractor::theDiff_z
double theDiff_z
transverse distance to vertex
Definition:
EgammaTrackExtractor.h:53
egammaisolation::EgammaTrackExtractor::thePt_Min
double thePt_Min
ChiSquaredProbability(trk.chi2,trk.ndof) > theChi2Prob_Min.
Definition:
EgammaTrackExtractor.h:63
egammaisolation::EgammaTrackExtractor
Definition:
EgammaTrackExtractor.h:18
edm::EventSetup
Definition:
EventSetup.h:57
reco::Candidate
Definition:
Candidate.h:27
egammaisolation::EgammaTrackExtractor::vetos
virtual reco::IsoDeposit::Vetos vetos(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Track &track) const
Definition:
EgammaTrackExtractor.cc:53
egammaisolation::EgammaTrackExtractor::EgammaTrackExtractor
EgammaTrackExtractor(const edm::ParameterSet &par, edm::ConsumesCollector &&iC)
Definition:
EgammaTrackExtractor.h:21
egammaisolation::EgammaTrackExtractor::theBeamlineOption
std::string theBeamlineOption
Veto cone angle.
Definition:
EgammaTrackExtractor.h:56
egammaisolation::EgammaTrackExtractor::dzOptionString
std::string dzOptionString
Endcap requirements to determine if isolated for selective filling.
Definition:
EgammaTrackExtractor.h:66
egammaisolation::EgammaTrackExtractor::minCandEt_
double minCandEt_
name for deposit
Definition:
EgammaTrackExtractor.h:51
reco::isodeposit::Direction
Definition:
IsoDepositDirection.h:19
ev
bool ev
Definition:
Hydjet2Hadronizer.cc:95
reco::IsoDeposit
Definition:
IsoDeposit.h:49
egammaisolation::EgammaTrackExtractor::theTrackCollectionToken
edm::EDGetTokenT< edm::View< reco::Track > > theTrackCollectionToken
Definition:
EgammaTrackExtractor.h:49
ConsumesCollector.h
Candidate.h
View.h
reco::isodeposit::IsoDepositExtractor
Definition:
IsoDepositExtractor.h:24
egammaisolation::EgammaTrackExtractor::barrelEcalHitsTag_
edm::InputTag barrelEcalHitsTag_
"NONE", "BeamSpotFromEvent"
Definition:
EgammaTrackExtractor.h:57
edm::Event
Definition:
Event.h:73
reco::IsoDeposit::Vetos
std::vector< Veto > Vetos
Definition:
IsoDeposit.h:65
egammaisolation::EgammaTrackExtractor::veto
reco::IsoDeposit::Veto veto(const reco::IsoDeposit::Direction &dir) const
Definition:
EgammaTrackExtractor.cc:60
edm::InputTag
Definition:
InputTag.h:15
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition:
TrackFwd.h:14
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
egammaisolation::EgammaTrackExtractor::endcapEcalHitsTag_
edm::InputTag endcapEcalHitsTag_
Definition:
EgammaTrackExtractor.h:58
DeadROC_duringRun.dir
dir
Definition:
DeadROC_duringRun.py:23
Generated for CMSSW Reference Manual by
1.8.16