CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 {
50  };
51 
52  EtSum() {}
53  EtSum(const LorentzVector& p4, EtSumType type, int pt = 0, int eta = 0, int phi = 0, int qual = 0);
54 
55  EtSum(const PolarLorentzVector& p4, EtSumType type, int pt = 0, int eta = 0, int phi = 0, int qual = 0);
56 
57  ~EtSum() override;
58 
59  void setType(EtSumType type);
60 
61  EtSumType getType() const;
62 
63  virtual bool operator==(const l1t::EtSum& rhs) const;
64  virtual inline bool operator!=(const l1t::EtSum& rhs) const { return !(operator==(rhs)); };
65 
66  private:
67  // type of EtSum
69 
70  // additional hardware quantities common to L1 global EtSum
71  // there are currently none
72  };
73 
74 } // namespace l1t
75 
76 #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
void setType(EtSumType type)
Definition: EtSum.cc:11
ObjectRefBxCollection< EtSum > EtSumRefBxCollection
Definition: EtSum.h:16
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:64
EtSum()
Definition: EtSum.h:52
edm::RefVector< EtSumBxCollection > EtSumRefVector
Definition: EtSum.h:13
math::XYZTLorentzVector LorentzVector
ObjectRefPair< EtSum > EtSumRefPair
Definition: EtSum.h:17
std::pair< edm::Ref< BXVector< T >>, edm::Ref< BXVector< T >>> ObjectRefPair
EtSumType type_
Definition: EtSum.h:64
ObjectRefPairBxCollection< EtSum > EtSumRefPairBxCollection
Definition: EtSum.h:18
virtual bool operator==(const l1t::EtSum &rhs) const
Definition: EtSum.cc:15
EtSumType getType() const
Definition: EtSum.cc:13
double phi() const final
momentum azimuthal angle
EtSumType
Definition: EtSum.h:22
double eta() const final
momentum pseudorapidity