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
l1t::EGamma::setTowerIEta
void setTowerIEta(short int ieta)
Definition: EGamma.cc:28
l1t::EGamma::operator==
virtual bool operator==(const l1t::EGamma &rhs) const
Definition: EGamma.cc:60
BXVector.h
l1t::EGamma::shape
short int shape() const
Definition: EGamma.cc:56
l1t::EGamma::setIsoEt
void setIsoEt(short int iso)
Definition: EGamma.cc:34
personalPlayback.fp
fp
Definition: personalPlayback.py:523
l1t::EGamma::EGamma
EGamma()
Definition: EGamma.h:22
edm::RefVector
Definition: EDProductfwd.h:27
reco::LeafCandidate::pt
double pt() const final
transverse momentum
Definition: LeafCandidate.h:146
l1t::EGammaVectorRef
std::vector< EGammaRef > EGammaVectorRef
Definition: TkEGTau.h:36
l1t::EGammaRefVector
edm::RefVector< EGammaBxCollection > EGammaRefVector
Definition: EGamma.h:13
edm::Ref
Definition: AssociativeIterator.h:58
l1t::EGammaRefPair
ObjectRefPair< EGamma > EGammaRefPair
Definition: EGamma.h:17
LEDCalibrationChannels.iphi
iphi
Definition: LEDCalibrationChannels.py:64
BXVector
Definition: BXVector.h:15
l1t::EGamma::isoEt
short int isoEt() const
Definition: EGamma.cc:50
alignCSCRings.s
s
Definition: alignCSCRings.py:92
l1t::EGamma::nTT_
short int nTT_
Definition: EGamma.h:62
l1t::L1Candidate
Definition: L1Candidate.h:15
l1t::EGammaRefBxCollection
ObjectRefBxCollection< EGamma > EGammaRefBxCollection
Definition: EGamma.h:16
l1t::EGammaRef
edm::Ref< EGammaBxCollection > EGammaRef
Definition: TkEGTau.h:35
l1t::EGamma::rawEt_
short int rawEt_
Definition: EGamma.h:59
reco::LeafCandidate::PolarLorentzVector
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: LeafCandidate.h:25
l1t::EGamma::towerIEta_
short int towerIEta_
Definition: EGamma.h:57
l1t::EGamma::setTowerIPhi
void setTowerIPhi(short int iphi)
Definition: EGamma.cc:30
l1t::EGamma::EGamma
EGamma(const L1Candidate &rhs)
Definition: EGamma.h:25
l1t::EGammaBxCollection
BXVector< EGamma > EGammaBxCollection
Definition: EGamma.h:10
l1t::EGamma::towerIEta
short int towerIEta() const
Definition: EGamma.cc:44
LEDCalibrationChannels.ieta
ieta
Definition: LEDCalibrationChannels.py:63
reco::LeafCandidate::eta
double eta() const final
momentum pseudorapidity
Definition: LeafCandidate.h:152
l1t
delete x;
Definition: CaloConfig.h:22
l1t::EGammaRefPairBxCollection
ObjectRefPairBxCollection< EGamma > EGammaRefPairBxCollection
Definition: EGamma.h:18
l1t::EGamma::isoEt_
short int isoEt_
Definition: EGamma.h:60
l1t::EGamma::nTT
short int nTT() const
Definition: EGamma.cc:54
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
l1t::EGamma::setNTT
void setNTT(short int ntt)
Definition: EGamma.cc:38
l1t::EGamma
Definition: EGamma.h:20
l1t::EGamma::footprintEt
short int footprintEt() const
Definition: EGamma.cc:52
L1Candidate.h
l1t::EGamma::operator!=
virtual bool operator!=(const l1t::EGamma &rhs) const
Definition: EGamma.h:52
l1t::EGamma::setTowerHoE
void setTowerHoE(short int HoE)
Definition: EGamma.cc:42
l1t::EGamma::setFootprintEt
void setFootprintEt(short int fp)
Definition: EGamma.cc:36
l1t::EGamma::towerHoE
short int towerHoE() const
Definition: EGamma.cc:58
l1t::EGamma::setShape
void setShape(short int s)
Definition: EGamma.cc:40
reco::LeafCandidate::phi
double phi() const final
momentum azimuthal angle
Definition: LeafCandidate.h:148
l1t::EGamma::clear_extended
void clear_extended()
Definition: EGamma.cc:5
LorentzVector
math::XYZTLorentzVector LorentzVector
Definition: HLTMuonMatchAndPlot.h:49
l1t::EGamma::towerHoE_
short int towerHoE_
Definition: EGamma.h:64
l1t::EGamma::shape_
short int shape_
Definition: EGamma.h:63
l1t::EGamma::towerIPhi_
short int towerIPhi_
Definition: EGamma.h:58
l1t::EGamma::towerIPhi
short int towerIPhi() const
Definition: EGamma.cc:46
l1t::EGamma::rawEt
short int rawEt() const
Definition: EGamma.cc:48
l1t::EGamma::footprintEt_
short int footprintEt_
Definition: EGamma.h:61
L1TObjComparison.h
l1t::EGamma::setRawEt
void setRawEt(short int pt)
Definition: EGamma.cc:32
l1t::EGamma::~EGamma
~EGamma() override
Definition: EGamma.cc:26