CMS 3D CMS Logo

Tau.h
Go to the documentation of this file.
1 #ifndef DataFormats_L1Trigger_Tau_h
2 #define DataFormats_L1Trigger_Tau_h
3 
7 
8 namespace l1t {
9 
10  class Tau;
14  typedef std::vector<TauRef> TauVectorRef;
15 
19 
20  class Tau : public L1Candidate {
21  public:
23 
24  // ctor from base allowed, but note that extended variables will be set to zero:
25  Tau(const L1Candidate& rhs) : L1Candidate(rhs) { clear_extended(); }
26 
27  Tau(const LorentzVector& p4, int pt = 0, int eta = 0, int phi = 0, int qual = 0, int iso = 0);
28  Tau(const PolarLorentzVector& p4, int pt = 0, int eta = 0, int phi = 0, int qual = 0, int iso = 0);
29 
30  ~Tau() override;
31 
32  void setTowerIEta(short int ieta); // ieta of seed tower
33  void setTowerIPhi(short int iphi); // iphi of seed tower
34  void setRawEt(short int et); // raw (uncalibrated) cluster sum
35  void setIsoEt(short int et); // raw isolation sum - cluster sum
36  void setNTT(short int ntt); // n towers above threshold
37  void setHasEM(bool hasEM);
38  void setIsMerged(bool isMerged);
39 
40  short int towerIEta() const;
41  short int towerIPhi() const;
42  short int rawEt() const;
43  short int isoEt() const;
44  short int nTT() const;
45  bool hasEM() const;
46  bool isMerged() const;
47 
48  virtual bool operator==(const l1t::Tau& rhs) const;
49  virtual inline bool operator!=(const l1t::Tau& rhs) const { return !(operator==(rhs)); };
50 
51  private:
52  // additional hardware quantities common to L1 global tau
53  void clear_extended();
54  short int towerIEta_;
55  short int towerIPhi_;
56  short int rawEt_;
57  short int isoEt_;
58  short int nTT_;
59  bool hasEM_;
60  bool isMerged_;
61  };
62 
63 } // namespace l1t
64 
65 #endif
l1t::TauRef
edm::Ref< TauBxCollection > TauRef
Definition: Tau.h:12
l1t::Tau::nTT
short int nTT() const
BXVector.h
l1t::Tau::isMerged_
bool isMerged_
Definition: Tau.h:60
l1t::Tau::clear_extended
void clear_extended()
l1t::Tau::towerIPhi
short int towerIPhi() const
l1t::Tau::setNTT
void setNTT(short int ntt)
l1t::Tau::hasEM_
bool hasEM_
Definition: Tau.h:59
l1t::Tau::setTowerIEta
void setTowerIEta(short int ieta)
edm::RefVector
Definition: EDProductfwd.h:27
reco::LeafCandidate::pt
double pt() const final
transverse momentum
Definition: LeafCandidate.h:146
Tau
Definition: Tau.py:1
edm::Ref< TauBxCollection >
LEDCalibrationChannels.iphi
iphi
Definition: LEDCalibrationChannels.py:64
BXVector
Definition: BXVector.h:15
l1t::Tau
Definition: Tau.h:20
l1t::L1Candidate
Definition: L1Candidate.h:15
l1t::Tau::~Tau
~Tau() override
l1t::Tau::setTowerIPhi
void setTowerIPhi(short int iphi)
l1t::Tau::Tau
Tau()
Definition: Tau.h:22
reco::LeafCandidate::PolarLorentzVector
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: LeafCandidate.h:25
l1t::Tau::operator==
virtual bool operator==(const l1t::Tau &rhs) const
l1t::TauRefVector
edm::RefVector< TauBxCollection > TauRefVector
Definition: Tau.h:13
l1t::Tau::setIsMerged
void setIsMerged(bool isMerged)
l1t::TauRefPair
ObjectRefPair< Tau > TauRefPair
Definition: Tau.h:17
l1t::Tau::setHasEM
void setHasEM(bool hasEM)
LEDCalibrationChannels.ieta
ieta
Definition: LEDCalibrationChannels.py:63
reco::LeafCandidate::eta
double eta() const final
momentum pseudorapidity
Definition: LeafCandidate.h:152
l1t::Tau::isoEt_
short int isoEt_
Definition: Tau.h:57
l1t
delete x;
Definition: CaloConfig.h:22
l1t::Tau::Tau
Tau(const L1Candidate &rhs)
Definition: Tau.h:25
l1t::Tau::setIsoEt
void setIsoEt(short int et)
l1t::TauBxCollection
BXVector< Tau > TauBxCollection
Definition: Tau.h:10
reco::LeafCandidate::p4
const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:114
l1t::ObjectRefPair
std::pair< edm::Ref< BXVector< T > >, edm::Ref< BXVector< T > >> ObjectRefPair
Definition: L1TObjComparison.h:14
L1Candidate.h
l1t::Tau::towerIEta
short int towerIEta() const
l1t::Tau::hasEM
bool hasEM() const
reco::LeafCandidate::et
double et() const final
transverse energy
Definition: LeafCandidate.h:127
l1t::Tau::towerIEta_
short int towerIEta_
Definition: Tau.h:54
l1t::Tau::isoEt
short int isoEt() const
reco::LeafCandidate::phi
double phi() const final
momentum azimuthal angle
Definition: LeafCandidate.h:148
l1t::Tau::operator!=
virtual bool operator!=(const l1t::Tau &rhs) const
Definition: Tau.h:49
l1t::Tau::towerIPhi_
short int towerIPhi_
Definition: Tau.h:55
LorentzVector
math::XYZTLorentzVector LorentzVector
Definition: HLTMuonMatchAndPlot.h:49
l1t::Tau::nTT_
short int nTT_
Definition: Tau.h:58
l1t::TauRefPairBxCollection
ObjectRefPairBxCollection< Tau > TauRefPairBxCollection
Definition: Tau.h:18
l1t::TauVectorRef
std::vector< TauRef > TauVectorRef
Definition: Tau.h:14
l1t::Tau::isMerged
bool isMerged() const
l1t::Tau::setRawEt
void setRawEt(short int et)
l1t::Tau::rawEt
short int rawEt() const
l1t::TauRefBxCollection
ObjectRefBxCollection< Tau > TauRefBxCollection
Definition: Tau.h:16
L1TObjComparison.h
l1t::Tau::rawEt_
short int rawEt_
Definition: Tau.h:56