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