test
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;
11 
12  // All L1 data formats which encode physically meaningful quantities inherit from Candidate
14 
15  public:
16 
17  L1Candidate();
18 
19  // construct from *both* physical and integer values
21  int pt=0,
22  int eta=0,
23  int phi=0,
24  int qual=0,
25  int iso=0);
26 
28  int pt=0,
29  int eta=0,
30  int phi=0,
31  int qual=0,
32  int iso=0);
33 
34  ~L1Candidate();
35 
36  // methods to set integer values
37  // in general, these should not be needed
38  void setHwPt(int pt);
39  void setHwEta(int eta);
40  void setHwPhi(int phi);
41  void setHwQual(int qual);
42  void setHwIso(int iso);
43 
44  // methods to retrieve integer values
45  int hwPt() const;
46  int hwEta() const;
47  int hwPhi() const;
48  int hwQual() const;
49  int hwIso() const;
50 
51  private:
52 
53  // integer "hardware" values
54  int hwPt_;
55  int hwEta_;
56  int hwPhi_;
57  int hwQual_;
58  int hwIso_;
59 
60  };
61 
62 };
63 
64 #endif
virtual float pt() const
transverse momentum
BXVector< L1Candidate > L1CandidateBxCollection
Definition: L1Candidate.h:9
virtual float phi() const
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
virtual float eta() const
momentum pseudorapidity
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:41
void setHwPt(int pt)
Definition: L1Candidate.cc:44
void setHwEta(int eta)
Definition: L1Candidate.cc:49
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: Candidate.h:43