Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
TauAnalysis
MCEmbeddingTools
interface
MuonTrackCleanerBase.h
Go to the documentation of this file.
1
#ifndef TauAnalysis_MCEmbeddingTools_MuonTrackCleanerBase_h
2
#define TauAnalysis_MCEmbeddingTools_MuonTrackCleanerBase_h
3
18
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
19
#include "
FWCore/Framework/interface/EDProducer.h
"
20
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
21
#include "
FWCore/Framework/interface/Event.h
"
22
23
#include "
DataFormats/TrackReco/interface/Track.h
"
24
#include "
DataFormats/TrackReco/interface/TrackFwd.h
"
25
#include "
DataFormats/Candidate/interface/Candidate.h
"
26
27
#include <vector>
28
#include <string>
29
30
class
MuonTrackCleanerBase
:
public
edm::EDProducer
31
{
32
public
:
33
explicit
MuonTrackCleanerBase
(
const
edm::ParameterSet
&);
34
~MuonTrackCleanerBase
() {}
35
36
protected
:
37
virtual
void
produce
(
edm::Event
&,
const
edm::EventSetup
&);
38
39
std::string
moduleLabel_
;
40
41
struct
muonMomentumType
42
{
43
double
pt_
;
44
double
eta_
;
45
double
phi_
;
46
};
47
muonMomentumType
getMuonMomentum
(
const
reco::Candidate
&);
48
49
virtual
void
produceTracks
(
edm::Event
&,
const
edm::EventSetup
&);
50
virtual
void
produceTrackExtras
(
edm::Event
&,
const
edm::EventSetup
&) = 0;
51
52
edm::InputTag
srcSelectedMuons_
;
53
54
struct
todoListEntryType
55
{
56
edm::InputTag
srcTracks_
;
57
58
mutable
std::map<reco::TrackRef, reco::TrackRef>
trackRefMap_
;
// key = edm::Ref to output track collection, value = edm::Ref to input track collections
59
// (needed by GlobalMuonTrackCleaner)
60
};
61
std::vector<todoListEntryType>
todoList_
;
62
63
double
dRmatch_
;
64
bool
removeDuplicates_
;
65
66
enum
{
kInnerTrack
,
kOuterTrack
,
kLink
,
kTeV
};
67
int
type_
;
68
69
int
maxWarnings_tooMany_
;
70
int
numWarnings_tooMany_
;
71
int
maxWarnings_tooFew_
;
72
int
numWarnings_tooFew_
;
73
74
int
verbosity_
;
75
};
76
77
#endif
MuonTrackCleanerBase
Definition:
MuonTrackCleanerBase.h:30
MuonTrackCleanerBase::numWarnings_tooFew_
int numWarnings_tooFew_
Definition:
MuonTrackCleanerBase.h:72
MuonTrackCleanerBase::dRmatch_
double dRmatch_
Definition:
MuonTrackCleanerBase.h:63
MuonTrackCleanerBase::maxWarnings_tooFew_
int maxWarnings_tooFew_
Definition:
MuonTrackCleanerBase.h:71
MuonTrackCleanerBase::~MuonTrackCleanerBase
~MuonTrackCleanerBase()
Definition:
MuonTrackCleanerBase.h:34
Event.h
MuonTrackCleanerBase::removeDuplicates_
bool removeDuplicates_
Definition:
MuonTrackCleanerBase.h:64
reco::Candidate
Definition:
Candidate.h:32
TrackFwd.h
MuonTrackCleanerBase::type_
int type_
Definition:
MuonTrackCleanerBase.h:67
Frameworkfwd.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
edm::EDProducer
Definition:
EDProducer.h:33
ParameterSet.h
Candidate.h
MuonTrackCleanerBase::muonMomentumType::phi_
double phi_
Definition:
MuonTrackCleanerBase.h:45
MuonTrackCleanerBase::kOuterTrack
Definition:
MuonTrackCleanerBase.h:66
MuonTrackCleanerBase::muonMomentumType::eta_
double eta_
Definition:
MuonTrackCleanerBase.h:44
MuonTrackCleanerBase::maxWarnings_tooMany_
int maxWarnings_tooMany_
Definition:
MuonTrackCleanerBase.h:69
MuonTrackCleanerBase::todoListEntryType::trackRefMap_
std::map< reco::TrackRef, reco::TrackRef > trackRefMap_
Definition:
MuonTrackCleanerBase.h:58
edm::EventSetup
Definition:
EventSetup.h:44
MuonTrackCleanerBase::produce
virtual void produce(edm::Event &, const edm::EventSetup &)
Definition:
MuonTrackCleanerBase.cc:92
MuonTrackCleanerBase::srcSelectedMuons_
edm::InputTag srcSelectedMuons_
Definition:
MuonTrackCleanerBase.h:52
MuonTrackCleanerBase::getMuonMomentum
muonMomentumType getMuonMomentum(const reco::Candidate &)
Definition:
MuonTrackCleanerBase.cc:98
EDProducer.h
MuonTrackCleanerBase::verbosity_
int verbosity_
Definition:
MuonTrackCleanerBase.h:74
MuonTrackCleanerBase::todoListEntryType
Definition:
MuonTrackCleanerBase.h:54
MuonTrackCleanerBase::produceTrackExtras
virtual void produceTrackExtras(edm::Event &, const edm::EventSetup &)=0
MuonTrackCleanerBase::numWarnings_tooMany_
int numWarnings_tooMany_
Definition:
MuonTrackCleanerBase.h:70
edm::InputTag
Definition:
InputTag.h:17
MuonTrackCleanerBase::kLink
Definition:
MuonTrackCleanerBase.h:66
MuonTrackCleanerBase::kInnerTrack
Definition:
MuonTrackCleanerBase.h:66
edm::ParameterSet
Definition:
ParameterSet.h:35
MuonTrackCleanerBase::MuonTrackCleanerBase
MuonTrackCleanerBase(const edm::ParameterSet &)
Definition:
MuonTrackCleanerBase.cc:14
edm::Event
Definition:
Event.h:62
MuonTrackCleanerBase::muonMomentumType
Definition:
MuonTrackCleanerBase.h:41
Track.h
MuonTrackCleanerBase::todoList_
std::vector< todoListEntryType > todoList_
Definition:
MuonTrackCleanerBase.h:61
MuonTrackCleanerBase::todoListEntryType::srcTracks_
edm::InputTag srcTracks_
Definition:
MuonTrackCleanerBase.h:56
MuonTrackCleanerBase::muonMomentumType::pt_
double pt_
Definition:
MuonTrackCleanerBase.h:43
MuonTrackCleanerBase::kTeV
Definition:
MuonTrackCleanerBase.h:66
MuonTrackCleanerBase::moduleLabel_
std::string moduleLabel_
Definition:
MuonTrackCleanerBase.h:39
MuonTrackCleanerBase::produceTracks
virtual void produceTracks(edm::Event &, const edm::EventSetup &)
Definition:
MuonTrackCleanerBase.cc:122
Generated for CMSSW Reference Manual by
1.8.5