CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions | Private Attributes

HPDNoiseData Class Reference

#include <HPDNoiseData.h>

List of all members.

Public Member Functions

void addChannel (HcalDetId fId, const float *fCharges)
 add another noise channel to the event
void clear ()
 reset event to empty state
std::vector< HcalDetIdgetAllDetIds () const
 all channels contributing to the event
const HPDNoiseDataFramegetDataFrame (size_t i) const
 retrive frame for the given index
 HPDNoiseData ()
unsigned size () const
 number of noise channels in the event
virtual ~HPDNoiseData ()

Static Public Member Functions

static const char * branchName ()
 branch name
static const char * className ()
 class name

Private Attributes

std::vector< HPDNoiseDataFramemData

Detailed Description

Definition at line 19 of file HPDNoiseData.h.


Constructor & Destructor Documentation

HPDNoiseData::HPDNoiseData ( ) [inline]

Definition at line 21 of file HPDNoiseData.h.

{}
HPDNoiseData::~HPDNoiseData ( ) [virtual]

Definition at line 10 of file HPDNoiseData.cc.

{}

Member Function Documentation

void HPDNoiseData::addChannel ( HcalDetId  fId,
const float *  fCharges 
)

add another noise channel to the event

Definition at line 12 of file HPDNoiseData.cc.

References mData.

                                                                   {
  mData.push_back (HPDNoiseDataFrame (fId, fCharges));
}
static const char* HPDNoiseData::branchName ( ) [inline, static]

branch name

Definition at line 37 of file HPDNoiseData.h.

Referenced by HPDNoiseMaker::addHpd(), HPDNoiseReader::grabEntry(), and HPDNoiseMaker::newHpdEvent().

{return "data";}
static const char* HPDNoiseData::className ( ) [inline, static]

class name

Definition at line 35 of file HPDNoiseData.h.

Referenced by HPDNoiseMaker::addHpd().

{return "HPDNoiseData";}
void HPDNoiseData::clear ( void  ) [inline]

reset event to empty state

Definition at line 33 of file HPDNoiseData.h.

References mData.

{mData.clear ();}
std::vector< HcalDetId > HPDNoiseData::getAllDetIds ( ) const

all channels contributing to the event

Definition at line 16 of file HPDNoiseData.cc.

References getDataFrame(), i, mData, and query::result.

                                                       {
  std::vector<HcalDetId> result;
  for (size_t i = 0; i < mData.size(); ++i) result.push_back (getDataFrame(i).id());
  return result;
}
const HPDNoiseDataFrame & HPDNoiseData::getDataFrame ( size_t  i) const

retrive frame for the given index

Definition at line 22 of file HPDNoiseData.cc.

References i, and mData.

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

                                                                   {
  return mData[i];
}
unsigned HPDNoiseData::size ( void  ) const [inline]

number of noise channels in the event

Definition at line 25 of file HPDNoiseData.h.

References mData.

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

{return mData.size();}

Member Data Documentation

std::vector<HPDNoiseDataFrame> HPDNoiseData::mData [private]

Definition at line 39 of file HPDNoiseData.h.

Referenced by addChannel(), clear(), getAllDetIds(), getDataFrame(), and size().