CMS 3D CMS Logo

MuonCosmicCompatibilityFiller.h
Go to the documentation of this file.
1 
14 #ifndef MuonIdentification_MuonCosmicCompatibilityFiller_h
15 #define MuonIdentification_MuonCosmicCompatibilityFiller_h
16 
17 #include <vector>
18 
21 
25 
32 
33 namespace edm {
34  class ParameterSet;
35  class Event;
36  class EventSetup;
37 } // namespace edm
38 class GlobalMuonRefitter;
39 
41 public:
44 
47 
48 private:
50  float muonTiming(const edm::Event& iEvent, const reco::Muon& muon, bool isLoose) const;
51 
53  unsigned int backToBack2LegCosmic(const edm::Event&, const reco::Muon&) const;
54 
56  unsigned int pvMatches(const edm::Event&, const reco::Muon&, bool) const;
57 
59  bool isOverlappingMuon(const edm::Event&, const edm::EventSetup& iSetup, const reco::Muon&) const;
60 
62  unsigned int nMuons(const edm::Event&) const;
63 
65  unsigned int eventActivity(const edm::Event&, const reco::Muon&) const;
66 
68  float combinedCosmicID(
69  const edm::Event&, const edm::EventSetup& iSetup, const reco::Muon&, bool CheckMuonID, bool checkVertex) const;
70 
72  bool checkMuonID(const reco::Muon&) const;
73 
75  bool checkMuonSegments(const reco::Muon& muon) const;
76 
77 private:
78  std::vector<edm::InputTag> inputMuonCollections_;
79  std::vector<edm::InputTag> inputTrackCollections_;
82 
83  std::vector<edm::EDGetTokenT<reco::MuonCollection> > muonTokens_;
84  std::vector<edm::EDGetTokenT<reco::TrackCollection> > trackTokens_;
87 
88  double maxdxyLoose_;
89  double maxdzLoose_;
90  double maxdxyTight_;
91  double maxdzTight_;
96  double largedxyMult_;
97  double largedxy_;
98  double hIpTrdxy_;
99  double hIpTrvProb_;
100  double minvProb_;
101  double maxvertZ_;
102  double maxvertRho_;
103  unsigned int nTrackThreshold_;
112  double corrTimePos_;
113  double corrTimeNeg_;
114  double deltaPt_;
117  double sharedFrac_;
118  double ipThreshold_;
120  double segmentComp_;
121 };
122 #endif
MuonCosmicCompatibilityFiller::segmentComp_
double segmentComp_
Definition: MuonCosmicCompatibilityFiller.h:120
MuonCosmicCompatibilityFiller::hIpTrvProb_
double hIpTrvProb_
Definition: MuonCosmicCompatibilityFiller.h:99
MuonCosmicCompatibilityFiller::offTimeNegLoose_
double offTimeNegLoose_
Definition: MuonCosmicCompatibilityFiller.h:105
MuonCosmicCompatibilityFiller::offTimeNegLooseMult_
double offTimeNegLooseMult_
Definition: MuonCosmicCompatibilityFiller.h:109
Muon.h
MuonCosmicCompatibilityFiller::inputTrackCollections_
std::vector< edm::InputTag > inputTrackCollections_
Definition: MuonCosmicCompatibilityFiller.h:79
MuonCosmicCompatibilityFiller::cosmicToken_
edm::EDGetTokenT< reco::MuonCollection > cosmicToken_
Definition: MuonCosmicCompatibilityFiller.h:85
MuonCosmicCompatibilityFiller::trackTokens_
std::vector< edm::EDGetTokenT< reco::TrackCollection > > trackTokens_
Definition: MuonCosmicCompatibilityFiller.h:84
MuonCosmicCompatibilityFiller::~MuonCosmicCompatibilityFiller
~MuonCosmicCompatibilityFiller()
Definition: MuonCosmicCompatibilityFiller.cc:99
muon
Definition: MuonCocktails.h:17
edm::EDGetTokenT< reco::MuonCollection >
edm
HLT enums.
Definition: AlignableModifier.h:19
MuonCosmicCompatibilityFiller::maxdzTightMult_
double maxdzTightMult_
Definition: MuonCosmicCompatibilityFiller.h:95
MuonCosmicCompatibilityFiller::maxdxyLoose_
double maxdxyLoose_
Definition: MuonCosmicCompatibilityFiller.h:88
MuonCosmicCompatibilityFiller::hIpTrdxy_
double hIpTrdxy_
Definition: MuonCosmicCompatibilityFiller.h:98
MuonCosmicCompatibilityFiller::maxdzLoose_
double maxdzLoose_
Definition: MuonCosmicCompatibilityFiller.h:89
MuonCosmicCompatibilityFiller::nMuons
unsigned int nMuons(const edm::Event &) const
get number of muons in the vent
Definition: MuonCosmicCompatibilityFiller.cc:237
MuonCosmicCompatibilityFiller::largedxyMult_
double largedxyMult_
Definition: MuonCosmicCompatibilityFiller.h:96
MuonCosmicCompatibilityFiller::offTimePosLoose_
double offTimePosLoose_
Definition: MuonCosmicCompatibilityFiller.h:104
MuonCosmicCompatibilityFiller::maxdzTight_
double maxdzTight_
Definition: MuonCosmicCompatibilityFiller.h:91
reco::Muon
Definition: Muon.h:27
MuonCosmicCompatibilityFiller::maxdxyTight_
double maxdxyTight_
Definition: MuonCosmicCompatibilityFiller.h:90
MuonCosmicCompatibilityFiller::largedxy_
double largedxy_
Definition: MuonCosmicCompatibilityFiller.h:97
MuonCosmicCompatibilityFiller::deltaPt_
double deltaPt_
Definition: MuonCosmicCompatibilityFiller.h:114
Track.h
TrackFwd.h
MuonCosmicCompatibilityFiller::sharedFrac_
double sharedFrac_
Definition: MuonCosmicCompatibilityFiller.h:117
MuonCosmicCompatibilityFiller::minvProb_
double minvProb_
Definition: MuonCosmicCompatibilityFiller.h:100
MuonCosmicCompatibilityFiller::fillCompatibility
reco::MuonCosmicCompatibility fillCompatibility(const reco::Muon &muon, edm::Event &, const edm::EventSetup &)
fill cosmic compatibility variables
Definition: MuonCosmicCompatibilityFiller.cc:101
MuonCosmicCompatibilityFiller::pvMatches
unsigned int pvMatches(const edm::Event &, const reco::Muon &, bool) const
return cosmic-likeness based on the 2D impact parameters (dxy, dz wrt to PV). 0 == cosmic-like
Definition: MuonCosmicCompatibilityFiller.cc:383
MuonCosmicCompatibilityFiller::combinedCosmicID
float combinedCosmicID(const edm::Event &, const edm::EventSetup &iSetup, const reco::Muon &, bool CheckMuonID, bool checkVertex) const
combined cosmic-likeness: 0 == not cosmic-like
Definition: MuonCosmicCompatibilityFiller.cc:490
MuonFwd.h
MuonCosmicCompatibilityFiller::maxdxyTightMult_
double maxdxyTightMult_
Definition: MuonCosmicCompatibilityFiller.h:94
MuonCosmicCompatibilityFiller::offTimeNegTightMult_
double offTimeNegTightMult_
Definition: MuonCosmicCompatibilityFiller.h:111
Event
MuonCosmicCompatibility.h
MuonCosmicCompatibilityFiller::maxvertZ_
double maxvertZ_
Definition: MuonCosmicCompatibilityFiller.h:101
MuonCosmicCompatibilityFiller::MuonCosmicCompatibilityFiller
MuonCosmicCompatibilityFiller(const edm::ParameterSet &, edm::ConsumesCollector &)
Definition: MuonCosmicCompatibilityFiller.cc:45
MuonCosmicCompatibilityFiller
Definition: MuonCosmicCompatibilityFiller.h:40
Vertex.h
MuonCosmicCompatibilityFiller::checkMuonID
bool checkMuonID(const reco::Muon &) const
tag a muon as cosmic based on the muonID information
Definition: MuonCosmicCompatibilityFiller.cc:620
edm::ParameterSet
Definition: ParameterSet.h:36
MuonCosmicCompatibilityFiller::inputCosmicMuonCollection_
edm::InputTag inputCosmicMuonCollection_
Definition: MuonCosmicCompatibilityFiller.h:80
MuonCosmicCompatibilityFiller::eventActivity
unsigned int eventActivity(const edm::Event &, const reco::Muon &) const
returns cosmic-likeness based on the event activity information: tracker track multiplicity and verte...
Definition: MuonCosmicCompatibilityFiller.cc:590
MuonCosmicCompatibilityFiller::offTimePosTight_
double offTimePosTight_
Definition: MuonCosmicCompatibilityFiller.h:106
ParameterSet
Definition: Functions.h:16
MuonCosmicCompatibilityFiller::muonTiming
float muonTiming(const edm::Event &iEvent, const reco::Muon &muon, bool isLoose) const
check muon time (DT and CSC) information: 0 == prompt-like
Definition: MuonCosmicCompatibilityFiller.cc:128
MuonCosmicCompatibilityFiller::vertexToken_
edm::EDGetTokenT< reco::VertexCollection > vertexToken_
Definition: MuonCosmicCompatibilityFiller.h:86
MuonCosmicCompatibilityFiller::offTimeNegTight_
double offTimeNegTight_
Definition: MuonCosmicCompatibilityFiller.h:107
iEvent
int iEvent
Definition: GenABIO.cc:224
reco::MuonCosmicCompatibility
Definition: MuonCosmicCompatibility.h:5
MuonCosmicCompatibilityFiller::inputMuonCollections_
std::vector< edm::InputTag > inputMuonCollections_
Definition: MuonCosmicCompatibilityFiller.h:78
MuonCosmicCompatibilityFiller::backToBack2LegCosmic
unsigned int backToBack2LegCosmic(const edm::Event &, const reco::Muon &) const
return cosmic-likeness based on presence of a track in opp side: 0 == no matching opp tracks
Definition: MuonCosmicCompatibilityFiller.cc:212
edm::EventSetup
Definition: EventSetup.h:57
MuonCosmicCompatibilityFiller::corrTimePos_
double corrTimePos_
Definition: MuonCosmicCompatibilityFiller.h:112
MuonCosmicCompatibilityFiller::muonTokens_
std::vector< edm::EDGetTokenT< reco::MuonCollection > > muonTokens_
Definition: MuonCosmicCompatibilityFiller.h:83
MuonCosmicCompatibilityFiller::angleThreshold_
double angleThreshold_
Definition: MuonCosmicCompatibilityFiller.h:115
MuonCosmicCompatibilityFiller::inputVertexCollection_
edm::InputTag inputVertexCollection_
Definition: MuonCosmicCompatibilityFiller.h:81
ValueMap.h
VertexFwd.h
MuonCosmicCompatibilityFiller::sharedHits_
int sharedHits_
Definition: MuonCosmicCompatibilityFiller.h:116
MuonCosmicCompatibilityFiller::offTimePosTightMult_
double offTimePosTightMult_
Definition: MuonCosmicCompatibilityFiller.h:110
MuonCosmicCompatibilityFiller::isOverlappingMuon
bool isOverlappingMuon(const edm::Event &, const edm::EventSetup &iSetup, const reco::Muon &) const
returns cosmic-likeness based on overlap with traversing cosmic muon (only muon/STA hits are used)
Definition: MuonCosmicCompatibilityFiller.cc:257
MuonCosmicCompatibilityFiller::nTrackThreshold_
unsigned int nTrackThreshold_
Definition: MuonCosmicCompatibilityFiller.h:103
MuonCosmicCompatibilityFiller::corrTimeNeg_
double corrTimeNeg_
Definition: MuonCosmicCompatibilityFiller.h:113
Frameworkfwd.h
GlobalMuonRefitter
Definition: GlobalMuonRefitter.h:52
MuonCosmicCompatibilityFiller::maxvertRho_
double maxvertRho_
Definition: MuonCosmicCompatibilityFiller.h:102
MuonCosmicCompatibilityFiller::checkMuonSegments
bool checkMuonSegments(const reco::Muon &muon) const
tag a muon as cosmic based on segment compatibility and the number of segment matches
Definition: MuonCosmicCompatibilityFiller.cc:629
MuonCosmicCompatibilityFiller::maxdxyLooseMult_
double maxdxyLooseMult_
Definition: MuonCosmicCompatibilityFiller.h:92
MuonCosmicCompatibilityFiller::ipThreshold_
double ipThreshold_
Definition: MuonCosmicCompatibilityFiller.h:118
ConsumesCollector.h
EventSetup
MuonCosmicCompatibilityFiller::offTimePosLooseMult_
double offTimePosLooseMult_
Definition: MuonCosmicCompatibilityFiller.h:108
MuonCosmicCompatibilityFiller::maxdzLooseMult_
double maxdzLooseMult_
Definition: MuonCosmicCompatibilityFiller.h:93
MuonCosmicCompatibilityFiller::nChamberMatches_
int nChamberMatches_
Definition: MuonCosmicCompatibilityFiller.h:119
edm::Event
Definition: Event.h:73
edm::InputTag
Definition: InputTag.h:15
edm::ConsumesCollector
Definition: ConsumesCollector.h:39