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

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

Definition at line 274 of file MET.h.

References timeUnitHelper::pack(), and timeUnitHelper::unpack().

274  : dpx_(0), dpy_(0), dsumEt_(0) {
275  pack();
276  unpack();
277  }
void unpack() const
Definition: MET.cc:445
pat::MET::PackedMETUncertainty::PackedMETUncertainty ( float  dpx,
float  dpy,
float  dsumEt 
)
inline

Definition at line 278 of file MET.h.

References timeUnitHelper::pack(), and timeUnitHelper::unpack().

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

Member Function Documentation

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

Definition at line 282 of file MET.h.

References timeUnitHelper::unpack().

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

282  {
283  if (!unpacked_)
284  unpack();
285  return dpx_;
286  }
void unpack() const
Definition: MET.cc:445
double pat::MET::PackedMETUncertainty::dpy ( ) const
inline

Definition at line 287 of file MET.h.

References timeUnitHelper::unpack().

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

287  {
288  if (!unpacked_)
289  unpack();
290  return dpy_;
291  }
void unpack() const
Definition: MET.cc:445
double pat::MET::PackedMETUncertainty::dsumEt ( ) const
inline

Definition at line 292 of file MET.h.

References timeUnitHelper::unpack().

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

292  {
293  if (!unpacked_)
294  unpack();
295  return dsumEt_;
296  }
void unpack() const
Definition: MET.cc:445
void MET::PackedMETUncertainty::pack ( )
void pat::MET::PackedMETUncertainty::set ( float  dpx,
float  dpy,
float  dsumEt 
)
inline

Definition at line 297 of file MET.h.

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

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

Member Data Documentation

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

Definition at line 313 of file MET.h.

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

Definition at line 313 of file MET.h.

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

Definition at line 313 of file MET.h.

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

Definition at line 315 of file MET.h.

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

Definition at line 315 of file MET.h.

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

Definition at line 315 of file MET.h.

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

Definition at line 314 of file MET.h.