CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MuonCocktails.h
Go to the documentation of this file.
1 #ifndef MuonReco_MuonCocktails_h
2 #define MuonReco_MuonCocktails_h
3 
16 
17 namespace muon {
18 
20  const reco::TrackRef& trackerTrack,
21  const reco::TrackRef& tpfmsTrack,
22  const reco::TrackRef& pickyTrack,
23  const reco::TrackRef& dytTrack,
24  const double ptThreshold = 200.,
25  const double tune1 = 17.,
26  const double tune2 = 40.,
27  const double dptcut = 0.25);
28 
29  // Version for convenience. (NB: can be used with pat::Muon, even
30  // with embedded tracks, equally conveniently!)
32  const double ptThreshold = 200.,
33  const double tune1 = 17.,
34  const double tune2 = 40.,
35  const double dptcut = 0.25) {
36  return tevOptimized(muon.globalTrack(),
37  muon.innerTrack(),
38  muon.tpfmsTrack(),
39  muon.pickyTrack(),
40  muon.dytTrack(),
41  ptThreshold,
42  tune1,
43  tune2,
44  dptcut);
45  }
46 
47  reco::TrackRef getTevRefitTrack(const reco::TrackRef& combinedTrack,
48  const reco::TrackToTrackMap& map);
49 
50  // The cocktail used as the soon-to-be-old default momentum
51  // assignment for the reco::Muon.
53  const reco::TrackRef& trackerTrack,
54  const double nSigma = 2.,
55  const double ptThreshold = 200.);
56 
57  // Convenience version of the above.
59  const double nSigma = 2.,
60  const double ptThreshold = 200.) {
61  return muon::sigmaSwitch(muon.globalTrack(),
62  muon.innerTrack(),
63  nSigma,
64  ptThreshold);
65  }
66 
67  // "Truncated muon reconstructor": the first cocktail, between just
68  // tracker-only and TPFMS. Similar to tevOptimized.
70  const reco::TrackRef& fmsTrack,
71  const double tune=4.);
72 
73  double trackProbability(const reco::TrackRef track);
74 }
75 
76 #endif
virtual TrackRef innerTrack() const
Definition: Muon.h:48
virtual TrackRef tpfmsTrack() const
Definition: Muon.h:57
reco::Muon::MuonTrackTypePair sigmaSwitch(const reco::TrackRef &combinedTrack, const reco::TrackRef &trackerTrack, const double nSigma=2., const double ptThreshold=200.)
reco::Muon::MuonTrackTypePair tevOptimized(const reco::TrackRef &combinedTrack, const reco::TrackRef &trackerTrack, const reco::TrackRef &tpfmsTrack, const reco::TrackRef &pickyTrack, const reco::TrackRef &dytTrack, const double ptThreshold=200., const double tune1=17., const double tune2=40., const double dptcut=0.25)
Definition: MuonCocktails.cc:9
virtual TrackRef pickyTrack() const
Definition: Muon.h:58
reco::Muon::MuonTrackTypePair TMR(const reco::TrackRef &trackerTrack, const reco::TrackRef &fmsTrack, const double tune=4.)
virtual TrackRef dytTrack() const
Definition: Muon.h:59
reco::TrackRef getTevRefitTrack(const reco::TrackRef &combinedTrack, const reco::TrackToTrackMap &map)
double trackProbability(const reco::TrackRef track)
std::pair< TrackRef, Muon::MuonTrackType > MuonTrackTypePair
Definition: Muon.h:40
virtual TrackRef globalTrack() const
reference to Track reconstructed in both tracked and muon detector
Definition: Muon.h:54