CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EGamma.h
Go to the documentation of this file.
1 #ifndef DataFormats_L1Trigger_EGamma_h
2 #define DataFormats_L1Trigger_EGamma_h
3 
4 
7 
8 
9 namespace l1t {
10 
11  class EGamma;
15  typedef std::vector< EGammaRef > EGammaVectorRef ;
16 
17  class EGamma : public L1Candidate {
18 
19  public:
20  EGamma(){}
21 
22  // ctor from base allowed, but note that extended variables will be set to zero:
23  EGamma(const L1Candidate& rhs):L1Candidate(rhs){ clear_extended(); }
24 
25  EGamma( const LorentzVector& p4,
26  int pt=0,
27  int eta=0,
28  int phi=0,
29  int qual=0,
30  int iso=0);
31 
33  int pt=0,
34  int eta=0,
35  int phi=0,
36  int qual=0,
37  int iso=0);
38 
39  ~EGamma();
40 
41  void setTowerIEta(short int ieta); // ieta of seed tower
42  void setTowerIPhi(short int iphi); // iphi of seed tower
43  void setRawEt(short int pt); // raw (uncalibrated) cluster sum
44  void setIsoEt(short int iso); // raw isolation sum - cluster sum
45  void setFootprintEt(short int fp); // raw footprint
46  void setNTT(short int ntt); // n towers above threshold
47  void setShape(short int s); // cluster shape variable
48  void setTowerHoE(short int HoE); // H/E as computed in Layer-1
49 
50  short int towerIEta() const;
51  short int towerIPhi() const;
52  short int rawEt() const;
53  short int isoEt() const ;
54  short int footprintEt() const;
55  short int nTT() const;
56  short int shape() const;
57  short int towerHoE() const;
58 
59  private:
60 
61  // additional hardware quantities common to L1 global EG
62  void clear_extended();
63  short int towerIEta_;
64  short int towerIPhi_;
65  short int rawEt_;
66  short int isoEt_;
67  short int footprintEt_;
68  short int nTT_;
69  short int shape_;
70  short int towerHoE_;
71 
72  };
73 
74 }
75 
76 #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:65
short int towerIPhi() const
Definition: EGamma.cc:79
EGamma(const L1Candidate &rhs)
Definition: EGamma.h:23
edm::Ref< EGammaBxCollection > EGammaRef
Definition: EGamma.h:13
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: LeafCandidate.h:25
short int towerIPhi_
Definition: EGamma.h:64
math::XYZTLorentzVector LorentzVector
virtual double phi() const final
momentum azimuthal angle
short int shape() const
Definition: EGamma.cc:99
short int footprintEt() const
Definition: EGamma.cc:91
short int towerHoE_
Definition: EGamma.h:70
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:69
short int isoEt_
Definition: EGamma.h:66
void setFootprintEt(short int fp)
Definition: EGamma.cc:59
void setTowerIEta(short int ieta)
Definition: EGamma.cc:43
short int towerIEta_
Definition: EGamma.h:63
short int footprintEt_
Definition: EGamma.h:67
void setShape(short int s)
Definition: EGamma.cc:67
void setIsoEt(short int iso)
Definition: EGamma.cc:55
std::vector< EGammaRef > EGammaVectorRef
Definition: EGamma.h:15
void setTowerIPhi(short int iphi)
Definition: EGamma.cc:47
short int nTT_
Definition: EGamma.h:68
virtual double eta() const final
momentum pseudorapidity
EGamma()
Definition: EGamma.h:20
virtual const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:99
short int nTT() const
Definition: EGamma.cc:95
edm::RefVector< EGammaBxCollection > EGammaRefVector
Definition: EGamma.h:14
virtual double pt() const final
transverse momentum