CMS 3D CMS Logo

Public Member Functions | Private Attributes

pat::LookupTableRecord Class Reference

Class to store the result of a lookup table fetch, e.g. for efficiencies. More...

#include <DataFormats/PatCandidates/interface/LookupTableRecord.h>

List of all members.

Public Member Functions

uint16_t bin () const
float error () const
 LookupTableRecord (float value, uint16_t bin=0)
 LookupTableRecord (float value, float error, uint16_t bin=0)
 LookupTableRecord (const Measurement1DFloat &meas, uint16_t bin=0)
 LookupTableRecord ()
float value () const

Private Attributes

uint16_t bin_
float error_
float value_

Detailed Description

Class to store the result of a lookup table fetch, e.g. for efficiencies.

Stores a value, an uncertainty and a bin index (needed to take into account correlations from multiple lookups)

Author:
Giovanni Petrucciani
Version:
Id:
LookupTableRecord.h,v 1.1 2008/09/29 09:42:01 gpetrucc Exp

Definition at line 20 of file LookupTableRecord.h.


Constructor & Destructor Documentation

pat::LookupTableRecord::LookupTableRecord ( ) [inline]

Definition at line 22 of file LookupTableRecord.h.

: value_(0), error_(0), bin_(0) {}
pat::LookupTableRecord::LookupTableRecord ( float  value,
float  error,
uint16_t  bin = 0 
) [inline]

Definition at line 23 of file LookupTableRecord.h.

pat::LookupTableRecord::LookupTableRecord ( float  value,
uint16_t  bin = 0 
) [inline]

Definition at line 25 of file LookupTableRecord.h.

                                                           :
                value_(value), error_(0), bin_(bin) {}
pat::LookupTableRecord::LookupTableRecord ( const Measurement1DFloat meas,
uint16_t  bin = 0 
) [inline]

Definition at line 27 of file LookupTableRecord.h.

                                                                              :
                value_(meas.value()), error_(meas.error()), bin_(bin) {}

Member Function Documentation

uint16_t pat::LookupTableRecord::bin ( ) const [inline]

Definition at line 35 of file LookupTableRecord.h.

References bin_.

{ return bin_; }
float pat::LookupTableRecord::error ( ) const [inline]

Definition at line 33 of file LookupTableRecord.h.

References error_.

{ return error_; }
float pat::LookupTableRecord::value ( ) const [inline]

Definition at line 31 of file LookupTableRecord.h.

References value_.

{ return value_; }

Member Data Documentation

uint16_t pat::LookupTableRecord::bin_ [private]

Definition at line 38 of file LookupTableRecord.h.

Referenced by bin().

Definition at line 37 of file LookupTableRecord.h.

Referenced by error().

Definition at line 37 of file LookupTableRecord.h.

Referenced by value().