CMS 3D CMS Logo

List of all members | Public 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

void add (float dpx, float dpy, float dsumEt)
 
double dpx () const
 
double dpy () const
 
double dsumEt () const
 
void pack ()
 
 PackedMETUncertainty ()
 
 PackedMETUncertainty (float dpx, float dpy, float dsumEt)
 
void set (float dpx, float dpy, float dsumEt)
 
void unpack () const
 

Protected Attributes

float dpx_
 
float dpy_
 
float dsumEt_
 
uint16_t packedDpx_
 
uint16_t packedDpy_
 
uint16_t packedDSumEt_
 
bool unpacked_
 

Detailed Description

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

Definition at line 270 of file MET.h.

Constructor & Destructor Documentation

◆ PackedMETUncertainty() [1/2]

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

Definition at line 274 of file MET.h.

274  : dpx_(0), dpy_(0), dsumEt_(0) {
275  pack();
276  unpack();
277  }

References pack(), and unpack().

◆ PackedMETUncertainty() [2/2]

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

Definition at line 278 of file MET.h.

278  : dpx_(dpx), dpy_(dpy), dsumEt_(dsumEt) {
279  pack();
280  unpack();
281  }

References pack(), and unpack().

Member Function Documentation

◆ add()

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

Definition at line 304 of file MET.h.

304  {
305  dpx_ += dpx;
306  dpy_ += dpy;
307  dsumEt_ += dsumEt;
308  }

References dpx(), dpx_, dpy(), dpy_, dsumEt(), and dsumEt_.

Referenced by pat::MET::findMETTotalShift(), counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().

◆ dpx()

double pat::MET::PackedMETUncertainty::dpx ( ) const
inline

Definition at line 282 of file MET.h.

282  {
283  if (!unpacked_)
284  unpack();
285  return dpx_;
286  }

References dpx_, unpack(), and unpacked_.

Referenced by add(), set(), pat::MET::setUncShift(), pat::MET::shiftedP2(), pat::MET::shiftedP3(), and pat::MET::shiftedP4().

◆ dpy()

double pat::MET::PackedMETUncertainty::dpy ( ) const
inline

Definition at line 287 of file MET.h.

287  {
288  if (!unpacked_)
289  unpack();
290  return dpy_;
291  }

References dpy_, unpack(), and unpacked_.

Referenced by add(), set(), pat::MET::setUncShift(), pat::MET::shiftedP2(), pat::MET::shiftedP3(), and pat::MET::shiftedP4().

◆ dsumEt()

double pat::MET::PackedMETUncertainty::dsumEt ( ) const
inline

Definition at line 292 of file MET.h.

292  {
293  if (!unpacked_)
294  unpack();
295  return dsumEt_;
296  }

References dsumEt_, unpack(), and unpacked_.

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

◆ pack()

void MET::PackedMETUncertainty::pack ( )

◆ set()

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

Definition at line 297 of file MET.h.

297  {
298  dpx_ = dpx;
299  dpy_ = dpy;
300  dsumEt_ = dsumEt;
301  pack();
302  unpack();
303  }

References dpx(), dpx_, dpy(), dpy_, dsumEt(), dsumEt_, pack(), and unpack().

◆ unpack()

void MET::PackedMETUncertainty::unpack ( ) const

Member Data Documentation

◆ dpx_

float pat::MET::PackedMETUncertainty::dpx_
mutableprotected

Definition at line 313 of file MET.h.

Referenced by add(), dpx(), pack(), and set().

◆ dpy_

float pat::MET::PackedMETUncertainty::dpy_
mutableprotected

Definition at line 313 of file MET.h.

Referenced by add(), dpy(), pack(), and set().

◆ dsumEt_

float pat::MET::PackedMETUncertainty::dsumEt_
mutableprotected

Definition at line 313 of file MET.h.

Referenced by add(), dsumEt(), pack(), and set().

◆ packedDpx_

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

Definition at line 315 of file MET.h.

Referenced by pack().

◆ packedDpy_

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

Definition at line 315 of file MET.h.

Referenced by pack().

◆ packedDSumEt_

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

Definition at line 315 of file MET.h.

Referenced by pack().

◆ unpacked_

bool pat::MET::PackedMETUncertainty::unpacked_
mutableprotected

Definition at line 314 of file MET.h.

Referenced by dpx(), dpy(), and dsumEt().

pat::MET::PackedMETUncertainty::dpy
double dpy() const
Definition: MET.h:287
pat::MET::PackedMETUncertainty::packedDSumEt_
uint16_t packedDSumEt_
Definition: MET.h:315
pat::MET::PackedMETUncertainty::unpacked_
bool unpacked_
Definition: MET.h:314
pat::MET::PackedMETUncertainty::dsumEt
double dsumEt() const
Definition: MET.h:292
pat::MET::PackedMETUncertainty::dpx
double dpx() const
Definition: MET.h:282
pat::MET::PackedMETUncertainty::dpy_
float dpy_
Definition: MET.h:313
pat::MET::PackedMETUncertainty::dpx_
float dpx_
Definition: MET.h:313
pat::MET::PackedMETUncertainty::dsumEt_
float dsumEt_
Definition: MET.h:313
MiniFloatConverter::float16to32
static float float16to32(uint16_t h)
Definition: libminifloat.h:12
pat::MET::PackedMETUncertainty::unpack
void unpack() const
Definition: MET.cc:445
pat::MET::PackedMETUncertainty::pack
void pack()
Definition: MET.cc:440
pat::MET::PackedMETUncertainty::packedDpy_
uint16_t packedDpy_
Definition: MET.h:315
pat::MET::PackedMETUncertainty::packedDpx_
uint16_t packedDpx_
Definition: MET.h:315
MiniFloatConverter::float32to16
static uint16_t float32to16(float x)
Definition: libminifloat.h:20