CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
pat::MET::PackedMETUncertainty Class Reference

this below should be private but Reflex doesn't like it More...

#include <MET.h>

Public Member Functions

 PackedMETUncertainty ()
 
 PackedMETUncertainty (float dpx, float dpy, float dsumEt)
 
void set (float dpx, float dpy, float dsumEt)
 
UnpackedMETUncertainty unpack () const
 
float unpackDpx () const
 
float unpackDpy () const
 
float unpackDSumEt () const
 

Protected Member Functions

void pack (float dpx, float dpy, float dsumEt)
 

Protected Attributes

uint16_t packedDpx_
 
uint16_t packedDpy_
 
uint16_t packedDSumEt_
 

Detailed Description

this below should be private but Reflex doesn't like it

Definition at line 294 of file MET.h.

Constructor & Destructor Documentation

◆ PackedMETUncertainty() [1/2]

pat::MET::PackedMETUncertainty::PackedMETUncertainty ( )
inline

Definition at line 298 of file MET.h.

References pack().

298 { pack(0, 0, 0); }
void pack(float dpx, float dpy, float dsumEt)
Definition: MET.cc:460

◆ PackedMETUncertainty() [2/2]

pat::MET::PackedMETUncertainty::PackedMETUncertainty ( float  dpx,
float  dpy,
float  dsumEt 
)
inline

Definition at line 299 of file MET.h.

References reco::MET::dsumEt(), and pack().

299 { pack(dpx, dpy, dsumEt); }
std::vector< double > dsumEt() const
Definition: MET.cc:117
void pack(float dpx, float dpy, float dsumEt)
Definition: MET.cc:460

Member Function Documentation

◆ pack()

void MET::PackedMETUncertainty::pack ( float  dpx,
float  dpy,
float  dsumEt 
)
protected

Definition at line 460 of file MET.cc.

References reco::MET::dsumEt(), and MiniFloatConverter::float32to16().

Referenced by PackedMETUncertainty(), and set().

460  {
464 }
std::vector< double > dsumEt() const
Definition: MET.cc:117
static uint16_t float32to16(float x)
Definition: libminifloat.h:17

◆ set()

void pat::MET::PackedMETUncertainty::set ( float  dpx,
float  dpy,
float  dsumEt 
)
inline

Definition at line 300 of file MET.h.

References reco::MET::dsumEt(), and pack().

300 { pack(dpx, dpy, dsumEt); }
std::vector< double > dsumEt() const
Definition: MET.cc:117
void pack(float dpx, float dpy, float dsumEt)
Definition: MET.cc:460

◆ unpack()

MET::UnpackedMETUncertainty MET::PackedMETUncertainty::unpack ( ) const

Definition at line 447 of file MET.cc.

References reco::MET::dsumEt(), MiniFloatConverter::float16to32(), packedDpx_, packedDpy_, and packedDSumEt_.

447  {
451  return UnpackedMETUncertainty(dpx, dpy, dsumEt);
452 }
std::vector< double > dsumEt() const
Definition: MET.cc:117
static float float16to32(uint16_t h)
Definition: libminifloat.h:13

◆ unpackDpx()

float MET::PackedMETUncertainty::unpackDpx ( ) const

◆ unpackDpy()

float MET::PackedMETUncertainty::unpackDpy ( ) const

◆ unpackDSumEt()

float MET::PackedMETUncertainty::unpackDSumEt ( ) const

Definition at line 458 of file MET.cc.

References MiniFloatConverter::float16to32().

Referenced by pat::MET::setUncShift(), and pat::MET::shiftedSumEt().

static float float16to32(uint16_t h)
Definition: libminifloat.h:13

Member Data Documentation

◆ packedDpx_

uint16_t pat::MET::PackedMETUncertainty::packedDpx_
protected

Definition at line 309 of file MET.h.

Referenced by unpack().

◆ packedDpy_

uint16_t pat::MET::PackedMETUncertainty::packedDpy_
protected

Definition at line 309 of file MET.h.

Referenced by unpack().

◆ packedDSumEt_

uint16_t pat::MET::PackedMETUncertainty::packedDSumEt_
protected

Definition at line 309 of file MET.h.

Referenced by unpack().