CMS 3D CMS Logo

TkEGTau.h
Go to the documentation of this file.
1 #ifndef DataFormatsL1TCorrelator_TkEGTau_h
2 #define DataFormatsL1TCorrelator_TkEGTau_h
3 
4 // -*- C++ -*-
5 //
6 // Package: L1Trigger
7 // Class : TkEGTau
8 //
9 
12 
15 
18 
19 #include <vector>
20 
21 namespace l1t {
22 
23  class TkEGTau;
24 
25  typedef std::vector<TkEGTau> TkEGTauCollection;
26 
29  typedef std::vector<TkEGTauRef> TkEGTauVectorRef;
30 
32  typedef std::vector<L1TTTrackType> L1TTTrackCollection;
34  typedef std::vector<L1TTTrackRefPtr> L1TTTrackRefPtr_Collection;
36  typedef std::vector<EGammaRef> EGammaVectorRef;
37 
38  class TkEGTau : public L1Candidate {
39  public:
40  TkEGTau();
41 
42  TkEGTau(const LorentzVector& p4,
43  const std::vector<L1TTTrackRefPtr>& clustTracks,
44  const std::vector<EGammaRef>& clustEGs,
45  float iso = -999.);
46 
47  // ---------- const member functions ---------------------
48 
49  const L1TTTrackRefPtr seedTrk() const { return clustTracks_.at(0); }
50 
51  const std::vector<L1TTTrackRefPtr> trks() const { return clustTracks_; }
52 
53  const std::vector<EGammaRef> EGs() const { return clustEGs_; }
54 
55  float iso() const { return iso_; }
56 
57  // ---------- member functions ---------------------------
58 
59  void setVtxIso(float iso) { iso_ = iso; }
60 
61  private:
62  std::vector<L1TTTrackRefPtr> clustTracks_;
63  std::vector<EGammaRef> clustEGs_;
64  float iso_;
65  };
66 } // namespace l1t
67 
68 #endif
const std::vector< L1TTTrackRefPtr > trks() const
Definition: TkEGTau.h:51
edm::Ref< EGammaBxCollection > EGammaRef
Definition: TkEGTau.h:35
edm::Ptr< L1TTTrackType > L1TTTrackRefPtr
Definition: L1CaloTkTau.h:33
std::vector< TkEGTauRef > TkEGTauVectorRef
Definition: TkEGTau.h:29
float iso_
Definition: TkEGTau.h:64
edm::Ref< TkEGTauCollection > TkEGTauRef
Definition: TkEGTau.h:27
delete x;
Definition: CaloConfig.h:22
edm::RefVector< TkEGTauCollection > TkEGTauRefVector
Definition: TkEGTau.h:28
const LorentzVector & p4() const final
four-momentum Lorentz vector
std::vector< L1TTTrackType > L1TTTrackCollection
Definition: L1CaloTkTau.h:32
std::vector< EGammaRef > clustEGs_
Definition: TkEGTau.h:63
const std::vector< EGammaRef > EGs() const
Definition: TkEGTau.h:53
float iso() const
Definition: TkEGTau.h:55
std::vector< L1TTTrackRefPtr > clustTracks_
Definition: TkEGTau.h:62
void setVtxIso(float iso)
Definition: TkEGTau.h:59
const L1TTTrackRefPtr seedTrk() const
Definition: TkEGTau.h:49
std::vector< L1TTTrackRefPtr > L1TTTrackRefPtr_Collection
Definition: L1CaloTkTau.h:34
Class to store the L1 Track Trigger tracks.
Definition: TTTrack.h:29
TTTrack< Ref_Phase2TrackerDigi_ > L1TTTrackType
Definition: L1CaloTkTau.h:31
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
std::vector< EGammaRef > EGammaVectorRef
Definition: TkEGTau.h:36
std::vector< TkEGTau > TkEGTauCollection
Definition: TkEGTau.h:23