CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Private Attributes | Friends
l1t::P2GTCandidate Class Reference

#include <P2GTCandidate.h>

Inheritance diagram for l1t::P2GTCandidate:
reco::LeafCandidate reco::Candidate

Classes

struct  Optional
 

Public Types

using Base = reco::LeafCandidate
 
typedef ap_uint< 4 > hwBeta_t
 
typedef ap_uint< 1 > hwCharge_t
 
typedef ap_int< 12 > hwD0_t
 
typedef ap_int< 14 > hwEta_t
 
typedef ap_uint< 16 > hwIndex_t
 
typedef ap_uint< 11 > hwIso_t
 
typedef ap_uint< 10 > hwMass_t
 
typedef ap_uint< 8 > hwNumber_of_tracks_in_pv_t
 
typedef ap_uint< 10 > hwNumber_of_tracks_not_in_pv_t
 
typedef ap_uint< 5 > hwNumber_of_tracks_t
 
typedef ap_int< 13 > hwPhi_t
 
typedef ap_uint< 16 > hwPT_t
 
typedef ap_uint< 8 > hwQual_t
 
typedef ap_uint< 16 > hwSca_sum_t
 
typedef ap_uint< 10 > hwSeed_pT_t
 
typedef ap_int< 10 > hwSeed_z0_t
 
typedef ap_uint< 12 > hwSum_pT_pv_t
 
typedef ap_uint< 2 > hwType_t
 
typedef ap_int< 18 > hwZ0_t
 
enum  ObjectType {
  Undefined, GCTNonIsoEg, GCTIsoEg, GCTJets,
  GCTTaus, GCTHtSum, GCTEtSum, GMTSaPromptMuons,
  GMTSaDisplacedMuons, GMTTkMuons, GMTTopo, GTTPromptJets,
  GTTDisplacedJets, GTTPhiCandidates, GTTRhoCandidates, GTTBsCandidates,
  GTTHadronicTaus, GTTPrimaryVert, GTTPromptHtSum, GTTDisplacedHtSum,
  GTTEtSum, CL2Jets, CL2Taus, CL2Electrons,
  CL2Photons, CL2HtSum, CL2EtSum
}
 
- Public Types inherited from reco::LeafCandidate
typedef int Charge
 electric charge type More...
 
typedef CandidateCollection daughters
 collection of daughter candidates More...
 
typedef unsigned int index
 
typedef math::XYZTLorentzVector LorentzVector
 Lorentz vector. More...
 
typedef math::XYZPoint Point
 point in the space More...
 
typedef math::PtEtaPhiMLorentzVector PolarLorentzVector
 Lorentz vector. More...
 
typedef math::XYZVector Vector
 point in the space More...
 
- Public Types inherited from reco::Candidate
enum  { dimension = 3 }
 
enum  { size = dimension * (dimension + 1) / 2 }
 matix size More...
 
typedef int Charge
 electric charge type More...
 
typedef candidate::const_iterator const_iterator
 
typedef math::Error< dimension >::type CovarianceMatrix
 covariance error matrix (3x3) More...
 
typedef unsigned int index
 index type More...
 
typedef candidate::iterator iterator
 
typedef math::XYZTLorentzVector LorentzVector
 Lorentz vector. More...
 
typedef math::XYZPoint Point
 point in the space More...
 
typedef math::PtEtaPhiMLorentzVector PolarLorentzVector
 Lorentz vector. More...
 
typedef size_t size_type
 
typedef math::XYZVector Vector
 point in the space More...
 

Public Member Functions

hwBeta_t hwBeta () const
 
hwCharge_t hwCharge () const
 
hwD0_t hwD0 () const
 
hwEta_t hwEta () const
 
hwIndex_t hwIndex () const
 
hwIso_t hwIso () const
 
hwMass_t hwMass () const
 
hwNumber_of_tracks_t hwNumber_of_tracks () const
 
hwNumber_of_tracks_in_pv_t hwNumber_of_tracks_in_pv () const
 
hwNumber_of_tracks_not_in_pv_t hwNumber_of_tracks_not_in_pv () const
 
hwPhi_t hwPhi () const
 
hwPT_t hwPT () const
 
hwQual_t hwQual () const
 
hwSca_sum_t hwSca_sum () const
 
hwSeed_pT_t hwSeed_pT () const
 
hwSeed_z0_t hwSeed_z0 () const
 
hwSum_pT_pv_t hwSum_pT_pv () const
 
hwType_t hwType () const
 
hwZ0_t hwZ0 () const
 
bool isElectron () const override
 
bool isJet () const override
 
bool isMuon () const override
 
bool isPhoton () const override
 
bool isStandAloneMuon () const override
 
bool isTrackerMuon () const override
 
ObjectType objectType () const
 
bool operator!= (const P2GTCandidate &rhs) const
 
bool operator== (const P2GTCandidate &rhs) const
 
void setHwBeta (hwBeta_t hwBeta)
 
void setHwCharge (hwCharge_t hwCharge)
 
void setHwD0 (hwD0_t hwD0)
 
void setHwEta (hwEta_t hwEta)
 
void setHwIndex (hwIndex_t hwIndex)
 
void setHwIso (hwIso_t hwIso)
 
void setHwMass (hwMass_t hwMass)
 
void setHwNumber_of_tracks (hwNumber_of_tracks_t hwNumber_of_tracks)
 
void setHwNumber_of_tracks_in_pv (hwNumber_of_tracks_in_pv_t hwNumber_of_tracks_in_pv)
 
void setHwNumber_of_tracks_not_in_pv (hwNumber_of_tracks_not_in_pv_t hwNumber_of_tracks_not_in_pv)
 
void setHwPhi (hwPhi_t hwPhi)
 
void setHwPT (hwPT_t hwPT)
 
void setHwQual (hwQual_t hwQual)
 
void setHwSca_sum (hwSca_sum_t hwSca_sum)
 
void setHwSeed_pT (hwSeed_pT_t hwSeed_pT)
 
void setHwSeed_z0 (hwSeed_z0_t hwSeed_z0)
 
void setHwSum_pT_pv (hwSum_pT_pv_t hwSum_pT_pv)
 
void setHwType (hwType_t hwType)
 
void setHwZ0 (hwZ0_t hwZ0)
 
- Public Member Functions inherited from reco::LeafCandidate
Vector boostToCM () const final
 
int charge () const final
 electric charge More...
 
LeafCandidateclone () const override
 returns a clone of the Candidate object More...
 
void construct (int qx3, float pt, float eta, float phi, float mass, const Point &vtx, int pdgId, int status)
 
const Candidatedaughter (size_type) const override
 return daughter at a given position (throws an exception) More...
 
Candidatedaughter (size_type) override
 return daughter at a given position (throws an exception) More...
 
Candidatedaughter (const std::string &s) override
 return daughter with a specified role name More...
 
const Candidatedaughter (const std::string &s) const override
 return daughter with a specified role name More...
 
double energy () const final
 energy More...
 
double et () const final
 transverse energy More...
 
double et2 () const final
 transverse energy squared (use this for cut!) More...
 
double eta () const final
 momentum pseudorapidity More...
 
void fillVertexCovariance (CovarianceMatrix &v) const override
 fill SMatrix More...
 
template<typename T >
T get () const
 get a component More...
 
template<typename T , typename Tag >
T get () const
 get a component More...
 
template<typename T >
T get (size_type i) const
 get a component More...
 
template<typename T , typename Tag >
T get (size_type i) const
 get a component More...
 
bool hasMasterClone () const override
 
bool hasMasterClonePtr () const override
 
bool isCaloMuon () const override
 
bool isConvertedPhoton () const override
 
bool isGlobalMuon () const override
 
 LeafCandidate ()
 
 LeafCandidate (const Candidate &c)
 
template<typename... Args>
 LeafCandidate (Args &&... args)
 
 LeafCandidate (LeafCandidate &rh)
 
 LeafCandidate (LeafCandidate &&)=default
 
 LeafCandidate (LeafCandidate const &)=default
 
bool longLived () const final
 is long lived? More...
 
double mass () const final
 mass More...
 
bool massConstraint () const final
 do mass constraint? More...
 
double massSqr () const final
 mass squared More...
 
const CandidateBaseRefmasterClone () const override
 
const CandidatePtrmasterClonePtr () const override
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type More...
 
Vector momentum () const final
 spatial momentum vector More...
 
const Candidatemother (size_type) const override
 return mother at a given position (throws an exception) More...
 
double mt () const final
 transverse mass More...
 
double mtSqr () const final
 transverse mass squared More...
 
template<typename T >
size_type numberOf () const
 number of components More...
 
template<typename T , typename Tag >
size_type numberOf () const
 number of components More...
 
size_t numberOfDaughters () const override
 number of daughters More...
 
size_t numberOfMothers () const override
 number of mothers More...
 
size_t numberOfSourceCandidatePtrs () const override
 
LeafCandidateoperator= (LeafCandidate &&)=default
 
LeafCandidateoperator= (LeafCandidate const &)=default
 
double p () const final
 magnitude of momentum vector More...
 
const LorentzVectorp4 () const final
 four-momentum Lorentz vector More...
 
int pdgId () const final
 PDG identifier. More...
 
double phi () const final
 momentum azimuthal angle More...
 
const PolarLorentzVectorpolarP4 () const final
 four-momentum Lorentz vector More...
 
double pt () const final
 transverse momentum More...
 
double px () const final
 x coordinate of momentum vector More...
 
double py () const final
 y coordinate of momentum vector More...
 
double pz () const final
 z coordinate of momentum vector More...
 
double rapidity () const final
 rapidity More...
 
void setCharge (Charge q) final
 set electric charge More...
 
void setLongLived () final
 
void setMass (double m) final
 set particle mass More...
 
void setMassConstraint () final
 
void setP4 (const LorentzVector &p4) final
 set 4-momentum More...
 
void setP4 (const PolarLorentzVector &p4) final
 set 4-momentum More...
 
void setPdgId (int pdgId) final
 
void setPz (double pz) final
 
void setStatus (int status) final
 set status word More...
 
void setThreeCharge (Charge qx3) final
 set electric charge More...
 
void setVertex (const Point &vertex) override
 set vertex More...
 
CandidatePtr sourceCandidatePtr (size_type i) const override
 
int status () const final
 status word More...
 
double theta () const final
 momentum polar angle More...
 
int threeCharge () const final
 electric charge More...
 
const Pointvertex () const override
 vertex position (overwritten by PF...) More...
 
double vertexChi2 () const override
 chi-squares More...
 
double vertexCovariance (int i, int j) const override
 (i, j)-th element of error matrix, i, j = 0, ... 2 More...
 
CovarianceMatrix vertexCovariance () const final
 return SMatrix More...
 
double vertexNdof () const override
 
double vertexNormalizedChi2 () const override
 chi-squared divided by n.d.o.f. More...
 
double vx () const override
 x coordinate of vertex position More...
 
double vy () const override
 y coordinate of vertex position More...
 
double vz () const override
 z coordinate of vertex position More...
 
double y () const final
 rapidity More...
 
 ~LeafCandidate () override
 destructor More...
 
- Public Member Functions inherited from reco::Candidate
const_iterator begin () const
 first daughter const_iterator More...
 
iterator begin ()
 first daughter iterator More...
 
virtual const TrackbestTrack () const
 
 Candidate ()
 default constructor More...
 
virtual float dxyError () const
 uncertainty on dxy More...
 
virtual float dzError () const
 uncertainty on dz More...
 
const_iterator end () const
 last daughter const_iterator More...
 
iterator end ()
 last daughter iterator More...
 
template<typename T >
T get () const
 get a component More...
 
template<typename T , typename Tag >
T get () const
 get a component More...
 
template<typename T >
T get (size_type i) const
 get a component More...
 
template<typename T , typename Tag >
T get (size_type i) const
 get a component More...
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type More...
 
template<typename T >
size_type numberOf () const
 number of components More...
 
template<typename T , typename Tag >
size_type numberOf () const
 number of components More...
 
virtual void setSourceCandidatePtr (const CandidatePtr &ptr)
 Set the ptr to the source Candidate. More...
 
virtual ~Candidate ()
 destructor More...
 

Private Attributes

Optional< int > hwBeta_
 
Optional< int > hwCharge_
 
Optional< int > hwD0_
 
Optional< int > hwEta_
 
Optional< int > hwIndex_
 
Optional< int > hwIso_
 
Optional< int > hwMass_
 
Optional< int > hwNumber_of_tracks_
 
Optional< int > hwNumber_of_tracks_in_pv_
 
Optional< int > hwNumber_of_tracks_not_in_pv_
 
Optional< int > hwPhi_
 
Optional< int > hwPT_
 
Optional< int > hwQual_
 
Optional< int > hwSca_sum_
 
Optional< int > hwSeed_pT_
 
Optional< int > hwSeed_z0_
 
Optional< int > hwSum_pT_pv_
 
Optional< int > hwType_
 
Optional< int > hwZ0_
 
ObjectType objectType_ = Undefined
 

Friends

class L1GTProducer
 

Additional Inherited Members

Detailed Description

Definition at line 22 of file P2GTCandidate.h.

Member Typedef Documentation

◆ Base

Definition at line 24 of file P2GTCandidate.h.

◆ hwBeta_t

typedef ap_uint<4> l1t::P2GTCandidate::hwBeta_t

Definition at line 38 of file P2GTCandidate.h.

◆ hwCharge_t

typedef ap_uint<1> l1t::P2GTCandidate::hwCharge_t

Definition at line 36 of file P2GTCandidate.h.

◆ hwD0_t

typedef ap_int<12> l1t::P2GTCandidate::hwD0_t

Definition at line 37 of file P2GTCandidate.h.

◆ hwEta_t

typedef ap_int<14> l1t::P2GTCandidate::hwEta_t

Definition at line 32 of file P2GTCandidate.h.

◆ hwIndex_t

typedef ap_uint<16> l1t::P2GTCandidate::hwIndex_t

Definition at line 40 of file P2GTCandidate.h.

◆ hwIso_t

typedef ap_uint<11> l1t::P2GTCandidate::hwIso_t

Definition at line 34 of file P2GTCandidate.h.

◆ hwMass_t

typedef ap_uint<10> l1t::P2GTCandidate::hwMass_t

Definition at line 39 of file P2GTCandidate.h.

◆ hwNumber_of_tracks_in_pv_t

Definition at line 47 of file P2GTCandidate.h.

◆ hwNumber_of_tracks_not_in_pv_t

Definition at line 48 of file P2GTCandidate.h.

◆ hwNumber_of_tracks_t

Definition at line 44 of file P2GTCandidate.h.

◆ hwPhi_t

typedef ap_int<13> l1t::P2GTCandidate::hwPhi_t

Definition at line 31 of file P2GTCandidate.h.

◆ hwPT_t

typedef ap_uint<16> l1t::P2GTCandidate::hwPT_t

Definition at line 30 of file P2GTCandidate.h.

◆ hwQual_t

typedef ap_uint<8> l1t::P2GTCandidate::hwQual_t

Definition at line 35 of file P2GTCandidate.h.

◆ hwSca_sum_t

typedef ap_uint<16> l1t::P2GTCandidate::hwSca_sum_t

Definition at line 43 of file P2GTCandidate.h.

◆ hwSeed_pT_t

typedef ap_uint<10> l1t::P2GTCandidate::hwSeed_pT_t

Definition at line 41 of file P2GTCandidate.h.

◆ hwSeed_z0_t

typedef ap_int<10> l1t::P2GTCandidate::hwSeed_z0_t

Definition at line 42 of file P2GTCandidate.h.

◆ hwSum_pT_pv_t

typedef ap_uint<12> l1t::P2GTCandidate::hwSum_pT_pv_t

Definition at line 45 of file P2GTCandidate.h.

◆ hwType_t

typedef ap_uint<2> l1t::P2GTCandidate::hwType_t

Definition at line 46 of file P2GTCandidate.h.

◆ hwZ0_t

typedef ap_int<18> l1t::P2GTCandidate::hwZ0_t

Definition at line 33 of file P2GTCandidate.h.

Member Enumeration Documentation

◆ ObjectType

Enumerator
Undefined 
GCTNonIsoEg 
GCTIsoEg 
GCTJets 
GCTTaus 
GCTHtSum 
GCTEtSum 
GMTSaPromptMuons 
GMTSaDisplacedMuons 
GMTTkMuons 
GMTTopo 
GTTPromptJets 
GTTDisplacedJets 
GTTPhiCandidates 
GTTRhoCandidates 
GTTBsCandidates 
GTTHadronicTaus 
GTTPrimaryVert 
GTTPromptHtSum 
GTTDisplacedHtSum 
GTTEtSum 
CL2Jets 
CL2Taus 
CL2Electrons 
CL2Photons 
CL2HtSum 
CL2EtSum 

Definition at line 67 of file P2GTCandidate.h.

67  {
68  Undefined,
70  GCTIsoEg,
71  GCTJets,
72  GCTTaus,
73  GCTHtSum,
74  GCTEtSum,
77  GMTTkMuons,
78  GMTTopo,
88  GTTEtSum,
89  CL2Jets,
90  CL2Taus,
92  CL2Photons,
93  CL2HtSum,
94  CL2EtSum
95  };

Member Function Documentation

◆ hwBeta()

hwBeta_t l1t::P2GTCandidate::hwBeta ( ) const
inline

Definition at line 180 of file P2GTCandidate.h.

References hwBeta_.

Referenced by setHwBeta().

180  {
181  if (!hwBeta_) {
182  throw std::invalid_argument("Object doesn't have beta");
183  }
184  return static_cast<int>(hwBeta_);
185  }
Optional< int > hwBeta_

◆ hwCharge()

hwCharge_t l1t::P2GTCandidate::hwCharge ( ) const
inline

Definition at line 166 of file P2GTCandidate.h.

References hwCharge_.

Referenced by l1t::L1GTDeltaCut::checkObjects(), and setHwCharge().

166  {
167  if (!hwCharge_) {
168  throw std::invalid_argument("Object doesn't have charge");
169  }
170  return static_cast<int>(hwCharge_);
171  }
Optional< int > hwCharge_

◆ hwD0()

hwD0_t l1t::P2GTCandidate::hwD0 ( ) const
inline

Definition at line 173 of file P2GTCandidate.h.

References hwD0_.

Referenced by setHwD0().

173  {
174  if (!hwD0_) {
175  throw std::invalid_argument("Object doesn't have d0");
176  }
177  return static_cast<int>(hwD0_);
178  }
Optional< int > hwD0_

◆ hwEta()

hwEta_t l1t::P2GTCandidate::hwEta ( ) const
inline

Definition at line 138 of file P2GTCandidate.h.

References hwEta_.

Referenced by l1t::L1GTDeltaCut::checkObjects(), and setHwEta().

138  {
139  if (!hwEta_) {
140  throw std::invalid_argument("Object doesn't have eta");
141  }
142  return static_cast<int>(hwEta_);
143  }
Optional< int > hwEta_

◆ hwIndex()

hwIndex_t l1t::P2GTCandidate::hwIndex ( ) const
inline

Definition at line 194 of file P2GTCandidate.h.

References hwIndex_.

Referenced by setHwIndex().

194  {
195  if (!hwIndex_) {
196  throw std::invalid_argument("Object doesn't have index");
197  }
198  return static_cast<int>(hwIndex_);
199  }
Optional< int > hwIndex_

◆ hwIso()

hwIso_t l1t::P2GTCandidate::hwIso ( ) const
inline

Definition at line 152 of file P2GTCandidate.h.

References hwIso_.

Referenced by setHwIso().

152  {
153  if (!hwIso_) {
154  throw std::invalid_argument("Object doesn't have iso");
155  }
156  return static_cast<int>(hwIso_);
157  }
Optional< int > hwIso_

◆ hwMass()

hwMass_t l1t::P2GTCandidate::hwMass ( ) const
inline

Definition at line 187 of file P2GTCandidate.h.

References hwMass_.

Referenced by setHwMass().

187  {
188  if (!hwMass_) {
189  throw std::invalid_argument("Object doesn't have mass");
190  }
191  return static_cast<int>(hwMass_);
192  }
Optional< int > hwMass_

◆ hwNumber_of_tracks()

hwNumber_of_tracks_t l1t::P2GTCandidate::hwNumber_of_tracks ( ) const
inline

Definition at line 222 of file P2GTCandidate.h.

References hwNumber_of_tracks_.

Referenced by setHwNumber_of_tracks().

222  {
223  if (!hwNumber_of_tracks_) {
224  throw std::invalid_argument("Object doesn't have number_of_tracks");
225  }
226  return static_cast<int>(hwNumber_of_tracks_);
227  }
Optional< int > hwNumber_of_tracks_

◆ hwNumber_of_tracks_in_pv()

hwNumber_of_tracks_in_pv_t l1t::P2GTCandidate::hwNumber_of_tracks_in_pv ( ) const
inline

Definition at line 243 of file P2GTCandidate.h.

References hwNumber_of_tracks_in_pv_.

Referenced by setHwNumber_of_tracks_in_pv().

243  {
245  throw std::invalid_argument("Object doesn't have number_of_tracks_in_pv");
246  }
247  return static_cast<int>(hwNumber_of_tracks_in_pv_);
248  }
Optional< int > hwNumber_of_tracks_in_pv_

◆ hwNumber_of_tracks_not_in_pv()

hwNumber_of_tracks_not_in_pv_t l1t::P2GTCandidate::hwNumber_of_tracks_not_in_pv ( ) const
inline

Definition at line 250 of file P2GTCandidate.h.

References hwNumber_of_tracks_not_in_pv_.

Referenced by setHwNumber_of_tracks_not_in_pv().

250  {
252  throw std::invalid_argument("Object doesn't have hwNumber_of_tracks_not_in_pv");
253  }
254  return static_cast<int>(hwNumber_of_tracks_not_in_pv_);
255  }
Optional< int > hwNumber_of_tracks_not_in_pv_

◆ hwPhi()

hwPhi_t l1t::P2GTCandidate::hwPhi ( ) const
inline

Definition at line 131 of file P2GTCandidate.h.

References hwPhi_.

Referenced by l1t::L1GTDeltaCut::checkObjects(), and setHwPhi().

131  {
132  if (!hwPhi_) {
133  throw std::invalid_argument("Object doesn't have phi");
134  }
135  return static_cast<int>(hwPhi_);
136  }
Optional< int > hwPhi_

◆ hwPT()

hwPT_t l1t::P2GTCandidate::hwPT ( ) const
inline

Definition at line 124 of file P2GTCandidate.h.

References hwPT_.

Referenced by l1t::L1GTDeltaCut::checkObjects(), and setHwPT().

124  {
125  if (!hwPT_) {
126  throw std::invalid_argument("Object doesn't have pT");
127  }
128  return static_cast<int>(hwPT_);
129  }
Optional< int > hwPT_

◆ hwQual()

hwQual_t l1t::P2GTCandidate::hwQual ( ) const
inline

Definition at line 159 of file P2GTCandidate.h.

References hwQual_.

Referenced by setHwQual().

159  {
160  if (!hwQual_) {
161  throw std::invalid_argument("Object doesn't have qual");
162  }
163  return static_cast<int>(hwQual_);
164  }
Optional< int > hwQual_

◆ hwSca_sum()

hwSca_sum_t l1t::P2GTCandidate::hwSca_sum ( ) const
inline

Definition at line 215 of file P2GTCandidate.h.

References hwSca_sum_.

Referenced by setHwSca_sum().

215  {
216  if (!hwSca_sum_) {
217  throw std::invalid_argument("Object doesn't have sca_sum");
218  }
219  return static_cast<int>(hwSca_sum_);
220  }
Optional< int > hwSca_sum_

◆ hwSeed_pT()

hwSeed_pT_t l1t::P2GTCandidate::hwSeed_pT ( ) const
inline

Definition at line 201 of file P2GTCandidate.h.

References hwSeed_pT_.

Referenced by setHwSeed_pT().

201  {
202  if (!hwSeed_pT_) {
203  throw std::invalid_argument("Object doesn't have seed_pT");
204  }
205  return static_cast<int>(hwSeed_pT_);
206  }
Optional< int > hwSeed_pT_

◆ hwSeed_z0()

hwSeed_z0_t l1t::P2GTCandidate::hwSeed_z0 ( ) const
inline

Definition at line 208 of file P2GTCandidate.h.

References hwSeed_z0_.

Referenced by setHwSeed_z0().

208  {
209  if (!hwSeed_z0_) {
210  throw std::invalid_argument("Object doesn't have seed_z0");
211  }
212  return static_cast<int>(hwSeed_z0_);
213  }
Optional< int > hwSeed_z0_

◆ hwSum_pT_pv()

hwSum_pT_pv_t l1t::P2GTCandidate::hwSum_pT_pv ( ) const
inline

Definition at line 229 of file P2GTCandidate.h.

References hwSum_pT_pv_.

Referenced by setHwSum_pT_pv().

229  {
230  if (!hwSum_pT_pv_) {
231  throw std::invalid_argument("Object doesn't have sum_pT_pv");
232  }
233  return static_cast<int>(hwSum_pT_pv_);
234  }
Optional< int > hwSum_pT_pv_

◆ hwType()

hwType_t l1t::P2GTCandidate::hwType ( ) const
inline

Definition at line 236 of file P2GTCandidate.h.

References hwType_.

Referenced by setHwType().

236  {
237  if (!hwType_) {
238  throw std::invalid_argument("Object doesn't have type");
239  }
240  return static_cast<int>(hwType_);
241  }
Optional< int > hwType_

◆ hwZ0()

hwZ0_t l1t::P2GTCandidate::hwZ0 ( ) const
inline

Definition at line 145 of file P2GTCandidate.h.

References hwZ0_.

Referenced by l1t::L1GTDeltaCut::checkObjects(), and setHwZ0().

145  {
146  if (!hwZ0_) {
147  throw std::invalid_argument("Object doesn't have z0");
148  }
149  return static_cast<int>(hwZ0_);
150  }
Optional< int > hwZ0_

◆ isElectron()

bool l1t::P2GTCandidate::isElectron ( ) const
inlineoverridevirtual

Reimplemented from reco::LeafCandidate.

Definition at line 262 of file P2GTCandidate.h.

References CL2Electrons, and objectType_.

◆ isJet()

bool l1t::P2GTCandidate::isJet ( ) const
inlineoverridevirtual

◆ isMuon()

bool l1t::P2GTCandidate::isMuon ( ) const
inlineoverridevirtual

◆ isPhoton()

bool l1t::P2GTCandidate::isPhoton ( ) const
inlineoverridevirtual

Reimplemented from reco::LeafCandidate.

Definition at line 274 of file P2GTCandidate.h.

References CL2Photons, and objectType_.

◆ isStandAloneMuon()

bool l1t::P2GTCandidate::isStandAloneMuon ( ) const
inlineoverridevirtual

◆ isTrackerMuon()

bool l1t::P2GTCandidate::isTrackerMuon ( ) const
inlineoverridevirtual

Reimplemented from reco::LeafCandidate.

Definition at line 272 of file P2GTCandidate.h.

References GMTTkMuons, and objectType_.

◆ objectType()

ObjectType l1t::P2GTCandidate::objectType ( ) const
inline

Definition at line 257 of file P2GTCandidate.h.

References objectType_.

257 { return objectType_; }
ObjectType objectType_

◆ operator!=()

bool l1t::P2GTCandidate::operator!= ( const P2GTCandidate rhs) const

Definition at line 15 of file P2GTCandidate.cc.

References hwBeta_, hwCharge_, hwD0_, hwEta_, hwIndex_, hwIso_, hwMass_, hwNumber_of_tracks_, hwNumber_of_tracks_in_pv_, hwNumber_of_tracks_not_in_pv_, hwPhi_, hwPT_, hwQual_, hwSca_sum_, hwSeed_pT_, hwSeed_z0_, hwSum_pT_pv_, hwType_, and hwZ0_.

15  {
16  return hwPT_ != rhs.hwPT_ && hwPhi_ != rhs.hwPhi_ && hwEta_ != rhs.hwEta_ && hwZ0_ != rhs.hwZ0_ &&
17  hwIso_ != rhs.hwIso_ && hwQual_ != rhs.hwQual_ && hwCharge_ != rhs.hwCharge_ && hwD0_ != rhs.hwD0_ &&
18  hwBeta_ != rhs.hwBeta_ && hwMass_ != rhs.hwMass_ && hwIndex_ != rhs.hwIndex_ &&
19  hwSeed_pT_ != rhs.hwSeed_pT_ && hwSeed_z0_ != rhs.hwSeed_z0_ && hwSca_sum_ != rhs.hwSca_sum_ &&
20  hwNumber_of_tracks_ != rhs.hwNumber_of_tracks_ && hwSum_pT_pv_ != rhs.hwSum_pT_pv_ &&
21  hwType_ != rhs.hwType_ && hwNumber_of_tracks_in_pv_ != rhs.hwNumber_of_tracks_in_pv_ &&
22  hwNumber_of_tracks_not_in_pv_ != rhs.hwNumber_of_tracks_not_in_pv_;
23  };
Optional< int > hwIso_
Optional< int > hwMass_
Optional< int > hwNumber_of_tracks_in_pv_
Optional< int > hwSeed_z0_
Optional< int > hwD0_
Optional< int > hwIndex_
Optional< int > hwCharge_
Optional< int > hwPT_
Optional< int > hwSeed_pT_
Optional< int > hwType_
Optional< int > hwNumber_of_tracks_
Optional< int > hwSum_pT_pv_
Optional< int > hwNumber_of_tracks_not_in_pv_
Optional< int > hwQual_
Optional< int > hwPhi_
Optional< int > hwEta_
Optional< int > hwBeta_
Optional< int > hwSca_sum_
Optional< int > hwZ0_

◆ operator==()

bool l1t::P2GTCandidate::operator== ( const P2GTCandidate rhs) const

Definition at line 5 of file P2GTCandidate.cc.

References hwBeta_, hwCharge_, hwD0_, hwEta_, hwIndex_, hwIso_, hwMass_, hwNumber_of_tracks_, hwNumber_of_tracks_in_pv_, hwNumber_of_tracks_not_in_pv_, hwPhi_, hwPT_, hwQual_, hwSca_sum_, hwSeed_pT_, hwSeed_z0_, hwSum_pT_pv_, hwType_, and hwZ0_.

5  {
6  return hwPT_ == rhs.hwPT_ && hwPhi_ == rhs.hwPhi_ && hwEta_ == rhs.hwEta_ && hwZ0_ == rhs.hwZ0_ &&
7  hwIso_ == rhs.hwIso_ && hwQual_ == rhs.hwQual_ && hwCharge_ == rhs.hwCharge_ && hwD0_ == rhs.hwD0_ &&
8  hwBeta_ == rhs.hwBeta_ && hwMass_ == rhs.hwMass_ && hwIndex_ == rhs.hwIndex_ &&
9  hwSeed_pT_ == rhs.hwSeed_pT_ && hwSeed_z0_ == rhs.hwSeed_z0_ && hwSca_sum_ == rhs.hwSca_sum_ &&
10  hwNumber_of_tracks_ == rhs.hwNumber_of_tracks_ && hwSum_pT_pv_ == rhs.hwSum_pT_pv_ &&
11  hwType_ == rhs.hwType_ && hwNumber_of_tracks_in_pv_ == rhs.hwNumber_of_tracks_in_pv_ &&
12  hwNumber_of_tracks_not_in_pv_ == rhs.hwNumber_of_tracks_not_in_pv_;
13  }
Optional< int > hwIso_
Optional< int > hwMass_
Optional< int > hwNumber_of_tracks_in_pv_
Optional< int > hwSeed_z0_
Optional< int > hwD0_
Optional< int > hwIndex_
Optional< int > hwCharge_
Optional< int > hwPT_
Optional< int > hwSeed_pT_
Optional< int > hwType_
Optional< int > hwNumber_of_tracks_
Optional< int > hwSum_pT_pv_
Optional< int > hwNumber_of_tracks_not_in_pv_
Optional< int > hwQual_
Optional< int > hwPhi_
Optional< int > hwEta_
Optional< int > hwBeta_
Optional< int > hwSca_sum_
Optional< int > hwZ0_

◆ setHwBeta()

void l1t::P2GTCandidate::setHwBeta ( hwBeta_t  hwBeta)
inline

Definition at line 105 of file P2GTCandidate.h.

References hwBeta(), and hwBeta_.

Referenced by l1t::L1TGT_GMT_TrackMatchedmuon::to_GTObject().

105 { hwBeta_ = hwBeta.to_int(); }
hwBeta_t hwBeta() const
Optional< int > hwBeta_

◆ setHwCharge()

void l1t::P2GTCandidate::setHwCharge ( hwCharge_t  hwCharge)
inline

◆ setHwD0()

void l1t::P2GTCandidate::setHwD0 ( hwD0_t  hwD0)
inline

◆ setHwEta()

void l1t::P2GTCandidate::setHwEta ( hwEta_t  hwEta)
inline

Definition at line 99 of file P2GTCandidate.h.

References hwEta(), and hwEta_.

Referenced by l1t::L1TGT_Common3Vector< 96 >::to_GTObject(), and l1t::L1TGT_GMT_TopoObject::to_GTObject().

99 { hwEta_ = hwEta.to_int(); }
hwEta_t hwEta() const
Optional< int > hwEta_

◆ setHwIndex()

void l1t::P2GTCandidate::setHwIndex ( hwIndex_t  hwIndex)
inline

Definition at line 107 of file P2GTCandidate.h.

References hwIndex(), and hwIndex_.

107 { hwIndex_ = hwIndex.to_int(); }
Optional< int > hwIndex_
hwIndex_t hwIndex() const

◆ setHwIso()

void l1t::P2GTCandidate::setHwIso ( hwIso_t  hwIso)
inline

◆ setHwMass()

void l1t::P2GTCandidate::setHwMass ( hwMass_t  hwMass)
inline

Definition at line 106 of file P2GTCandidate.h.

References hwMass(), and hwMass_.

Referenced by l1t::L1TGT_GMT_TopoObject::to_GTObject().

106 { hwMass_ = hwMass.to_int(); }
Optional< int > hwMass_
hwMass_t hwMass() const

◆ setHwNumber_of_tracks()

void l1t::P2GTCandidate::setHwNumber_of_tracks ( hwNumber_of_tracks_t  hwNumber_of_tracks)
inline

Definition at line 111 of file P2GTCandidate.h.

References hwNumber_of_tracks(), and hwNumber_of_tracks_.

Referenced by l1t::L1TGT_GTT_PromptJet::to_GTObject(), and l1t::L1TGT_GTT_DisplacedJet::to_GTObject().

111  {
113  }
Optional< int > hwNumber_of_tracks_
hwNumber_of_tracks_t hwNumber_of_tracks() const

◆ setHwNumber_of_tracks_in_pv()

void l1t::P2GTCandidate::setHwNumber_of_tracks_in_pv ( hwNumber_of_tracks_in_pv_t  hwNumber_of_tracks_in_pv)
inline

Definition at line 117 of file P2GTCandidate.h.

References hwNumber_of_tracks_in_pv(), and hwNumber_of_tracks_in_pv_.

Referenced by l1t::L1TGT_GTT_PrimaryVert::to_GTObject().

117  {
119  }
Optional< int > hwNumber_of_tracks_in_pv_
hwNumber_of_tracks_in_pv_t hwNumber_of_tracks_in_pv() const

◆ setHwNumber_of_tracks_not_in_pv()

void l1t::P2GTCandidate::setHwNumber_of_tracks_not_in_pv ( hwNumber_of_tracks_not_in_pv_t  hwNumber_of_tracks_not_in_pv)
inline

Definition at line 120 of file P2GTCandidate.h.

References hwNumber_of_tracks_not_in_pv(), and hwNumber_of_tracks_not_in_pv_.

Referenced by l1t::L1TGT_GTT_PrimaryVert::to_GTObject().

120  {
122  }
Optional< int > hwNumber_of_tracks_not_in_pv_
hwNumber_of_tracks_not_in_pv_t hwNumber_of_tracks_not_in_pv() const

◆ setHwPhi()

void l1t::P2GTCandidate::setHwPhi ( hwPhi_t  hwPhi)
inline

◆ setHwPT()

void l1t::P2GTCandidate::setHwPT ( hwPT_t  hwPT)
inline

◆ setHwQual()

void l1t::P2GTCandidate::setHwQual ( hwQual_t  hwQual)
inline

◆ setHwSca_sum()

void l1t::P2GTCandidate::setHwSca_sum ( hwSca_sum_t  hwSca_sum)
inline

Definition at line 110 of file P2GTCandidate.h.

References hwSca_sum(), and hwSca_sum_.

Referenced by l1t::L1TGT_CommonSum< 64 >::to_GTObject().

110 { hwSca_sum_ = hwSca_sum.to_int(); }
hwSca_sum_t hwSca_sum() const
Optional< int > hwSca_sum_

◆ setHwSeed_pT()

void l1t::P2GTCandidate::setHwSeed_pT ( hwSeed_pT_t  hwSeed_pT)
inline

Definition at line 108 of file P2GTCandidate.h.

References hwSeed_pT(), and hwSeed_pT_.

Referenced by l1t::L1TGT_GCT_tau6p6::to_GTObject(), l1t::L1TGT_GTT_HadronicTau::to_GTObject(), and l1t::L1TGT_CL2_Tau::to_GTObject().

108 { hwSeed_pT_ = hwSeed_pT.to_int(); }
Optional< int > hwSeed_pT_
hwSeed_pT_t hwSeed_pT() const

◆ setHwSeed_z0()

void l1t::P2GTCandidate::setHwSeed_z0 ( hwSeed_z0_t  hwSeed_z0)
inline

Definition at line 109 of file P2GTCandidate.h.

References hwSeed_z0(), and hwSeed_z0_.

Referenced by l1t::L1TGT_GTT_HadronicTau::to_GTObject(), and l1t::L1TGT_CL2_Tau::to_GTObject().

109 { hwSeed_z0_ = hwSeed_z0.to_int(); }
Optional< int > hwSeed_z0_
hwSeed_z0_t hwSeed_z0() const

◆ setHwSum_pT_pv()

void l1t::P2GTCandidate::setHwSum_pT_pv ( hwSum_pT_pv_t  hwSum_pT_pv)
inline

Definition at line 115 of file P2GTCandidate.h.

References hwSum_pT_pv(), and hwSum_pT_pv_.

Referenced by l1t::L1TGT_GTT_PrimaryVert::to_GTObject().

115 { hwSum_pT_pv_ = hwSum_pT_pv.to_int(); }
hwSum_pT_pv_t hwSum_pT_pv() const
Optional< int > hwSum_pT_pv_

◆ setHwType()

void l1t::P2GTCandidate::setHwType ( hwType_t  hwType)
inline

Definition at line 116 of file P2GTCandidate.h.

References hwType(), and hwType_.

Referenced by l1t::L1TGT_GTT_HadronicTau::to_GTObject(), and l1t::L1TGT_CL2_Tau::to_GTObject().

116 { hwType_ = hwType.to_int(); }
Optional< int > hwType_
hwType_t hwType() const

◆ setHwZ0()

void l1t::P2GTCandidate::setHwZ0 ( hwZ0_t  hwZ0)
inline

Friends And Related Function Documentation

◆ L1GTProducer

friend class L1GTProducer
friend

Definition at line 28 of file P2GTCandidate.h.

Member Data Documentation

◆ hwBeta_

Optional<int> l1t::P2GTCandidate::hwBeta_
private

◆ hwCharge_

Optional<int> l1t::P2GTCandidate::hwCharge_
private

◆ hwD0_

Optional<int> l1t::P2GTCandidate::hwD0_
private

◆ hwEta_

Optional<int> l1t::P2GTCandidate::hwEta_
private

◆ hwIndex_

Optional<int> l1t::P2GTCandidate::hwIndex_
private

Definition at line 292 of file P2GTCandidate.h.

Referenced by hwIndex(), operator!=(), operator==(), and setHwIndex().

◆ hwIso_

Optional<int> l1t::P2GTCandidate::hwIso_
private

◆ hwMass_

Optional<int> l1t::P2GTCandidate::hwMass_
private

Definition at line 291 of file P2GTCandidate.h.

Referenced by hwMass(), operator!=(), operator==(), and setHwMass().

◆ hwNumber_of_tracks_

Optional<int> l1t::P2GTCandidate::hwNumber_of_tracks_
private

◆ hwNumber_of_tracks_in_pv_

Optional<int> l1t::P2GTCandidate::hwNumber_of_tracks_in_pv_
private

◆ hwNumber_of_tracks_not_in_pv_

Optional<int> l1t::P2GTCandidate::hwNumber_of_tracks_not_in_pv_
private

◆ hwPhi_

Optional<int> l1t::P2GTCandidate::hwPhi_
private

◆ hwPT_

Optional<int> l1t::P2GTCandidate::hwPT_
private

◆ hwQual_

Optional<int> l1t::P2GTCandidate::hwQual_
private

◆ hwSca_sum_

Optional<int> l1t::P2GTCandidate::hwSca_sum_
private

Definition at line 295 of file P2GTCandidate.h.

Referenced by hwSca_sum(), operator!=(), operator==(), and setHwSca_sum().

◆ hwSeed_pT_

Optional<int> l1t::P2GTCandidate::hwSeed_pT_
private

Definition at line 293 of file P2GTCandidate.h.

Referenced by hwSeed_pT(), operator!=(), operator==(), and setHwSeed_pT().

◆ hwSeed_z0_

Optional<int> l1t::P2GTCandidate::hwSeed_z0_
private

Definition at line 294 of file P2GTCandidate.h.

Referenced by hwSeed_z0(), operator!=(), operator==(), and setHwSeed_z0().

◆ hwSum_pT_pv_

Optional<int> l1t::P2GTCandidate::hwSum_pT_pv_
private

◆ hwType_

Optional<int> l1t::P2GTCandidate::hwType_
private

Definition at line 300 of file P2GTCandidate.h.

Referenced by hwType(), operator!=(), operator==(), and setHwType().

◆ hwZ0_

Optional<int> l1t::P2GTCandidate::hwZ0_
private

◆ objectType_

ObjectType l1t::P2GTCandidate::objectType_ = Undefined
private