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 
26 
35 
36 namespace edm {
37  class ParameterSet;
38  class Event;
39  class EventSetup;
40 } // namespace edm
41 class GlobalMuonRefitter;
42 
44 public:
47 
50 
51 private:
53  float muonTiming(const edm::Event& iEvent, const reco::Muon& muon, bool isLoose) const;
54 
56  unsigned int backToBack2LegCosmic(const edm::Event&, const reco::Muon&) const;
57 
59  unsigned int pvMatches(const edm::Event&, const reco::Muon&, bool) const;
60 
62  bool isOverlappingMuon(const edm::Event&, const edm::EventSetup& iSetup, const reco::Muon&) const;
63 
65  unsigned int nMuons(const edm::Event&) const;
66 
68  unsigned int eventActivity(const edm::Event&, const reco::Muon&) const;
69 
71  float combinedCosmicID(
72  const edm::Event&, const edm::EventSetup& iSetup, const reco::Muon&, bool CheckMuonID, bool checkVertex) const;
73 
75  bool checkMuonID(const reco::Muon&) const;
76 
78  bool checkMuonSegments(const reco::Muon& muon) const;
79 
80 private:
81  std::vector<edm::InputTag> inputMuonCollections_;
82  std::vector<edm::InputTag> inputTrackCollections_;
85 
86  std::vector<edm::EDGetTokenT<reco::MuonCollection> > muonTokens_;
87  std::vector<edm::EDGetTokenT<reco::TrackCollection> > trackTokens_;
91 
92  double maxdxyLoose_;
93  double maxdzLoose_;
94  double maxdxyTight_;
95  double maxdzTight_;
101  double largedxy_;
102  double hIpTrdxy_;
103  double hIpTrvProb_;
104  double minvProb_;
105  double maxvertZ_;
106  double maxvertRho_;
107  unsigned int nTrackThreshold_;
116  double corrTimePos_;
117  double corrTimeNeg_;
118  double deltaPt_;
121  double sharedFrac_;
122  double ipThreshold_;
124  double segmentComp_;
125 };
126 #endif
MuonCosmicCompatibilityFiller::segmentComp_
double segmentComp_
Definition: MuonCosmicCompatibilityFiller.h:124
MuonCosmicCompatibilityFiller::hIpTrvProb_
double hIpTrvProb_
Definition: MuonCosmicCompatibilityFiller.h:103
MuonCosmicCompatibilityFiller::offTimeNegLoose_
double offTimeNegLoose_
Definition: MuonCosmicCompatibilityFiller.h:109
MuonCosmicCompatibilityFiller::offTimeNegLooseMult_
double offTimeNegLooseMult_
Definition: MuonCosmicCompatibilityFiller.h:113
Muon.h
MuonCosmicCompatibilityFiller::inputTrackCollections_
std::vector< edm::InputTag > inputTrackCollections_
Definition: MuonCosmicCompatibilityFiller.h:82
MuonCosmicCompatibilityFiller::cosmicToken_
edm::EDGetTokenT< reco::MuonCollection > cosmicToken_
Definition: MuonCosmicCompatibilityFiller.h:88
MuonCosmicCompatibilityFiller::trackTokens_
std::vector< edm::EDGetTokenT< reco::TrackCollection > > trackTokens_
Definition: MuonCosmicCompatibilityFiller.h:87
MuonCosmicCompatibilityFiller::~MuonCosmicCompatibilityFiller
~MuonCosmicCompatibilityFiller()
Definition: MuonCosmicCompatibilityFiller.cc:98
muon
Definition: MuonCocktails.h:17
edm::EDGetTokenT< reco::MuonCollection >
edm
HLT enums.
Definition: AlignableModifier.h:19
MuonCosmicCompatibilityFiller::maxdzTightMult_
double maxdzTightMult_
Definition: MuonCosmicCompatibilityFiller.h:99
MuonCosmicCompatibilityFiller::maxdxyLoose_
double maxdxyLoose_
Definition: MuonCosmicCompatibilityFiller.h:92
MuonCosmicCompatibilityFiller::hIpTrdxy_
double hIpTrdxy_
Definition: MuonCosmicCompatibilityFiller.h:102
MuonCosmicCompatibilityFiller::maxdzLoose_
double maxdzLoose_
Definition: MuonCosmicCompatibilityFiller.h:93
MuonCosmicCompatibilityFiller::nMuons
unsigned int nMuons(const edm::Event &) const
get number of muons in the vent
Definition: MuonCosmicCompatibilityFiller.cc:236
MuonCosmicCompatibilityFiller::largedxyMult_
double largedxyMult_
Definition: MuonCosmicCompatibilityFiller.h:100
MuonCosmicCompatibilityFiller::offTimePosLoose_
double offTimePosLoose_
Definition: MuonCosmicCompatibilityFiller.h:108
MuonCosmicCompatibilityFiller::maxdzTight_
double maxdzTight_
Definition: MuonCosmicCompatibilityFiller.h:95
ESGetToken.h
reco::Muon
Definition: Muon.h:27
MuonCosmicCompatibilityFiller::maxdxyTight_
double maxdxyTight_
Definition: MuonCosmicCompatibilityFiller.h:94
MuonCosmicCompatibilityFiller::largedxy_
double largedxy_
Definition: MuonCosmicCompatibilityFiller.h:101
MuonCosmicCompatibilityFiller::deltaPt_
double deltaPt_
Definition: MuonCosmicCompatibilityFiller.h:118
Track.h
TrackFwd.h
MuonCosmicCompatibilityFiller::sharedFrac_
double sharedFrac_
Definition: MuonCosmicCompatibilityFiller.h:121
MuonCosmicCompatibilityFiller::minvProb_
double minvProb_
Definition: MuonCosmicCompatibilityFiller.h:104
MuonCosmicCompatibilityFiller::geometryToken_
edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord > geometryToken_
Definition: MuonCosmicCompatibilityFiller.h:90
MuonCosmicCompatibilityFiller::fillCompatibility
reco::MuonCosmicCompatibility fillCompatibility(const reco::Muon &muon, edm::Event &, const edm::EventSetup &)
fill cosmic compatibility variables
Definition: MuonCosmicCompatibilityFiller.cc:100
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:381
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:488
MuonFwd.h
MuonCosmicCompatibilityFiller::maxdxyTightMult_
double maxdxyTightMult_
Definition: MuonCosmicCompatibilityFiller.h:98
MuonCosmicCompatibilityFiller::offTimeNegTightMult_
double offTimeNegTightMult_
Definition: MuonCosmicCompatibilityFiller.h:115
Event
MuonCosmicCompatibility.h
MuonCosmicCompatibilityFiller::maxvertZ_
double maxvertZ_
Definition: MuonCosmicCompatibilityFiller.h:105
MuonCosmicCompatibilityFiller::MuonCosmicCompatibilityFiller
MuonCosmicCompatibilityFiller(const edm::ParameterSet &, edm::ConsumesCollector &)
Definition: MuonCosmicCompatibilityFiller.cc:43
MuonCosmicCompatibilityFiller
Definition: MuonCosmicCompatibilityFiller.h:43
GlobalTrackingGeometryRecord.h
Vertex.h
MuonCosmicCompatibilityFiller::checkMuonID
bool checkMuonID(const reco::Muon &) const
tag a muon as cosmic based on the muonID information
Definition: MuonCosmicCompatibilityFiller.cc:618
edm::ParameterSet
Definition: ParameterSet.h:47
MuonCosmicCompatibilityFiller::inputCosmicMuonCollection_
edm::InputTag inputCosmicMuonCollection_
Definition: MuonCosmicCompatibilityFiller.h:83
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:588
MuonCosmicCompatibilityFiller::offTimePosTight_
double offTimePosTight_
Definition: MuonCosmicCompatibilityFiller.h:110
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:127
MuonCosmicCompatibilityFiller::vertexToken_
edm::EDGetTokenT< reco::VertexCollection > vertexToken_
Definition: MuonCosmicCompatibilityFiller.h:89
MuonCosmicCompatibilityFiller::offTimeNegTight_
double offTimeNegTight_
Definition: MuonCosmicCompatibilityFiller.h:111
iEvent
int iEvent
Definition: GenABIO.cc:224
reco::MuonCosmicCompatibility
Definition: MuonCosmicCompatibility.h:5
MuonCosmicCompatibilityFiller::inputMuonCollections_
std::vector< edm::InputTag > inputMuonCollections_
Definition: MuonCosmicCompatibilityFiller.h:81
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:211
edm::EventSetup
Definition: EventSetup.h:57
MuonCosmicCompatibilityFiller::corrTimePos_
double corrTimePos_
Definition: MuonCosmicCompatibilityFiller.h:116
MuonCosmicCompatibilityFiller::muonTokens_
std::vector< edm::EDGetTokenT< reco::MuonCollection > > muonTokens_
Definition: MuonCosmicCompatibilityFiller.h:86
MuonCosmicCompatibilityFiller::angleThreshold_
double angleThreshold_
Definition: MuonCosmicCompatibilityFiller.h:119
edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord >
MuonCosmicCompatibilityFiller::inputVertexCollection_
edm::InputTag inputVertexCollection_
Definition: MuonCosmicCompatibilityFiller.h:84
ValueMap.h
VertexFwd.h
MuonCosmicCompatibilityFiller::sharedHits_
int sharedHits_
Definition: MuonCosmicCompatibilityFiller.h:120
MuonCosmicCompatibilityFiller::offTimePosTightMult_
double offTimePosTightMult_
Definition: MuonCosmicCompatibilityFiller.h:114
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:256
MuonCosmicCompatibilityFiller::nTrackThreshold_
unsigned int nTrackThreshold_
Definition: MuonCosmicCompatibilityFiller.h:107
MuonCosmicCompatibilityFiller::corrTimeNeg_
double corrTimeNeg_
Definition: MuonCosmicCompatibilityFiller.h:117
Frameworkfwd.h
GlobalMuonRefitter
Definition: GlobalMuonRefitter.h:51
MuonCosmicCompatibilityFiller::maxvertRho_
double maxvertRho_
Definition: MuonCosmicCompatibilityFiller.h:106
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:627
MuonCosmicCompatibilityFiller::maxdxyLooseMult_
double maxdxyLooseMult_
Definition: MuonCosmicCompatibilityFiller.h:96
MuonCosmicCompatibilityFiller::ipThreshold_
double ipThreshold_
Definition: MuonCosmicCompatibilityFiller.h:122
ConsumesCollector.h
EventSetup
MuonCosmicCompatibilityFiller::offTimePosLooseMult_
double offTimePosLooseMult_
Definition: MuonCosmicCompatibilityFiller.h:112
MuonCosmicCompatibilityFiller::maxdzLooseMult_
double maxdzLooseMult_
Definition: MuonCosmicCompatibilityFiller.h:97
MuonCosmicCompatibilityFiller::nChamberMatches_
int nChamberMatches_
Definition: MuonCosmicCompatibilityFiller.h:123
GlobalTrackingGeometry.h
edm::Event
Definition: Event.h:73
edm::InputTag
Definition: InputTag.h:15
edm::ConsumesCollector
Definition: ConsumesCollector.h:45