CMS 3D CMS Logo

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(),
42  tune1,
43  tune2,
44  dptcut);
45  }
46 
48 
49  // The cocktail used as the soon-to-be-old default momentum
50  // assignment for the reco::Muon.
52  const reco::TrackRef& trackerTrack,
53  const double nSigma = 2.,
54  const double ptThreshold = 200.);
55 
56  // Convenience version of the above.
58  const double nSigma = 2.,
59  const double ptThreshold = 200.) {
60  return muon::sigmaSwitch(muon.globalTrack(), muon.innerTrack(), nSigma, ptThreshold);
61  }
62 
63  // "Truncated muon reconstructor": the first cocktail, between just
64  // tracker-only and TPFMS. Similar to tevOptimized.
66  const reco::TrackRef& fmsTrack,
67  const double tune = 4.);
68 
70 } // namespace muon
71 
72 #endif
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
reco::Muon::MuonTrackTypePair TMR(const reco::TrackRef &trackerTrack, const reco::TrackRef &fmsTrack, const double tune=4.)
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:38