CMS 3D CMS Logo

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 
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
l1t::TkGlbMuon
Definition: TkGlbMuon.h:18
l1t::TkGlbMuon::setTrkzVtx
void setTrkzVtx(float TrkzVtx)
Definition: TkGlbMuon.h:47
Muon.h
l1t::TkGlbMuon::setTrkPtr
void setTrkPtr(const edm::Ptr< L1TTTrackType > &p)
Definition: TkGlbMuon.h:45
l1t::TkGlbMuon::setdR
void setdR(float dR)
Definition: TkGlbMuon.h:50
data-class-funcs.q
q
Definition: data-class-funcs.py:169
TTTrack
Class to store the L1 Track Trigger tracks.
Definition: TTTrack.h:26
l1t::TkGlbMuon::L1TTTrackType
TTTrack< Ref_Phase2TrackerDigi_ > L1TTTrackType
Definition: TkGlbMuon.h:20
l1t::TkGlbMuon::TkGlbMuon
TkGlbMuon(const L1Candidate &cand)
more basic constructor, in case refs/ptrs can't be set or to be set separately
Definition: TkGlbMuon.h:31
l1t::TkGlbMuon::dR_
float dR_
Definition: TkGlbMuon.h:64
edm::Ref< MuonBxCollection >
l1t::TkGlbMuon::setQuality
void setQuality(unsigned int q)
Definition: TkGlbMuon.h:53
l1t::TkGlbMuon::setTrkIsol
void setTrkIsol(float TrkIsol)
Definition: TkGlbMuon.h:48
l1t::TkGlbMuon::muRef_
edm::Ref< MuonBxCollection > muRef_
Definition: TkGlbMuon.h:57
l1t::L1Candidate
Definition: L1Candidate.h:15
l1t::TkGlbMuon::dR
float dR() const
Definition: TkGlbMuon.h:40
l1t::TkGlbMuon::setNTracksMatched
void setNTracksMatched(int nTracksMatch)
Definition: TkGlbMuon.h:51
l1t::TkGlbMuon::TrkzVtx_
float TrkzVtx_
Definition: TkGlbMuon.h:62
l1t::TkGlbMuon::nTracksMatch_
int nTracksMatch_
Definition: TkGlbMuon.h:65
l1t::TkGlbMuon::TkGlbMuon
TkGlbMuon()
Definition: TkGlbMuon.h:23
l1t
delete x;
Definition: CaloConfig.h:22
cand
Definition: decayParser.h:34
Ptr.h
reco::LeafCandidate::p4
const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:114
TkEm.h
L1Candidate.h
l1t::TkGlbMuon::trkPtr_
edm::Ptr< L1TTTrackType > trkPtr_
Definition: TkGlbMuon.h:59
l1t::TkGlbMuon::nTracksMatched
int nTracksMatched() const
Definition: TkGlbMuon.h:41
l1t::TkGlbMuon::trkIsol
float trkIsol() const
Definition: TkGlbMuon.h:37
l1t::TkGlbMuon::L1TTTrackCollection
std::vector< L1TTTrackType > L1TTTrackCollection
Definition: TkGlbMuon.h:21
edm::Ptr
Definition: AssociationVector.h:31
Ref.h
l1t::TkGlbMuon::quality
unsigned int quality() const
Definition: TkGlbMuon.h:43
l1t::TkGlbMuon::trkzVtx
float trkzVtx() const
Definition: TkGlbMuon.h:38
LorentzVector
math::XYZTLorentzVector LorentzVector
Definition: HLTMuonMatchAndPlot.h:49
reco::LeafCandidate::p
double p() const final
magnitude of momentum vector
Definition: LeafCandidate.h:123
l1t::TkGlbMuon::muRef
const edm::Ref< MuonBxCollection > & muRef() const
Definition: TkGlbMuon.h:35
l1t::TkGlbMuon::theIsolation
float theIsolation
Definition: TkGlbMuon.h:61
l1t::TkGlbMuon::trkPtr
const edm::Ptr< L1TTTrackType > & trkPtr() const
Definition: TkGlbMuon.h:33
l1t::TkGlbMuon::quality_
unsigned int quality_
Definition: TkGlbMuon.h:63