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  // Phase-2
16  typedef std::vector<EtSum> EtSumP2Collection;
19  typedef std::vector<EtSumP2Ref> EtSumVectorP2Ref;
20 
24 
25  class EtSum : public L1Candidate {
26  public:
27  enum EtSumType {
58  };
59 
61  explicit EtSum(EtSumType type) : type_{type} {}
62 
63  EtSum(const LorentzVector& p4, EtSumType type, int pt = 0, int eta = 0, int phi = 0, int qual = 0);
64 
65  EtSum(const PolarLorentzVector& p4, EtSumType type, int pt = 0, int eta = 0, int phi = 0, int qual = 0);
66 
67  ~EtSum() override;
68 
69  void setType(EtSumType type);
70 
71  EtSumType getType() const;
72 
73  bool operator==(const l1t::EtSum& rhs) const;
74  inline bool operator!=(const l1t::EtSum& rhs) const { return !(operator==(rhs)); };
75 
76  private:
77  using L1Candidate::operator==;
78  using L1Candidate::operator!=;
79  // type of EtSum
81 
82  // additional hardware quantities common to L1 global EtSum
83  // there are currently none
84  };
85 
86 } // namespace l1t
87 
88 #endif
double pt() const final
transverse momentum
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: LeafCandidate.h:25
edm::Ref< EtSumP2Collection > EtSumP2Ref
Definition: EtSum.h:17
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:21
std::pair< edm::Ref< BXVector< T > >, edm::Ref< BXVector< T > >> ObjectRefPair
const LorentzVector & p4() const final
four-momentum Lorentz vector
bool operator!=(const l1t::EtSum &rhs) const
Definition: EtSum.h:74
BXVector< EtSum > EtSumBxCollection
Definition: EtSum.h:10
~EtSum() override
Definition: EtSum.cc:9
EtSum()
Definition: EtSum.h:60
edm::RefVector< EtSumBxCollection > EtSumRefVector
Definition: EtSum.h:13
math::XYZTLorentzVector LorentzVector
ObjectRefPair< EtSum > EtSumRefPair
Definition: EtSum.h:22
bool operator==(const l1t::EtSum &rhs) const
Definition: EtSum.cc:15
EtSumType type_
Definition: EtSum.h:80
edm::RefVector< EtSumP2Collection > EtSumP2RefVector
Definition: EtSum.h:18
std::vector< EtSum > EtSumP2Collection
Definition: EtSum.h:16
ObjectRefPairBxCollection< EtSum > EtSumRefPairBxCollection
Definition: EtSum.h:23
std::vector< EtSumP2Ref > EtSumVectorP2Ref
Definition: EtSum.h:19
double phi() const final
momentum azimuthal angle
EtSumType
Definition: EtSum.h:27
EtSumType getType() const
Definition: EtSum.cc:13
EtSum(EtSumType type)
Definition: EtSum.h:61
double eta() const final
momentum pseudorapidity