CMS 3D CMS Logo

L1CaloTkTau.h
Go to the documentation of this file.
1 #ifndef DataFormatsL1TCorrelator_TkCaloTkTau_h
2 #define DataFormatsL1TCorrelator_TkCaloTkTau_h
3 
4 // -*- C++ -*-
5 //
6 // Package: L1Trigger
7 // Class : L1CaloTkTau
8 //
9 
12 
15 
18 
19 #include <vector>
20 
21 namespace l1t {
22 
23  class L1CaloTkTau;
24 
25  typedef std::vector<L1CaloTkTau> L1CaloTkTauCollection;
26 
29  typedef std::vector<L1CaloTkTauRef> L1CaloTkTauVectorRef;
30 
32  typedef std::vector<L1TTTrackType> L1TTTrackCollection;
34  typedef std::vector<L1TTTrackRefPtr> L1TTTrackRefPtr_Collection;
35 
36  class L1CaloTkTau : public L1Candidate {
37  public:
38  L1CaloTkTau();
39 
40  L1CaloTkTau(const LorentzVector& p4, // caloTau calibrated p4
41  const LorentzVector& tracksP4,
42  const std::vector<L1TTTrackRefPtr>& clustTracks,
43  Tau& caloTau,
44  float vtxIso = -999.);
45 
46  // ---------- const member functions ---------------------
47 
48  const L1TTTrackRefPtr seedTrk() const { return clustTracks_.at(0); }
49 
50  float vtxIso() const { return vtxIso_; }
51 
52  LorentzVector trackBasedP4() const { return tracksP4_; }
53 
54  float trackBasedEt() const { return tracksP4_.Et(); }
55 
56  Tau caloTau() const { return caloTau_; }
57 
58  // ---------- member functions ---------------------------
59 
60  void setVtxIso(float VtxIso) { vtxIso_ = VtxIso; }
61 
62  private:
64  std::vector<L1TTTrackRefPtr> clustTracks_;
66  float vtxIso_;
67  };
68 } // namespace l1t
69 
70 #endif
l1t::L1CaloTkTau::tracksP4_
LorentzVector tracksP4_
Definition: L1CaloTkTau.h:63
TTTypes.h
l1t::L1CaloTkTau::setVtxIso
void setVtxIso(float VtxIso)
Definition: L1CaloTkTau.h:60
l1t::L1CaloTkTau::vtxIso
float vtxIso() const
Definition: L1CaloTkTau.h:50
l1t::L1TTTrackRefPtr_Collection
std::vector< L1TTTrackRefPtr > L1TTTrackRefPtr_Collection
Definition: L1CaloTkTau.h:34
l1t::L1CaloTkTau::vtxIso_
float vtxIso_
Definition: L1CaloTkTau.h:66
reco::JetTracksAssociation::tracksP4
LorentzVector tracksP4(const Container &, const reco::JetBaseRef)
Get LorentzVector as sum of all tracks associated with jet.
Definition: JetTracksAssociation.cc:14
TTTrack
Class to store the L1 Track Trigger tracks.
Definition: TTTrack.h:26
l1t::L1TTTrackType
TTTrack< Ref_Phase2TrackerDigi_ > L1TTTrackType
Definition: L1CaloTkTau.h:31
edm::RefVector
Definition: EDProductfwd.h:27
Tau
Definition: Tau.py:1
l1t::L1CaloTkTauVectorRef
std::vector< L1CaloTkTauRef > L1CaloTkTauVectorRef
Definition: L1CaloTkTau.h:29
l1t::L1CaloTkTau::clustTracks_
std::vector< L1TTTrackRefPtr > clustTracks_
Definition: L1CaloTkTau.h:64
edm::Ref
Definition: AssociativeIterator.h:58
GenParticle.h
l1t::L1CaloTkTau::trackBasedP4
LorentzVector trackBasedP4() const
Definition: L1CaloTkTau.h:52
l1t::L1Candidate
Definition: L1Candidate.h:15
l1t::L1CaloTkTau
Definition: L1CaloTkTau.h:36
TTTrack.h
l1t
delete x;
Definition: CaloConfig.h:22
l1t::L1CaloTkTau::caloTau_
Tau caloTau_
Definition: L1CaloTkTau.h:65
l1t::L1CaloTkTau::L1CaloTkTau
L1CaloTkTau()
Definition: L1CaloTkTau.cc:11
reco::LeafCandidate::p4
const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:114
l1t::L1TTTrackRefPtr
edm::Ptr< L1TTTrackType > L1TTTrackRefPtr
Definition: L1CaloTkTau.h:33
L1Candidate.h
l1t::L1CaloTkTau::caloTau
Tau caloTau() const
Definition: L1CaloTkTau.h:56
l1t::L1CaloTkTauRef
edm::Ref< L1CaloTkTauCollection > L1CaloTkTauRef
Definition: L1CaloTkTau.h:27
edm::Ptr
Definition: AssociationVector.h:31
Ref.h
l1t::L1CaloTkTau::seedTrk
const L1TTTrackRefPtr seedTrk() const
Definition: L1CaloTkTau.h:48
l1t::L1CaloTkTau::trackBasedEt
float trackBasedEt() const
Definition: L1CaloTkTau.h:54
l1t::L1CaloTkTauRefVector
edm::RefVector< L1CaloTkTauCollection > L1CaloTkTauRefVector
Definition: L1CaloTkTau.h:28
l1t::L1CaloTkTauCollection
std::vector< L1CaloTkTau > L1CaloTkTauCollection
Definition: L1CaloTkTau.h:23
l1t::L1TTTrackCollection
std::vector< L1TTTrackType > L1TTTrackCollection
Definition: L1CaloTkTau.h:32
reco::Candidate::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
Tau.h