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
HPDNoiseDataCatalog Class Reference

#include <HPDNoiseDataCatalog.h>

Public Member Functions

void addHpd (const std::string &fName, float fDischargeRate, float fIonFeedbackFirstPeakRate, float fIonFeedbackSecondPeakRate, float fElectronEmissionRate)
 add new HPD instance to the catalog More...
 
const std::vector< std::string > & allNames () const
 all HPD instance names More...
 
float getDischargeRate (size_t i) const
 get noise rate for the HPD instance More...
 
float getElectronEmissionRate (size_t i) const
 get thermal electron emission noise rate for the HPD instance More...
 
float getIonFeedbackFirstPeakRate (size_t i) const
 get ion feedback noise rate for the HPD instance More...
 
float getIonFeedbackSecondPeakRate (size_t i) const
 
const std::string & getName (size_t i) const
 get name of the instance More...
 
 HPDNoiseDataCatalog ()
 
void setRate (const std::string &fName, float fDischargeRate, float fIonFeedbackFirstPeakRate, float fIonFeedbackSecondPeakRate, float fElectronEmissionRate)
 set discharge/IonFeedback/Electron emission noise rates More...
 
size_t size () const
 total number More...
 
virtual ~HPDNoiseDataCatalog ()
 

Static Public Member Functions

static const char * className ()
 class name More...
 
static const char * objectName ()
 object name More...
 

Private Attributes

std::vector< float > mDischargeRate
 
std::vector< float > mElectronEmissionRate
 
std::vector< std::string > mHpdName
 
std::vector< float > mIonFeedbackFirstPeakRate
 
std::vector< float > mIonFeedbackSecondPeakRate
 

Detailed Description

Definition at line 15 of file HPDNoiseDataCatalog.h.

Constructor & Destructor Documentation

HPDNoiseDataCatalog::HPDNoiseDataCatalog ( )
inline

Definition at line 17 of file HPDNoiseDataCatalog.h.

17 {}
HPDNoiseDataCatalog::~HPDNoiseDataCatalog ( )
virtual

Definition at line 10 of file HPDNoiseDataCatalog.cc.

10 {}

Member Function Documentation

void HPDNoiseDataCatalog::addHpd ( const std::string &  fName,
float  fDischargeRate,
float  fIonFeedbackFirstPeakRate,
float  fIonFeedbackSecondPeakRate,
float  fElectronEmissionRate 
)
inline

add new HPD instance to the catalog

Definition at line 21 of file HPDNoiseDataCatalog.h.

References mDischargeRate, mElectronEmissionRate, mHpdName, mIonFeedbackFirstPeakRate, and mIonFeedbackSecondPeakRate.

Referenced by HPDNoiseMaker::addHpd().

21  {
22  mHpdName.push_back (fName), mDischargeRate.push_back (fDischargeRate),
23  mIonFeedbackFirstPeakRate.push_back(fIonFeedbackFirstPeakRate),
24  mIonFeedbackSecondPeakRate.push_back(fIonFeedbackSecondPeakRate),
25  mElectronEmissionRate.push_back(fElectronEmissionRate);
26  }
std::vector< float > mIonFeedbackSecondPeakRate
std::vector< float > mIonFeedbackFirstPeakRate
std::vector< float > mElectronEmissionRate
std::vector< float > mDischargeRate
std::vector< std::string > mHpdName
const std::vector<std::string>& HPDNoiseDataCatalog::allNames ( ) const
inline

all HPD instance names

Definition at line 30 of file HPDNoiseDataCatalog.h.

References mHpdName.

Referenced by HPDNoiseReader::HPDNoiseReader().

30 {return mHpdName;}
std::vector< std::string > mHpdName
static const char* HPDNoiseDataCatalog::className ( )
inlinestatic

class name

Definition at line 43 of file HPDNoiseDataCatalog.h.

43 {return "HPDNoiseDataCatalog";}
float HPDNoiseDataCatalog::getDischargeRate ( size_t  i) const
inline

get noise rate for the HPD instance

Definition at line 32 of file HPDNoiseDataCatalog.h.

References mDischargeRate.

Referenced by HPDNoiseReader::HPDNoiseReader(), and operator<<().

32 {return (i < mDischargeRate.size()) ? mDischargeRate[i] : 0.;}
int i
Definition: DBlmapReader.cc:9
std::vector< float > mDischargeRate
float HPDNoiseDataCatalog::getElectronEmissionRate ( size_t  i) const
inline

get thermal electron emission noise rate for the HPD instance

Definition at line 37 of file HPDNoiseDataCatalog.h.

References mElectronEmissionRate.

Referenced by HPDNoiseReader::HPDNoiseReader(), and operator<<().

37 {return (i < mElectronEmissionRate.size()) ? mElectronEmissionRate[i] : 0.;}
int i
Definition: DBlmapReader.cc:9
std::vector< float > mElectronEmissionRate
float HPDNoiseDataCatalog::getIonFeedbackFirstPeakRate ( size_t  i) const
inline

get ion feedback noise rate for the HPD instance

Definition at line 34 of file HPDNoiseDataCatalog.h.

References mIonFeedbackFirstPeakRate.

Referenced by HPDNoiseReader::HPDNoiseReader(), and operator<<().

34 {return (i < mIonFeedbackFirstPeakRate.size()) ? mIonFeedbackFirstPeakRate[i] : 0.;}
int i
Definition: DBlmapReader.cc:9
std::vector< float > mIonFeedbackFirstPeakRate
float HPDNoiseDataCatalog::getIonFeedbackSecondPeakRate ( size_t  i) const
inline

Definition at line 35 of file HPDNoiseDataCatalog.h.

References mIonFeedbackSecondPeakRate.

Referenced by HPDNoiseReader::HPDNoiseReader(), and operator<<().

35 {return (i < mIonFeedbackSecondPeakRate.size()) ? mIonFeedbackSecondPeakRate[i] : 0.;}
std::vector< float > mIonFeedbackSecondPeakRate
int i
Definition: DBlmapReader.cc:9
const std::string& HPDNoiseDataCatalog::getName ( size_t  i) const
inline

get name of the instance

Definition at line 39 of file HPDNoiseDataCatalog.h.

References i, and mHpdName.

Referenced by operator<<().

39 {return mHpdName[i];}
int i
Definition: DBlmapReader.cc:9
std::vector< std::string > mHpdName
static const char* HPDNoiseDataCatalog::objectName ( )
inlinestatic

object name

Definition at line 45 of file HPDNoiseDataCatalog.h.

Referenced by HPDNoiseReader::HPDNoiseReader(), and HPDNoiseMaker::~HPDNoiseMaker().

45 {return "catalog";}
void HPDNoiseDataCatalog::setRate ( const std::string &  fName,
float  fDischargeRate,
float  fIonFeedbackFirstPeakRate,
float  fIonFeedbackSecondPeakRate,
float  fElectronEmissionRate 
)

set discharge/IonFeedback/Electron emission noise rates

Definition at line 12 of file HPDNoiseDataCatalog.cc.

References i, mDischargeRate, mElectronEmissionRate, mHpdName, mIonFeedbackFirstPeakRate, and mIonFeedbackSecondPeakRate.

Referenced by HPDNoiseMaker::setRate().

14  {
15  for (size_t i = 0; i < mHpdName.size(); ++i) {
16  if (fName == mHpdName[i]){
17  mDischargeRate[i] = fDischargeRate;
18  mIonFeedbackFirstPeakRate[i] = fIonFeedbackFirstPeakRate;
19  mIonFeedbackSecondPeakRate[i] = fIonFeedbackSecondPeakRate;
20  mElectronEmissionRate[i] = fElectronEmissionRate;
21  }
22  }
23 }
std::vector< float > mIonFeedbackSecondPeakRate
int i
Definition: DBlmapReader.cc:9
std::vector< float > mIonFeedbackFirstPeakRate
std::vector< float > mElectronEmissionRate
std::vector< float > mDischargeRate
std::vector< std::string > mHpdName
size_t HPDNoiseDataCatalog::size ( void  ) const
inline

total number

Definition at line 28 of file HPDNoiseDataCatalog.h.

References mDischargeRate.

Referenced by operator<<().

28 {return mDischargeRate.size();}
std::vector< float > mDischargeRate

Member Data Documentation

std::vector<float> HPDNoiseDataCatalog::mDischargeRate
private

Definition at line 48 of file HPDNoiseDataCatalog.h.

Referenced by addHpd(), getDischargeRate(), setRate(), and size().

std::vector<float> HPDNoiseDataCatalog::mElectronEmissionRate
private

Definition at line 51 of file HPDNoiseDataCatalog.h.

Referenced by addHpd(), getElectronEmissionRate(), and setRate().

std::vector<std::string> HPDNoiseDataCatalog::mHpdName
private

Definition at line 47 of file HPDNoiseDataCatalog.h.

Referenced by addHpd(), allNames(), getName(), and setRate().

std::vector<float> HPDNoiseDataCatalog::mIonFeedbackFirstPeakRate
private

Definition at line 49 of file HPDNoiseDataCatalog.h.

Referenced by addHpd(), getIonFeedbackFirstPeakRate(), and setRate().

std::vector<float> HPDNoiseDataCatalog::mIonFeedbackSecondPeakRate
private

Definition at line 50 of file HPDNoiseDataCatalog.h.

Referenced by addHpd(), getIonFeedbackSecondPeakRate(), and setRate().