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 {
48  };
49 
50  EtSum(){}
51  EtSum( const LorentzVector& p4,
53  int pt=0,
54  int eta=0,
55  int phi=0,
56  int qual=0);
57 
58  EtSum( const PolarLorentzVector& p4,
59  EtSumType type,
60  int pt=0,
61  int eta=0,
62  int phi=0,
63  int qual=0);
64 
65 
66  ~EtSum() override;
67 
68  void setType(EtSumType type);
69 
70  EtSumType getType() const;
71 
72  virtual bool operator==(const l1t::EtSum& rhs) const;
73  virtual inline bool operator!=(const l1t::EtSum& rhs) const { return !(operator==(rhs)); };
74 
75  private:
76 
77  // type of EtSum
79 
80  // additional hardware quantities common to L1 global EtSum
81  // there are currently none
82 
83  };
84 
85 }
86 
87 #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:73
EtSum()
Definition: EtSum.h:50
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:73
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