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 {
56  };
57 
59  explicit EtSum(EtSumType type) : type_{type} {}
60 
61  EtSum(const LorentzVector& p4, EtSumType type, int pt = 0, int eta = 0, int phi = 0, int qual = 0);
62 
63  EtSum(const PolarLorentzVector& p4, EtSumType type, int pt = 0, int eta = 0, int phi = 0, int qual = 0);
64 
65  ~EtSum() override;
66 
67  void setType(EtSumType type);
68 
69  EtSumType getType() const;
70 
71  virtual bool operator==(const l1t::EtSum& rhs) const;
72  virtual inline bool operator!=(const l1t::EtSum& rhs) const { return !(operator==(rhs)); };
73 
74  private:
75  // type of EtSum
77 
78  // additional hardware quantities common to L1 global EtSum
79  // there are currently none
80  };
81 
82 } // namespace l1t
83 
84 #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
BXVector< EtSum > EtSumBxCollection
Definition: EtSum.h:10
~EtSum() override
Definition: EtSum.cc:9
virtual bool operator!=(const l1t::EtSum &rhs) const
Definition: EtSum.h:72
EtSum()
Definition: EtSum.h:58
edm::RefVector< EtSumBxCollection > EtSumRefVector
Definition: EtSum.h:13
math::XYZTLorentzVector LorentzVector
ObjectRefPair< EtSum > EtSumRefPair
Definition: EtSum.h:22
virtual bool operator==(const l1t::EtSum &rhs) const
Definition: EtSum.cc:15
EtSumType type_
Definition: EtSum.h:72
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:59
double eta() const final
momentum pseudorapidity