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 21 of file HPDNoiseDataFrame.h.

Constructor & Destructor Documentation

HPDNoiseDataFrame::HPDNoiseDataFrame ( )
inline

Definition at line 23 of file HPDNoiseDataFrame.h.

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

Definition at line 9 of file HPDNoiseDataFrame.cc.

References i, and mCharge.

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

Definition at line 15 of file HPDNoiseDataFrame.cc.

15 {}

Member Function Documentation

float HPDNoiseDataFrame::charge ( unsigned  i) const
inline

charges corresponding to one timeslice of the channel

Definition at line 29 of file HPDNoiseDataFrame.h.

References i, and mCharge.

Referenced by operator<<().

29 {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 31 of file HPDNoiseDataFrame.h.

References mCharge.

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

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

detId for the frame

Definition at line 27 of file HPDNoiseDataFrame.h.

References mId.

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

27 {return HcalDetId (mId);}

Member Data Documentation

float HPDNoiseDataFrame::mCharge[10]
private

Definition at line 34 of file HPDNoiseDataFrame.h.

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

uint32_t HPDNoiseDataFrame::mId
private

Definition at line 33 of file HPDNoiseDataFrame.h.

Referenced by id().