CMS 3D CMS Logo

HPDNoiseData Class Reference

#include <SimCalorimetry/HcalSimAlgos/interface/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 ()

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.

00021 {}

HPDNoiseData::~HPDNoiseData (  )  [virtual]

Definition at line 10 of file HPDNoiseData.cc.

00010 {}


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.

00012                                                                    {
00013   mData.push_back (HPDNoiseDataFrame (fId, fCharges));
00014 }

void HPDNoiseData::clear ( void   )  [inline]

reset event to empty state

Definition at line 33 of file HPDNoiseData.h.

References mData.

00033 {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 HLT_VtxMuL3::result.

00016                                                        {
00017   std::vector<HcalDetId> result;
00018   for (size_t i = 0; i < mData.size(); ++i) result.push_back (getDataFrame(i).id());
00019   return result;
00020 }

const HPDNoiseDataFrame & HPDNoiseData::getDataFrame ( size_t  i  )  const

retrive frame for the given index

Definition at line 22 of file HPDNoiseData.cc.

References mData.

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

00022                                                                    {
00023   return mData[i];
00024 }

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

00025 {return mData.size();}


Member Data Documentation

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

Definition at line 35 of file HPDNoiseData.h.

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


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:24:47 2009 for CMSSW by  doxygen 1.5.4