src
RecoMuon
MuonIsolation
plugins
PixelTrackExtractor.h
Go to the documentation of this file.
1
#ifndef MuonIsolation_PixelTrackExtractor_H
2
#define MuonIsolation_PixelTrackExtractor_H
3
4
#include <string>
5
#include <vector>
6
7
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
8
9
#include "
DataFormats/RecoCandidate/interface/IsoDeposit.h
"
10
#include "
DataFormats/TrackReco/interface/Track.h
"
11
#include "
DataFormats/TrackReco/interface/TrackFwd.h
"
12
#include "
PhysicsTools/IsolationAlgos/interface/IsoDepositExtractor.h
"
13
#include "
DataFormats/Common/interface/View.h
"
14
#include "
DataFormats/TrackReco/interface/Track.h
"
15
#include "
MagneticField/Engine/interface/MagneticField.h
"
16
#include "
MagneticField/Records/interface/IdealMagneticFieldRecord.h
"
17
18
namespace
muonisolation
{
19
20
class
PixelTrackExtractor
:
public
reco::isodeposit::IsoDepositExtractor
{
21
public
:
22
PixelTrackExtractor
(){};
23
PixelTrackExtractor
(
const
edm::ParameterSet
& par,
edm::ConsumesCollector
&& iC);
24
25
~PixelTrackExtractor
()
override
{}
26
27
void
fillVetos
(
const
edm::Event
&
ev
,
const
edm::EventSetup
& evSetup,
const
reco::TrackCollection
&
track
)
override
{}
28
29
virtual
reco::IsoDeposit::Vetos
vetos
(
const
edm::Event
&
ev
,
30
const
edm::EventSetup
& evSetup,
31
const
reco::Track
&
track
)
const
;
32
33
reco::IsoDeposit
deposit
(
const
edm::Event
&
ev
,
34
const
edm::EventSetup
& evSetup,
35
const
reco::Track
&
muon
)
const override
;
36
37
private
:
38
reco::IsoDeposit::Veto
veto
(
const
reco::IsoDeposit::Direction
&
dir
)
const
;
39
40
reco::isodeposit::Direction
directionAtPresetRadius
(
const
reco::Track
& tk,
double
bz)
const
;
41
42
private
:
43
// Parameter set
44
edm::ESGetToken<MagneticField, IdealMagneticFieldRecord>
theFieldToken
;
45
edm::EDGetTokenT<reco::TrackCollection>
theTrackCollectionToken
;
46
std::string
theDepositLabel
;
47
double
theDiff_r
;
48
double
theDiff_z
;
49
double
theDR_Max
;
50
double
theDR_Veto
;
51
std::string
theBeamlineOption
;
52
edm::EDGetTokenT<reco::BeamSpot>
theBeamSpotToken
;
53
unsigned
int
theNHits_Min
;
54
double
theChi2Ndof_Max
;
55
double
theChi2Prob_Min
;
56
double
thePt_Min
;
57
58
bool
thePropagateTracksToRadius
;
59
double
theReferenceRadius
;
60
61
bool
theVetoLeadingTrack
;
62
double
thePtVeto_Min
;
63
double
theDR_VetoPt
;
64
};
65
66
}
// namespace muonisolation
67
68
#endif
makeMEIFBenchmarkPlots.ev
ev
Definition:
makeMEIFBenchmarkPlots.py:55
muonisolation::PixelTrackExtractor::deposit
reco::IsoDeposit deposit(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Track &muon) const override
Definition:
PixelTrackExtractor.cc:68
muonisolation::PixelTrackExtractor::~PixelTrackExtractor
~PixelTrackExtractor() override
Definition:
PixelTrackExtractor.h:25
reco::IsoDeposit
Definition:
IsoDeposit.h:49
muonisolation::PixelTrackExtractor::theReferenceRadius
double theReferenceRadius
If set to true will compare track eta-phi at ...
Definition:
PixelTrackExtractor.h:59
muonisolation::PixelTrackExtractor::theVetoLeadingTrack
bool theVetoLeadingTrack
... this radius
Definition:
PixelTrackExtractor.h:61
muonisolation::PixelTrackExtractor::theChi2Ndof_Max
double theChi2Ndof_Max
trk.numberOfValidHits >= theNHits_Min
Definition:
PixelTrackExtractor.h:54
muonisolation::PixelTrackExtractor::vetos
virtual reco::IsoDeposit::Vetos vetos(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Track &track) const
Definition:
PixelTrackExtractor.cc:38
muonisolation::PixelTrackExtractor::theDR_Veto
double theDR_Veto
Maximum cone angle for deposits.
Definition:
PixelTrackExtractor.h:50
reco::isodeposit::IsoDepositExtractor
Definition:
IsoDepositExtractor.h:24
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition:
TrackFwd.h:14
TrackFwd.h
muon
Definition:
MuonCocktails.h:17
reco::IsoDeposit::Veto
Definition:
IsoDeposit.h:59
muonisolation::PixelTrackExtractor::theDiff_r
double theDiff_r
name for deposit
Definition:
PixelTrackExtractor.h:47
edm::EDGetTokenT< reco::TrackCollection >
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
DeadROC_duringRun.dir
dir
Definition:
DeadROC_duringRun.py:23
MagneticField.h
muonisolation::PixelTrackExtractor
Definition:
PixelTrackExtractor.h:20
muonisolation::PixelTrackExtractor::thePropagateTracksToRadius
bool thePropagateTracksToRadius
min track pt to include into iso deposit
Definition:
PixelTrackExtractor.h:58
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord >
muonisolation::PixelTrackExtractor::veto
reco::IsoDeposit::Veto veto(const reco::IsoDeposit::Direction &dir) const
Definition:
PixelTrackExtractor.cc:45
muonisolation::PixelTrackExtractor::thePtVeto_Min
double thePtVeto_Min
will veto leading track if
Definition:
PixelTrackExtractor.h:62
muonisolation::PixelTrackExtractor::theBeamSpotToken
edm::EDGetTokenT< reco::BeamSpot > theBeamSpotToken
"NONE", "BeamSpotFromEvent"
Definition:
PixelTrackExtractor.h:52
muonisolation::PixelTrackExtractor::PixelTrackExtractor
PixelTrackExtractor()
Definition:
PixelTrackExtractor.h:22
reco::isodeposit::Direction
Definition:
IsoDepositDirection.h:19
muonisolation::PixelTrackExtractor::theDR_Max
double theDR_Max
z distance to vertex
Definition:
PixelTrackExtractor.h:49
View.h
muonisolation
Definition:
CandViewExtractor.cc:14
edm::EventSetup
Definition:
EventSetup.h:56
muonisolation::PixelTrackExtractor::theTrackCollectionToken
edm::EDGetTokenT< reco::TrackCollection > theTrackCollectionToken
Definition:
PixelTrackExtractor.h:45
muonisolation::PixelTrackExtractor::thePt_Min
double thePt_Min
ChiSquaredProbability(trk.chi2,trk.ndof) > theChi2Prob_Min.
Definition:
PixelTrackExtractor.h:56
muonisolation::PixelTrackExtractor::theFieldToken
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > theFieldToken
Definition:
PixelTrackExtractor.h:44
muonisolation::PixelTrackExtractor::theDepositLabel
std::string theDepositLabel
Track Collection Token.
Definition:
PixelTrackExtractor.h:46
muonisolation::PixelTrackExtractor::theDiff_z
double theDiff_z
transverse distance to vertex
Definition:
PixelTrackExtractor.h:48
reco::Track
Definition:
Track.h:27
IsoDeposit.h
muonisolation::PixelTrackExtractor::theBeamlineOption
std::string theBeamlineOption
Veto cone angle.
Definition:
PixelTrackExtractor.h:51
IsoDepositExtractor.h
reco::IsoDeposit::Vetos
std::vector< Veto > Vetos
Definition:
IsoDeposit.h:65
muonisolation::PixelTrackExtractor::theDR_VetoPt
double theDR_VetoPt
.. it is above this threshold
Definition:
PixelTrackExtractor.h:63
muonisolation::PixelTrackExtractor::theNHits_Min
unsigned int theNHits_Min
BeamSpot name.
Definition:
PixelTrackExtractor.h:53
Track.h
edm::ParameterSet
Definition:
ParameterSet.h:47
muonisolation::PixelTrackExtractor::theChi2Prob_Min
double theChi2Prob_Min
trk.normalizedChi2 < theChi2Ndof_Max
Definition:
PixelTrackExtractor.h:55
edm::Event
Definition:
Event.h:73
muonisolation::PixelTrackExtractor::directionAtPresetRadius
reco::isodeposit::Direction directionAtPresetRadius(const reco::Track &tk, double bz) const
Definition:
PixelTrackExtractor.cc:52
ConsumesCollector.h
muonisolation::PixelTrackExtractor::fillVetos
void fillVetos(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::TrackCollection &track) override
Definition:
PixelTrackExtractor.h:27
IdealMagneticFieldRecord.h
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
HLT_2023v12_cff.track
track
Definition:
HLT_2023v12_cff.py:9604
Generated for CMSSW Reference Manual by
1.8.14