CMS 3D CMS Logo

CaloSpare.h
Go to the documentation of this file.
1 #ifndef DataFormats_L1Trigger_CaloSpare_h
2 #define DataFormats_L1Trigger_CaloSpare_h
3 
6 
7 namespace l1t {
8 
9  class CaloSpare;
11 
12  class CaloSpare : public L1Candidate {
13  public:
15 
16  CaloSpare() {}
17  CaloSpare(const LorentzVector& p4, CaloSpareType type, int pt = 0, int eta = 0, int phi = 0, int qual = 0);
18 
19  CaloSpare(const PolarLorentzVector& p4, CaloSpareType type, int pt = 0, int eta = 0, int phi = 0, int qual = 0);
20 
21  ~CaloSpare() override;
22 
24 
25  int GetRing(unsigned index) const;
26  void SetRing(unsigned index, int value);
27 
28  CaloSpareType getType() const;
29 
30  private:
31  // type of CaloSpare
33 
34  // additional hardware quantities common to L1 global CaloSpare
35  // there are currently none
36  };
37 
38 } // namespace l1t
39 
40 #endif
double pt() const final
transverse momentum
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: LeafCandidate.h:25
delete x;
Definition: CaloConfig.h:22
void SetRing(unsigned index, int value)
Definition: CaloSpare.cc:15
const LorentzVector & p4() const final
four-momentum Lorentz vector
void setType(CaloSpareType type)
Definition: CaloSpare.cc:11
~CaloSpare() override
Definition: CaloSpare.cc:9
math::XYZTLorentzVector LorentzVector
Definition: value.py:1
BXVector< CaloSpare > CaloSpareBxCollection
Definition: CaloSpare.h:9
unsigned int index
Definition: LeafCandidate.h:31
int GetRing(unsigned index) const
Definition: CaloSpare.cc:13
CaloSpareType type_
Definition: CaloSpare.h:32
double phi() const final
momentum azimuthal angle
CaloSpareType getType() const
Definition: CaloSpare.cc:20
double eta() const final
momentum pseudorapidity