Main Page
Namespaces
Classes
Package Documentation
RecoMuon
MuonIsolation
plugins
TrackExtractor.h
Go to the documentation of this file.
1
#ifndef MuonIsolation_TrackExtractor_H
2
#define MuonIsolation_TrackExtractor_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 "
DataFormats/BeamSpot/interface/BeamSpot.h
"
13
#include "
PhysicsTools/IsolationAlgos/interface/IsoDepositExtractor.h
"
14
#include "
DataFormats/Common/interface/View.h
"
15
16
namespace
muonisolation
{
17
18
class
TrackExtractor
:
public
reco::isodeposit::IsoDepositExtractor
{
19
20
public
:
21
22
TrackExtractor
(){};
23
TrackExtractor
(
const
edm::ParameterSet
& par,
edm::ConsumesCollector
&& iC);
24
25
~TrackExtractor
()
override
{}
26
27
void
fillVetos
(
const
edm::Event
&
ev
,
28
const
edm::EventSetup
& evSetup,
const
reco::TrackCollection
&
track
)
override
{}
29
30
virtual
reco::IsoDeposit::Vetos
vetos
(
const
edm::Event
&
ev
,
31
const
edm::EventSetup
& evSetup,
const
reco::Track
&
track
)
const
;
32
33
reco::IsoDeposit
deposit
(
const
edm::Event
& ev,
34
const
edm::EventSetup
& evSetup,
const
reco::Track
&
muon
)
const override
;
35
36
private
:
37
reco::IsoDeposit::Veto
veto
(
const
reco::IsoDeposit::Direction
&
dir
)
const
;
38
private
:
39
// Parameter set
40
edm::EDGetTokenT<reco::TrackCollection>
theTrackCollectionToken
;
41
std::string
theDepositLabel
;
42
double
theDiff_r
;
43
double
theDiff_z
;
44
double
theDR_Max
;
45
double
theDR_Veto
;
46
std::string
theBeamlineOption
;
47
edm::EDGetTokenT<reco::BeamSpot>
theBeamSpotToken
;
48
unsigned
int
theNHits_Min
;
49
double
theChi2Ndof_Max
;
50
double
theChi2Prob_Min
;
51
double
thePt_Min
;
52
};
53
54
}
55
56
#endif
reco::IsoDeposit
Definition:
IsoDeposit.h:46
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
muonisolation::TrackExtractor
Definition:
TrackExtractor.h:18
reco::isodeposit::IsoDepositExtractor
Definition:
IsoDepositExtractor.h:25
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition:
TrackFwd.h:15
muonisolation::TrackExtractor::theNHits_Min
unsigned int theNHits_Min
BeamSpot name.
Definition:
TrackExtractor.h:48
ev
bool ev
Definition:
Hydjet2Hadronizer.cc:95
TrackFwd.h
muon
Definition:
MuonCocktails.h:17
reco::IsoDeposit::Veto
Definition:
IsoDeposit.h:58
muonisolation::TrackExtractor::theDR_Max
double theDR_Max
z distance to vertex
Definition:
TrackExtractor.h:44
edm::EDGetTokenT< reco::TrackCollection >
muonisolation::TrackExtractor::veto
reco::IsoDeposit::Veto veto(const reco::IsoDeposit::Direction &dir) const
Definition:
TrackExtractor.cc:38
muonisolation::TrackExtractor::theDiff_r
double theDiff_r
name for deposit
Definition:
TrackExtractor.h:42
muonisolation::TrackExtractor::theTrackCollectionToken
edm::EDGetTokenT< reco::TrackCollection > theTrackCollectionToken
Definition:
TrackExtractor.h:40
reco::isodeposit::Direction
Definition:
IsoDepositDirection.h:19
View.h
muonisolation
Definition:
CandViewExtractor.h:17
edm::EventSetup
Definition:
EventSetup.h:52
muonisolation::TrackExtractor::~TrackExtractor
~TrackExtractor() override
Definition:
TrackExtractor.h:25
muonisolation::TrackExtractor::deposit
reco::IsoDeposit deposit(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Track &muon) const override
Definition:
TrackExtractor.cc:46
muonisolation::TrackExtractor::theDepositLabel
std::string theDepositLabel
Track Collection Label.
Definition:
TrackExtractor.h:41
muonisolation::TrackExtractor::theChi2Ndof_Max
double theChi2Ndof_Max
trk.numberOfValidHits >= theNHits_Min
Definition:
TrackExtractor.h:49
muonisolation::TrackExtractor::theDiff_z
double theDiff_z
transverse distance to vertex
Definition:
TrackExtractor.h:43
muonisolation::TrackExtractor::fillVetos
void fillVetos(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::TrackCollection &track) override
Definition:
TrackExtractor.h:27
HiIsolationCommonParameters_cff.track
track
Definition:
HiIsolationCommonParameters_cff.py:9
muonisolation::TrackExtractor::theBeamlineOption
std::string theBeamlineOption
Veto cone angle.
Definition:
TrackExtractor.h:46
muonisolation::TrackExtractor::thePt_Min
double thePt_Min
ChiSquaredProbability(trk.chi2,trk.ndof) > theChi2Prob_Min.
Definition:
TrackExtractor.h:51
reco::Track
Definition:
Track.h:28
muonisolation::TrackExtractor::theBeamSpotToken
edm::EDGetTokenT< reco::BeamSpot > theBeamSpotToken
"NONE", "BeamSpotFromEvent"
Definition:
TrackExtractor.h:47
IsoDeposit.h
IsoDepositExtractor.h
reco::IsoDeposit::Vetos
std::vector< Veto > Vetos
Definition:
IsoDeposit.h:63
muonisolation::TrackExtractor::TrackExtractor
TrackExtractor()
Definition:
TrackExtractor.h:22
BeamSpot.h
muonisolation::TrackExtractor::theDR_Veto
double theDR_Veto
Maximum cone angle for deposits.
Definition:
TrackExtractor.h:45
edm::ParameterSet
Definition:
ParameterSet.h:36
dir
dbl *** dir
Definition:
mlp_gen.cc:35
edm::Event
Definition:
Event.h:70
Track.h
ConsumesCollector.h
muonisolation::TrackExtractor::theChi2Prob_Min
double theChi2Prob_Min
trk.normalizedChi2 < theChi2Ndof_Max
Definition:
TrackExtractor.h:50
muonisolation::TrackExtractor::vetos
virtual reco::IsoDeposit::Vetos vetos(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Track &track) const
Definition:
TrackExtractor.cc:31
edm::ConsumesCollector
Definition:
ConsumesCollector.h:39
Generated for CMSSW Reference Manual by
1.8.11