CMS 3D CMS Logo

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

#include <HPDNoiseData.h>

Public Member Functions

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

Static Public Member Functions

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

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.

21 {}
HPDNoiseData::~HPDNoiseData ( )
virtual

Definition at line 10 of file HPDNoiseData.cc.

10 {}

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.

12  {
13  mData.push_back (HPDNoiseDataFrame (fId, fCharges));
14 }
std::vector< HPDNoiseDataFrame > mData
Definition: HPDNoiseData.h:39
static const char* HPDNoiseData::branchName ( )
inlinestatic

branch name

Definition at line 37 of file HPDNoiseData.h.

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

37 {return "data";}
static const char* HPDNoiseData::className ( )
inlinestatic

class name

Definition at line 35 of file HPDNoiseData.h.

Referenced by HPDNoiseMaker::addHpd().

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

reset event to empty state

Definition at line 33 of file HPDNoiseData.h.

References mData.

33 {mData.clear ();}
std::vector< HPDNoiseDataFrame > mData
Definition: HPDNoiseData.h:39
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.

16  {
17  std::vector<HcalDetId> result;
18  for (size_t i = 0; i < mData.size(); ++i) result.push_back (getDataFrame(i).id());
19  return result;
20 }
int i
Definition: DBlmapReader.cc:9
const HPDNoiseDataFrame & getDataFrame(size_t i) const
retrive frame for the given index
Definition: HPDNoiseData.cc:22
tuple result
Definition: query.py:137
std::vector< HPDNoiseDataFrame > mData
Definition: HPDNoiseData.h:39
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<<().

22  {
23  return mData[i];
24 }
int i
Definition: DBlmapReader.cc:9
std::vector< HPDNoiseDataFrame > mData
Definition: HPDNoiseData.h:39
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<<().

25 {return mData.size();}
std::vector< HPDNoiseDataFrame > mData
Definition: HPDNoiseData.h:39

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