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 
4 
8 
9 namespace l1t {
10 
11  class EtSum;
15  typedef std::vector< EtSumRef > EtSumVectorRef ;
16 
20 
21  class EtSum : public L1Candidate {
22 
23  public:
24 
25  enum EtSumType {
53  };
54 
55  EtSum(){}
56  EtSum( const LorentzVector& p4,
58  int pt=0,
59  int eta=0,
60  int phi=0,
61  int qual=0);
62 
63  EtSum( const PolarLorentzVector& p4,
64  EtSumType type,
65  int pt=0,
66  int eta=0,
67  int phi=0,
68  int qual=0);
69 
70 
71  ~EtSum() override;
72 
73  void setType(EtSumType type);
74 
75  EtSumType getType() const;
76 
77  virtual bool operator==(const l1t::EtSum& rhs) const;
78  virtual inline bool operator!=(const l1t::EtSum& rhs) const { return !(operator==(rhs)); };
79 
80  private:
81 
82  // type of EtSum
84 
85  // additional hardware quantities common to L1 global EtSum
86  // there are currently none
87 
88  };
89 
90 }
91 
92 #endif
type
Definition: HCALResponse.h:21
double eta() const final
momentum pseudorapidity
double pt() const final
transverse momentum
delete x;
Definition: CaloConfig.h:22
void setType(EtSumType type)
Definition: EtSum.cc:32
ObjectRefBxCollection< EtSum > EtSumRefBxCollection
Definition: EtSum.h:17
BXVector< EtSum > EtSumBxCollection
Definition: EtSum.h:11
~EtSum() override
Definition: EtSum.cc:27
virtual bool operator!=(const l1t::EtSum &rhs) const
Definition: EtSum.h:78
EtSum()
Definition: EtSum.h:55
const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:99
edm::RefVector< EtSumBxCollection > EtSumRefVector
Definition: EtSum.h:14
ObjectRefPair< EtSum > EtSumRefPair
Definition: EtSum.h:18
std::pair< edm::Ref< BXVector< T >>, edm::Ref< BXVector< T >>> ObjectRefPair
edm::Ref< EtSumBxCollection > EtSumRef
Definition: EtSum.h:13
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:37
EtSumType type_
Definition: EtSum.h:78
ObjectRefPairBxCollection< EtSum > EtSumRefPairBxCollection
Definition: EtSum.h:19
std::vector< EtSumRef > EtSumVectorRef
Definition: EtSum.h:15
virtual bool operator==(const l1t::EtSum &rhs) const
Definition: EtSum.cc:42
EtSumType getType() const
Definition: EtSum.cc:37
double phi() const final
momentum azimuthal angle
EtSumType
Definition: EtSum.h:25
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: Candidate.h:39