CMS 3D CMS Logo

EGamma.h
Go to the documentation of this file.
1 #ifndef DataFormats_L1Trigger_EGamma_h
2 #define DataFormats_L1Trigger_EGamma_h
3 
7 
8 namespace l1t {
9 
10  class EGamma;
14  typedef std::vector<EGammaRef> EGammaVectorRef;
15 
19 
20  class EGamma : public L1Candidate {
21  public:
23 
24  // ctor from base allowed, but note that extended variables will be set to zero:
25  EGamma(const L1Candidate& rhs) : L1Candidate(rhs) { clear_extended(); }
26 
27  EGamma(const LorentzVector& p4, int pt = 0, int eta = 0, int phi = 0, int qual = 0, int iso = 0);
28 
29  EGamma(const PolarLorentzVector& p4, int pt = 0, int eta = 0, int phi = 0, int qual = 0, int iso = 0);
30 
31  ~EGamma() override;
32 
33  void setTowerIEta(short int ieta); // ieta of seed tower
34  void setTowerIPhi(short int iphi); // iphi of seed tower
35  void setRawEt(short int pt); // raw (uncalibrated) cluster sum
36  void setIsoEt(short int iso); // raw isolation sum - cluster sum
37  void setFootprintEt(short int fp); // raw footprint
38  void setNTT(short int ntt); // n towers above threshold
39  void setShape(short int s); // cluster shape variable
40  void setTowerHoE(short int HoE); // H/E as computed in Layer-1
41 
42  short int towerIEta() const;
43  short int towerIPhi() const;
44  short int rawEt() const;
45  short int isoEt() const;
46  short int footprintEt() const;
47  short int nTT() const;
48  short int shape() const;
49  short int towerHoE() const;
50 
51  virtual bool operator==(const l1t::EGamma& rhs) const;
52  virtual inline bool operator!=(const l1t::EGamma& rhs) const { return !(operator==(rhs)); };
53 
54  private:
55  // additional hardware quantities common to L1 global EG
56  void clear_extended();
57  short int towerIEta_;
58  short int towerIPhi_;
59  short int rawEt_;
60  short int isoEt_;
61  short int footprintEt_;
62  short int nTT_;
63  short int shape_;
64  short int towerHoE_;
65  };
66 
67 } // namespace l1t
68 
69 #endif
BXVector< EGamma > EGammaBxCollection
Definition: EGamma.h:10
void setRawEt(short int pt)
Definition: EGamma.cc:32
virtual bool operator==(const l1t::EGamma &rhs) const
Definition: EGamma.cc:60
virtual bool operator!=(const l1t::EGamma &rhs) const
Definition: EGamma.h:52
short int rawEt_
Definition: EGamma.h:59
ObjectRefBxCollection< EGamma > EGammaRefBxCollection
Definition: EGamma.h:16
EGamma(const L1Candidate &rhs)
Definition: EGamma.h:25
double pt() const final
transverse momentum
edm::Ref< EGammaBxCollection > EGammaRef
Definition: TkEGTau.h:35
short int towerIPhi() const
Definition: EGamma.cc:46
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: LeafCandidate.h:25
short int towerIPhi_
Definition: EGamma.h:58
short int towerIEta() const
Definition: EGamma.cc:44
short int rawEt() const
Definition: EGamma.cc:48
delete x;
Definition: CaloConfig.h:22
ObjectRefPairBxCollection< EGamma > EGammaRefPairBxCollection
Definition: EGamma.h:18
short int towerHoE_
Definition: EGamma.h:64
std::pair< edm::Ref< BXVector< T > >, edm::Ref< BXVector< T > >> ObjectRefPair
const LorentzVector & p4() const final
four-momentum Lorentz vector
void clear_extended()
Definition: EGamma.cc:5
void setTowerHoE(short int HoE)
Definition: EGamma.cc:42
void setNTT(short int ntt)
Definition: EGamma.cc:38
short int isoEt() const
Definition: EGamma.cc:50
short int shape_
Definition: EGamma.h:63
short int isoEt_
Definition: EGamma.h:60
short int shape() const
Definition: EGamma.cc:56
math::XYZTLorentzVector LorentzVector
void setFootprintEt(short int fp)
Definition: EGamma.cc:36
void setTowerIEta(short int ieta)
Definition: EGamma.cc:28
short int towerIEta_
Definition: EGamma.h:57
short int footprintEt_
Definition: EGamma.h:61
void setShape(short int s)
Definition: EGamma.cc:40
void setIsoEt(short int iso)
Definition: EGamma.cc:34
~EGamma() override
Definition: EGamma.cc:26
std::vector< EGammaRef > EGammaVectorRef
Definition: TkEGTau.h:36
edm::RefVector< EGammaBxCollection > EGammaRefVector
Definition: EGamma.h:13
ObjectRefPair< EGamma > EGammaRefPair
Definition: EGamma.h:17
short int footprintEt() const
Definition: EGamma.cc:52
void setTowerIPhi(short int iphi)
Definition: EGamma.cc:30
short int nTT_
Definition: EGamma.h:62
short int nTT() const
Definition: EGamma.cc:54
EGamma()
Definition: EGamma.h:22
double phi() const final
momentum azimuthal angle
short int towerHoE() const
Definition: EGamma.cc:58
double eta() const final
momentum pseudorapidity