CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
HLTGenValObject Class Reference

#include <HLTGenValObject.h>

Public Member Functions

double et () const
 
double eta () const
 
 HLTGenValObject ()
 
 HLTGenValObject (const reco::GenParticle &p)
 
 HLTGenValObject (const reco::GenJet &p)
 
 HLTGenValObject (const reco::Candidate::PolarLorentzVector &p)
 
double phi () const
 
double pt () const
 

Private Attributes

math::XYZTLorentzVector p4Cartesian_
 
math::PtEtaPhiMLorentzVector p4Polar_
 

Detailed Description

Definition at line 20 of file HLTGenValObject.h.

Constructor & Destructor Documentation

◆ HLTGenValObject() [1/4]

HLTGenValObject::HLTGenValObject ( )
inline

Definition at line 23 of file HLTGenValObject.h.

23 {}

◆ HLTGenValObject() [2/4]

HLTGenValObject::HLTGenValObject ( const reco::GenParticle p)
inline

Definition at line 26 of file HLTGenValObject.h.

26 : p4Polar_(p.p4()), p4Cartesian_(p.p4()) {}
math::PtEtaPhiMLorentzVector p4Polar_
math::XYZTLorentzVector p4Cartesian_

◆ HLTGenValObject() [3/4]

HLTGenValObject::HLTGenValObject ( const reco::GenJet p)
inline

Definition at line 29 of file HLTGenValObject.h.

29 : p4Polar_(p.p4()), p4Cartesian_(p.p4()) {}
math::PtEtaPhiMLorentzVector p4Polar_
math::XYZTLorentzVector p4Cartesian_

◆ HLTGenValObject() [4/4]

HLTGenValObject::HLTGenValObject ( const reco::Candidate::PolarLorentzVector p)
inline

Definition at line 32 of file HLTGenValObject.h.

32 : p4Polar_(p), p4Cartesian_(p) {}
math::PtEtaPhiMLorentzVector p4Polar_
math::XYZTLorentzVector p4Cartesian_

Member Function Documentation

◆ et()

double HLTGenValObject::et ( ) const
inline

Definition at line 38 of file HLTGenValObject.h.

References p4Cartesian_, and pt().

38 { return (pt() <= 0) ? 0 : p4Cartesian_.Et(); }
double pt() const
math::XYZTLorentzVector p4Cartesian_

◆ eta()

double HLTGenValObject::eta ( void  ) const
inline

Definition at line 36 of file HLTGenValObject.h.

References p4Polar_.

Referenced by Particle.Particle::__str__(), Jet.Jet::jetID(), and Jet.Jet::puJetId().

36 { return p4Polar_.eta(); }
math::PtEtaPhiMLorentzVector p4Polar_

◆ phi()

double HLTGenValObject::phi ( void  ) const
inline

Definition at line 37 of file HLTGenValObject.h.

References p4Polar_.

Referenced by Particle.Particle::__str__(), and ntupleDataFormat.Track::phiPull().

37 { return p4Polar_.phi(); }
math::PtEtaPhiMLorentzVector p4Polar_

◆ pt()

double HLTGenValObject::pt ( ) const
inline

Member Data Documentation

◆ p4Cartesian_

math::XYZTLorentzVector HLTGenValObject::p4Cartesian_
private

Definition at line 43 of file HLTGenValObject.h.

Referenced by et().

◆ p4Polar_

math::PtEtaPhiMLorentzVector HLTGenValObject::p4Polar_
private

Definition at line 42 of file HLTGenValObject.h.

Referenced by eta(), phi(), and pt().