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.

References pack(), and unpack().

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

◆ PackedMETUncertainty() [2/2]

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

Definition at line 278 of file MET.h.

References pack(), and unpack().

278  : dpx_(dpx), dpy_(dpy), dsumEt_(dsumEt) {
279  pack();
280  unpack();
281  }
double dsumEt() const
Definition: MET.h:292
double dpy() const
Definition: MET.h:287
double dpx() const
Definition: MET.h:282

Member Function Documentation

◆ add()

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

◆ dpx()

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

Definition at line 282 of file MET.h.

References dpx_, unpack(), and unpacked_.

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

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

◆ dpy()

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

Definition at line 287 of file MET.h.

References dpy_, unpack(), and unpacked_.

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

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

◆ dsumEt()

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

Definition at line 292 of file MET.h.

References dsumEt_, unpack(), and unpacked_.

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

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

◆ 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.

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

297  {
298  dpx_ = dpx;
299  dpy_ = dpy;
300  dsumEt_ = dsumEt;
301  pack();
302  unpack();
303  }
double dsumEt() const
Definition: MET.h:292
double dpy() const
Definition: MET.h:287
double dpx() const
Definition: MET.h:282

◆ 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().