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();
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  private:
55 
56  // integer "hardware" values
57  int hwPt_;
58  int hwEta_;
59  int hwPhi_;
60  int hwQual_;
61  int hwIso_;
62 
63  };
64 
65 };
66 
67 #endif
virtual double pt() const final
transverse momentum
edm::Ref< L1CandidateBxCollection > L1CandidateRef
Definition: L1Candidate.h:11
std::vector< L1CandidateRef > L1CandidateVectorRef
Definition: L1Candidate.h:13
BXVector< L1Candidate > L1CandidateBxCollection
Definition: L1Candidate.h:9
virtual double eta() const final
momentum pseudorapidity
edm::RefVector< L1CandidateBxCollection > L1CandidateRefVector
Definition: L1Candidate.h:12
void setHwQual(int qual)
Definition: L1Candidate.h:44
int hwPhi() const
Definition: L1Candidate.h:50
delete x;
Definition: CaloConfig.h:22
virtual double phi() const final
momentum azimuthal angle
int hwIso() const
Definition: L1Candidate.h:52
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 const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:99
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: Candidate.h:39