test
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 18 of file HPDNoiseData.h.

Constructor & Destructor Documentation

HPDNoiseData::HPDNoiseData ( )
inline

Definition at line 20 of file HPDNoiseData.h.

20 {}
HPDNoiseData::~HPDNoiseData ( )
virtual

Definition at line 9 of file HPDNoiseData.cc.

9 {}

Member Function Documentation

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

add another noise channel to the event

Definition at line 11 of file HPDNoiseData.cc.

References mData.

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

branch name

Definition at line 36 of file HPDNoiseData.h.

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

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

class name

Definition at line 34 of file HPDNoiseData.h.

Referenced by HPDNoiseMaker::addHpd().

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

reset event to empty state

Definition at line 32 of file HPDNoiseData.h.

References mData.

32 {mData.clear ();}
std::vector< HPDNoiseDataFrame > mData
Definition: HPDNoiseData.h:38
std::vector< HcalDetId > HPDNoiseData::getAllDetIds ( ) const

all channels contributing to the event

Definition at line 15 of file HPDNoiseData.cc.

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

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

retrive frame for the given index

Definition at line 21 of file HPDNoiseData.cc.

References i, and mData.

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

21  {
22  return mData[i];
23 }
int i
Definition: DBlmapReader.cc:9
std::vector< HPDNoiseDataFrame > mData
Definition: HPDNoiseData.h:38
unsigned HPDNoiseData::size ( void  ) const
inline

number of noise channels in the event

Definition at line 24 of file HPDNoiseData.h.

References mData.

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

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

Member Data Documentation

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

Definition at line 38 of file HPDNoiseData.h.

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