CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TkJet.h
Go to the documentation of this file.
1 #ifndef DataFormatsL1TCorrelator_TkJet_h
2 #define DataFormatsL1TCorrelator_TkJet_h
3 
4 // -*- C++ -*-
5 //
6 // Package: L1Trigger
7 // Class : TkJet
8 //
9 
12 
15 
16 namespace l1t {
17 
18  class TkJet : public L1Candidate {
19  public:
21  typedef std::vector<L1TTTrackType> L1TTTrackCollection;
22 
23  TkJet();
24 
25  TkJet(const LorentzVector& p4,
28  float jetvtx = -999.);
29  TkJet(const LorentzVector& p4,
31  float jetvtx = -999.,
32  unsigned int ntracks = 0,
33  unsigned int tighttracks = 0,
34  unsigned int displacedtracks = 0,
35  unsigned int tightdisplacedtracks = 0);
36 
37  // ---------- const member functions ---------------------
38 
39  const edm::Ref<JetBxCollection>& jetRef() const { return jetRef_; }
40 
41  const std::vector<edm::Ptr<L1TTTrackType> >& trkPtrs() const { return trkPtrs_; }
42 
43  float jetVtx() const { return JetVtx_; }
44  unsigned int ntracks() const { return ntracks_; }
45  unsigned int nTighttracks() const { return tighttracks_; }
46  unsigned int nDisptracks() const { return displacedtracks_; }
47  unsigned int nTightDisptracks() const { return tightdisplacedtracks_; }
48 
49  // ---------- member functions ---------------------------
50  void setJetVtx(float JetVtx) { JetVtx_ = JetVtx; }
51 
52  int bx() const;
53 
54  private:
56  std::vector<edm::Ptr<L1TTTrackType> > trkPtrs_;
57  float JetVtx_;
59  };
60 } // namespace l1t
61 
62 #endif
TkJet()
Definition: TkJet.cc:11
edm::Ref< JetBxCollection > jetRef_
Definition: TkJet.h:55
float JetVtx_
Definition: TkJet.h:57
const edm::Ref< JetBxCollection > & jetRef() const
Definition: TkJet.h:39
unsigned int ntracks_
Definition: TkJet.h:58
float jetVtx() const
Definition: TkJet.h:43
std::vector< L1TTTrackType > L1TTTrackCollection
Definition: TkJet.h:21
TTTrack< Ref_Phase2TrackerDigi_ > L1TTTrackType
Definition: TkJet.h:20
unsigned int nTighttracks() const
Definition: TkJet.h:45
const LorentzVector & p4() const final
four-momentum Lorentz vector
int bx() const
Definition: TkJet.cc:32
std::vector< edm::Ptr< L1TTTrackType > > trkPtrs_
Definition: TkJet.h:56
unsigned int nTightDisptracks() const
Definition: TkJet.h:47
const std::vector< edm::Ptr< L1TTTrackType > > & trkPtrs() const
Definition: TkJet.h:41
unsigned int tightdisplacedtracks_
Definition: TkJet.h:58
unsigned int nDisptracks() const
Definition: TkJet.h:46
Class to store the L1 Track Trigger tracks.
Definition: TTTrack.h:29
unsigned int tighttracks_
Definition: TkJet.h:58
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
unsigned int displacedtracks_
Definition: TkJet.h:58
void setJetVtx(float JetVtx)
Definition: TkJet.h:50
unsigned int ntracks() const
Definition: TkJet.h:44