CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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);
42  void setHwEta(int eta);
43  void setHwPhi(int phi);
44  void setHwQual(int qual);
45  void setHwIso(int iso);
46 
47  // methods to retrieve integer values
48  int hwPt() const;
49  int hwEta() const;
50  int hwPhi() const;
51  int hwQual() const;
52  int hwIso() const;
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
edm::Ref< L1CandidateBxCollection > L1CandidateRef
Definition: L1Candidate.h:11
std::vector< L1CandidateRef > L1CandidateVectorRef
Definition: L1Candidate.h:13
BXVector< L1Candidate > L1CandidateBxCollection
Definition: L1Candidate.h:9
edm::RefVector< L1CandidateBxCollection > L1CandidateRefVector
Definition: L1Candidate.h:12
virtual double phi() const final
momentum azimuthal angle
void setHwQual(int qual)
Definition: L1Candidate.cc:64
int hwPhi() const
Definition: L1Candidate.cc:79
int hwIso() const
Definition: L1Candidate.cc:84
int hwEta() const
Definition: L1Candidate.cc:74
int hwQual() const
Definition: L1Candidate.cc:89
void setHwPhi(int phi)
Definition: L1Candidate.cc:54
void setHwIso(int iso)
Definition: L1Candidate.cc:59
int hwPt() const
Definition: L1Candidate.cc:69
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:37
void setHwPt(int pt)
Definition: L1Candidate.cc:44
void setHwEta(int eta)
Definition: L1Candidate.cc:49
virtual double eta() const final
momentum pseudorapidity
virtual const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:99
virtual double pt() const final
transverse momentum
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: Candidate.h:39