CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
HPDNoiseDataFrame Class Reference

#include <HPDNoiseDataFrame.h>

Public Member Functions

float charge (unsigned i) const
 charges corresponding to one timeslice of the channel More...
 
const float * getFrame () const
 array of 10 charges corresponding to one channel More...
 
 HPDNoiseDataFrame ()
 
 HPDNoiseDataFrame (HcalDetId fId, const float *fCharges)
 
HcalDetId id () const
 detId for the frame More...
 
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.

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

Definition at line 10 of file HPDNoiseDataFrame.cc.

References i, and mCharge.

11  : mId (fId.rawId())
12 {
13  for (size_t i = 0; i < FRAMESIZE; ++i) mCharge[i] = fCharges[i];
14 }
int i
Definition: DBlmapReader.cc:9
uint32_t rawId() const
get the raw id
Definition: DetId.h:45
HPDNoiseDataFrame::~HPDNoiseDataFrame ( )
virtual

Definition at line 16 of file HPDNoiseDataFrame.cc.

16 {}

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

30 {return (i < FRAMESIZE) ? mCharge[i] : -1.;}
int i
Definition: DBlmapReader.cc:9
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().

32 {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<<().

28 {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().