CMS 3D CMS Logo

EtSum.h
Go to the documentation of this file.
1 #ifndef DataFormats_L1Trigger_ETSum_h
2 #define DataFormats_L1Trigger_ETSum_h
3 
7 
8 namespace l1t {
9 
10  class EtSum;
14  typedef std::vector<EtSumRef> EtSumVectorRef;
15 
19 
20  class EtSum : public L1Candidate {
21  public:
22  enum EtSumType {
51  };
52 
54  explicit EtSum(EtSumType type) : type_{type} {}
55 
56  EtSum(const LorentzVector& p4, EtSumType type, int pt = 0, int eta = 0, int phi = 0, int qual = 0);
57 
58  EtSum(const PolarLorentzVector& p4, EtSumType type, int pt = 0, int eta = 0, int phi = 0, int qual = 0);
59 
60  ~EtSum() override;
61 
62  void setType(EtSumType type);
63 
64  EtSumType getType() const;
65 
66  virtual bool operator==(const l1t::EtSum& rhs) const;
67  virtual inline bool operator!=(const l1t::EtSum& rhs) const { return !(operator==(rhs)); };
68 
69  private:
70  // type of EtSum
72 
73  // additional hardware quantities common to L1 global EtSum
74  // there are currently none
75  };
76 
77 } // namespace l1t
78 
79 #endif
double pt() const final
transverse momentum
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: LeafCandidate.h:25
edm::Ref< EtSumBxCollection > EtSumRef
Definition: EtSum.h:12
std::vector< EtSumRef > EtSumVectorRef
Definition: EtSum.h:14
delete x;
Definition: CaloConfig.h:22
void setType(EtSumType type)
Definition: EtSum.cc:11
ObjectRefBxCollection< EtSum > EtSumRefBxCollection
Definition: EtSum.h:16
std::pair< edm::Ref< BXVector< T > >, edm::Ref< BXVector< T > >> ObjectRefPair
const LorentzVector & p4() const final
four-momentum Lorentz vector
BXVector< EtSum > EtSumBxCollection
Definition: EtSum.h:10
~EtSum() override
Definition: EtSum.cc:9
virtual bool operator!=(const l1t::EtSum &rhs) const
Definition: EtSum.h:67
EtSum()
Definition: EtSum.h:53
edm::RefVector< EtSumBxCollection > EtSumRefVector
Definition: EtSum.h:13
math::XYZTLorentzVector LorentzVector
ObjectRefPair< EtSum > EtSumRefPair
Definition: EtSum.h:17
virtual bool operator==(const l1t::EtSum &rhs) const
Definition: EtSum.cc:15
EtSumType type_
Definition: EtSum.h:67
ObjectRefPairBxCollection< EtSum > EtSumRefPairBxCollection
Definition: EtSum.h:18
double phi() const final
momentum azimuthal angle
EtSumType
Definition: EtSum.h:22
EtSumType getType() const
Definition: EtSum.cc:13
EtSum(EtSumType type)
Definition: EtSum.h:54
double eta() const final
momentum pseudorapidity