test
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 
49  short int towerIEta() const;
50  short int towerIPhi() const;
51  short int rawEt() const;
52  short int isoEt() const ;
53  short int footprintEt() const;
54  short int nTT() const;
55  short int shape() const;
56 
57  private:
58 
59  // additional hardware quantities common to L1 global EG
60  void clear_extended();
61  short int towerIEta_;
62  short int towerIPhi_;
63  short int rawEt_;
64  short int isoEt_;
65  short int footprintEt_;
66  short int nTT_;
67  short int shape_;
68 
69  };
70 
71 }
72 
73 #endif
BXVector< EGamma > EGammaBxCollection
Definition: EGamma.h:11
void setRawEt(short int pt)
Definition: EGamma.cc:50
short int towerIEta() const
Definition: EGamma.cc:70
short int rawEt_
Definition: EGamma.h:63
short int towerIPhi() const
Definition: EGamma.cc:74
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:62
math::XYZTLorentzVector LorentzVector
virtual double phi() const final
momentum azimuthal angle
short int shape() const
Definition: EGamma.cc:94
short int footprintEt() const
Definition: EGamma.cc:86
short int rawEt() const
Definition: EGamma.cc:78
void clear_extended()
Definition: EGamma.cc:5
short int isoEt() const
Definition: EGamma.cc:82
void setNTT(short int ntt)
Definition: EGamma.cc:62
short int shape_
Definition: EGamma.h:67
short int isoEt_
Definition: EGamma.h:64
void setFootprintEt(short int fp)
Definition: EGamma.cc:58
void setTowerIEta(short int ieta)
Definition: EGamma.cc:42
short int towerIEta_
Definition: EGamma.h:61
short int footprintEt_
Definition: EGamma.h:65
void setShape(short int s)
Definition: EGamma.cc:66
void setIsoEt(short int iso)
Definition: EGamma.cc:54
std::vector< EGammaRef > EGammaVectorRef
Definition: EGamma.h:15
void setTowerIPhi(short int iphi)
Definition: EGamma.cc:46
short int nTT_
Definition: EGamma.h:66
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:90
edm::RefVector< EGammaBxCollection > EGammaRefVector
Definition: EGamma.h:14
virtual double pt() const final
transverse momentum