CMS 3D CMS Logo

L1Candidate.h
Go to the documentation of this file.
1 #ifndef L1Candidate_h
2 #define L1Candidate_h
3 
4 
7 namespace l1t {
8 
9  class L1Candidate;
13  typedef std::vector< L1CandidateRef > L1CandidateVectorRef ;
14 
15  // All L1 data formats which encode physically meaningful quantities inherit from Candidate
17 
18  public:
19 
20  L1Candidate();
21 
22  // construct from *both* physical and integer values
24  int pt=0,
25  int eta=0,
26  int phi=0,
27  int qual=0,
28  int iso=0);
29 
31  int pt=0,
32  int eta=0,
33  int phi=0,
34  int qual=0,
35  int iso=0);
36 
37  ~L1Candidate() override;
38 
39  // methods to set integer values
40  // in general, these should not be needed
41  void setHwPt(int pt) {hwPt_=pt;}
42  void setHwEta(int eta) {hwEta_=eta;}
43  void setHwPhi(int phi) {hwPhi_=phi;}
44  void setHwQual(int qual) {hwQual_=qual;}
45  void setHwIso(int iso) {hwIso_=iso;}
46 
47  // methods to retrieve integer values
48  int hwPt() const {return hwPt_;}
49  int hwEta() const {return hwEta_;}
50  int hwPhi() const {return hwPhi_;}
51  int hwQual() const {return hwQual_;}
52  int hwIso() const {return hwIso_;}
53 
54  virtual bool operator==(const l1t::L1Candidate & rhs) const;
55  virtual inline bool operator!=(const l1t::L1Candidate & rhs) const { return !(operator==(rhs)); };
56 
57  private:
58 
59  // integer "hardware" values
60  int hwPt_;
61  int hwEta_;
62  int hwPhi_;
63  int hwQual_;
64  int hwIso_;
65 
66  };
67 
68 };
69 
70 #endif
edm::Ref< L1CandidateBxCollection > L1CandidateRef
Definition: L1Candidate.h:11
std::vector< L1CandidateRef > L1CandidateVectorRef
Definition: L1Candidate.h:13
double eta() const final
momentum pseudorapidity
BXVector< L1Candidate > L1CandidateBxCollection
Definition: L1Candidate.h:9
edm::RefVector< L1CandidateBxCollection > L1CandidateRefVector
Definition: L1Candidate.h:12
double pt() const final
transverse momentum
void setHwQual(int qual)
Definition: L1Candidate.h:44
int hwPhi() const
Definition: L1Candidate.h:50
delete x;
Definition: CaloConfig.h:22
virtual bool operator==(const l1t::L1Candidate &rhs) const
Definition: L1Candidate.cc:44
int hwIso() const
Definition: L1Candidate.h:52
~L1Candidate() override
Definition: L1Candidate.cc:39
const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:99
int hwEta() const
Definition: L1Candidate.h:49
int hwQual() const
Definition: L1Candidate.h:51
void setHwPhi(int phi)
Definition: L1Candidate.h:43
void setHwIso(int iso)
Definition: L1Candidate.h:45
int hwPt() const
Definition: L1Candidate.h:48
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:37
void setHwPt(int pt)
Definition: L1Candidate.h:41
void setHwEta(int eta)
Definition: L1Candidate.h:42
virtual bool operator!=(const l1t::L1Candidate &rhs) const
Definition: L1Candidate.h:55
double phi() const final
momentum azimuthal angle
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: Candidate.h:39