CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TkGlbMuon.h
Go to the documentation of this file.
1 #ifndef DataFormatsL1TCorrelator_TkGlbMuon_h
2 #define DataFormatsL1TCorrelator_TkGlbMuon_h
3 
4 // -*- C++ -*-
5 //
6 // Package: L1Trigger
7 // Class : TkGlbMuon
8 
12 
14 
16 
17 namespace l1t {
18  class TkGlbMuon : public L1Candidate {
19  public:
21  typedef std::vector<L1TTTrackType> L1TTTrackCollection;
22 
23  TkGlbMuon() : theIsolation(-999.), TrkzVtx_(999.), quality_(999) {}
24 
25  TkGlbMuon(const LorentzVector& p4,
28  float tkisol = -999.);
29 
31  TkGlbMuon(const L1Candidate& cand) : L1Candidate(cand), theIsolation(-999.), TrkzVtx_(999.), quality_(999) {}
32 
33  const edm::Ptr<L1TTTrackType>& trkPtr() const { return trkPtr_; }
34 
35  const edm::Ref<MuonBxCollection>& muRef() const { return muRef_; }
36 
37  float trkIsol() const { return theIsolation; }
38  float trkzVtx() const { return TrkzVtx_; }
39 
40  float dR() const { return dR_; }
41  int nTracksMatched() const { return nTracksMatch_; }
42 
43  unsigned int quality() const { return quality_; }
44 
46 
47  void setTrkzVtx(float TrkzVtx) { TrkzVtx_ = TrkzVtx; }
48  void setTrkIsol(float TrkIsol) { theIsolation = TrkIsol; }
49 
50  void setdR(float dR) { dR_ = dR; }
51  void setNTracksMatched(int nTracksMatch) { nTracksMatch_ = nTracksMatch; }
52 
53  void setQuality(unsigned int q) { quality_ = q; }
54 
55  private:
56  // used for the Naive producer
58 
60 
61  float theIsolation;
62  float TrkzVtx_;
63  unsigned int quality_;
64  float dR_;
66  };
67 } // namespace l1t
68 
69 #endif
edm::Ref< MuonBxCollection > muRef_
Definition: TkGlbMuon.h:57
float TrkzVtx_
Definition: TkGlbMuon.h:62
float dR() const
Definition: TkGlbMuon.h:40
edm::Ptr< L1TTTrackType > trkPtr_
Definition: TkGlbMuon.h:59
std::vector< L1TTTrackType > L1TTTrackCollection
Definition: TkGlbMuon.h:21
const LorentzVector & p4() const final
four-momentum Lorentz vector
int nTracksMatched() const
Definition: TkGlbMuon.h:41
double p() const final
magnitude of momentum vector
float trkzVtx() const
Definition: TkGlbMuon.h:38
const edm::Ptr< L1TTTrackType > & trkPtr() const
Definition: TkGlbMuon.h:33
float theIsolation
Definition: TkGlbMuon.h:61
void setTrkzVtx(float TrkzVtx)
Definition: TkGlbMuon.h:47
math::XYZTLorentzVector LorentzVector
float trkIsol() const
Definition: TkGlbMuon.h:37
unsigned int quality_
Definition: TkGlbMuon.h:63
void setTrkPtr(const edm::Ptr< L1TTTrackType > &p)
Definition: TkGlbMuon.h:45
void setdR(float dR)
Definition: TkGlbMuon.h:50
const edm::Ref< MuonBxCollection > & muRef() const
Definition: TkGlbMuon.h:35
Class to store the L1 Track Trigger tracks.
Definition: TTTrack.h:29
TkGlbMuon(const L1Candidate &cand)
more basic constructor, in case refs/ptrs can&#39;t be set or to be set separately
Definition: TkGlbMuon.h:31
void setNTracksMatched(int nTracksMatch)
Definition: TkGlbMuon.h:51
int nTracksMatch_
Definition: TkGlbMuon.h:65
void setTrkIsol(float TrkIsol)
Definition: TkGlbMuon.h:48
TTTrack< Ref_Phase2TrackerDigi_ > L1TTTrackType
Definition: TkGlbMuon.h:20
unsigned int quality() const
Definition: TkGlbMuon.h:43
void setQuality(unsigned int q)
Definition: TkGlbMuon.h:53