CMS 3D CMS Logo

Public Member Functions | Private Attributes

HPDNoiseDataFrame Class Reference

#include <HPDNoiseDataFrame.h>

List of all members.

Public Member Functions

float charge (unsigned i) const
 charges corresponding to one timeslice of the channel
const float * getFrame () const
 array of 10 charges corresponding to one channel
 HPDNoiseDataFrame (HcalDetId fId, const float *fCharges)
 HPDNoiseDataFrame ()
HcalDetId id () const
 detId for the frame
virtual ~HPDNoiseDataFrame ()

Private Attributes

float mCharge [10]
uint32_t mId

Detailed Description

Definition at line 22 of file HPDNoiseDataFrame.h.


Constructor & Destructor Documentation

HPDNoiseDataFrame::HPDNoiseDataFrame ( ) [inline]

Definition at line 24 of file HPDNoiseDataFrame.h.

{};
HPDNoiseDataFrame::HPDNoiseDataFrame ( HcalDetId  fId,
const float *  fCharges 
)

Definition at line 10 of file HPDNoiseDataFrame.cc.

References i, and mCharge.

  : mId (fId.rawId())
{
  for (size_t i = 0; i < FRAMESIZE; ++i) mCharge[i] = fCharges[i];
}
HPDNoiseDataFrame::~HPDNoiseDataFrame ( ) [virtual]

Definition at line 16 of file HPDNoiseDataFrame.cc.

{}

Member Function Documentation

float HPDNoiseDataFrame::charge ( unsigned  i) const [inline]

charges corresponding to one timeslice of the channel

Definition at line 30 of file HPDNoiseDataFrame.h.

References i, and mCharge.

Referenced by operator<<().

{return (i < FRAMESIZE) ? mCharge[i] : -1.;}
const float* HPDNoiseDataFrame::getFrame ( ) const [inline]

array of 10 charges corresponding to one channel

Definition at line 32 of file HPDNoiseDataFrame.h.

References mCharge.

Referenced by HPDNoiseLibraryReader::getBiasedNoisyHcalDetIds(), and HPDNoiseLibraryReader::getNoisyHcalDetIds().

{return mCharge;}
HcalDetId HPDNoiseDataFrame::id ( void  ) const [inline]

detId for the frame

Definition at line 28 of file HPDNoiseDataFrame.h.

References mId.

Referenced by HPDNoiseLibraryReader::getBiasedNoisyHcalDetIds(), HPDNoiseLibraryReader::getNoisyHcalDetIds(), and operator<<().

{return HcalDetId (mId);}

Member Data Documentation

float HPDNoiseDataFrame::mCharge[10] [private]

Definition at line 35 of file HPDNoiseDataFrame.h.

Referenced by charge(), getFrame(), and HPDNoiseDataFrame().

uint32_t HPDNoiseDataFrame::mId [private]

Definition at line 34 of file HPDNoiseDataFrame.h.

Referenced by id().