CMS 3D CMS Logo

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  bool displacedTag = false);
37 
38  // ---------- const member functions ---------------------
39 
40  const edm::Ref<JetBxCollection>& jetRef() const { return jetRef_; }
41 
42  const std::vector<edm::Ptr<L1TTTrackType> >& trkPtrs() const { return trkPtrs_; }
43 
44  float jetVtx() const { return JetVtx_; }
45  unsigned int ntracks() const { return ntracks_; }
46  unsigned int nTighttracks() const { return tighttracks_; }
47  unsigned int nDisptracks() const { return displacedtracks_; }
48  unsigned int nTightDisptracks() const { return tightdisplacedtracks_; }
49  bool isDisplaced() const { return displacedTag_; }
50 
51  // ---------- member functions ---------------------------
52  void setJetVtx(float JetVtx) { JetVtx_ = JetVtx; }
53 
54  int bx() const;
55 
56  private:
58  std::vector<edm::Ptr<L1TTTrackType> > trkPtrs_;
59  float JetVtx_;
62  };
63 } // namespace l1t
64 
65 #endif
TkJet()
Definition: TkJet.cc:11
const std::vector< edm::Ptr< L1TTTrackType > > & trkPtrs() const
Definition: TkJet.h:42
edm::Ref< JetBxCollection > jetRef_
Definition: TkJet.h:57
float JetVtx_
Definition: TkJet.h:59
bool displacedTag_
Definition: TkJet.h:61
unsigned int ntracks_
Definition: TkJet.h:60
unsigned int ntracks() const
Definition: TkJet.h:45
std::vector< L1TTTrackType > L1TTTrackCollection
Definition: TkJet.h:21
delete x;
Definition: CaloConfig.h:22
TTTrack< Ref_Phase2TrackerDigi_ > L1TTTrackType
Definition: TkJet.h:20
int bx() const
Definition: TkJet.cc:49
const LorentzVector & p4() const final
four-momentum Lorentz vector
std::vector< edm::Ptr< L1TTTrackType > > trkPtrs_
Definition: TkJet.h:58
unsigned int nTightDisptracks() const
Definition: TkJet.h:48
bool isDisplaced() const
Definition: TkJet.h:49
unsigned int tightdisplacedtracks_
Definition: TkJet.h:60
Class to store the L1 Track Trigger tracks.
Definition: TTTrack.h:29
unsigned int tighttracks_
Definition: TkJet.h:60
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
const edm::Ref< JetBxCollection > & jetRef() const
Definition: TkJet.h:40
unsigned int displacedtracks_
Definition: TkJet.h:60
void setJetVtx(float JetVtx)
Definition: TkJet.h:52
unsigned int nTighttracks() const
Definition: TkJet.h:46
float jetVtx() const
Definition: TkJet.h:44
unsigned int nDisptracks() const
Definition: TkJet.h:47