#include <HPDNoiseReader.h>
Public Types | |
typedef int | Handle |
Public Member Functions | |
std::vector< std::string > | allNames () const |
all HPD instances in the library More... | |
float | dischargeRate (Handle fHandle) const |
discharge rate for the instance More... | |
float | emissionRate (Handle fHandle) const |
ithermal/field emission rate for the instance More... | |
void | getEntry (Handle fHandle, HPDNoiseData **fData) |
retrive one entry from the sequentially More... | |
void | getEntry (Handle fHandle, unsigned long fEntry, HPDNoiseData **fData) |
retrive one entry from the library directly More... | |
Handle | getHandle (const std::string &fName) |
get handle to access data for one HPD instance More... | |
HPDNoiseReader (const std::string &fFileName) | |
float | ionFeedbackFirstPeakRate (Handle fHandle) const |
ionfeedback rate for the instance More... | |
float | ionFeedbackSecondPeakRate (Handle fHandle) const |
unsigned long | totalEntries (Handle fHandle) const |
total number of noise events for the HPD instance in the library More... | |
bool | valid (Handle fHandle) const |
test if handle is valid More... | |
~HPDNoiseReader () | |
Private Member Functions | |
void | grabEntry (Handle fHandle, unsigned long fEntry) |
HPDNoiseReader (const HPDNoiseReader &) | |
HPDNoiseReader & | operator= (const HPDNoiseReader &) |
Private Attributes | |
HPDNoiseData * | mBuffer |
std::vector< size_t > | mCurrentEntry |
std::vector< float > | mDischargeRate |
std::vector< float > | mElectronEmissionRate |
TFile * | mFile |
std::vector< float > | mIonFeedbackFirstPeakRate |
std::vector< float > | mIonFeedbackSecondPeakRate |
std::vector< TTree * > | mTrees |
Definition at line 18 of file HPDNoiseReader.h.
typedef int HPDNoiseReader::Handle |
Definition at line 20 of file HPDNoiseReader.h.
HPDNoiseReader::HPDNoiseReader | ( | const std::string & | fFileName | ) |
Definition at line 19 of file HPDNoiseReader.cc.
References HPDNoiseDataCatalog::allNames(), validate_alignment_devdb10_cfg::catalog, dtNoiseDBValidation_cfg::cerr, HPDNoiseDataCatalog::getDischargeRate(), HPDNoiseDataCatalog::getElectronEmissionRate(), HPDNoiseDataCatalog::getIonFeedbackFirstPeakRate(), HPDNoiseDataCatalog::getIonFeedbackSecondPeakRate(), i, mBuffer, mCurrentEntry, mDischargeRate, mElectronEmissionRate, mFile, mIonFeedbackFirstPeakRate, mIonFeedbackSecondPeakRate, mTrees, cscdqm::h::names, HPDNoiseDataCatalog::objectName(), and diffTreeTool::tree.
HPDNoiseReader::~HPDNoiseReader | ( | ) |
|
private |
std::vector< std::string > HPDNoiseReader::allNames | ( | ) | const |
all HPD instances in the library
Definition at line 56 of file HPDNoiseReader.cc.
References i, mTrees, and query::result.
Referenced by HPDNoiseLibraryReader::HPDNoiseLibraryReader().
float HPDNoiseReader::dischargeRate | ( | Handle | fHandle | ) | const |
discharge rate for the instance
Definition at line 69 of file HPDNoiseReader.cc.
References mDischargeRate, and valid().
Referenced by HPDNoiseLibraryReader::fillRates().
float HPDNoiseReader::emissionRate | ( | Handle | fHandle | ) | const |
ithermal/field emission rate for the instance
Definition at line 81 of file HPDNoiseReader.cc.
References mElectronEmissionRate, and valid().
void HPDNoiseReader::getEntry | ( | Handle | fHandle, |
HPDNoiseData ** | fData | ||
) |
retrive one entry from the sequentially
Definition at line 99 of file HPDNoiseReader.cc.
References grabEntry(), mBuffer, mCurrentEntry, totalEntries(), and valid().
Referenced by HPDNoiseLibraryReader::getNoiseData().
void HPDNoiseReader::getEntry | ( | Handle | fHandle, |
unsigned long | fEntry, | ||
HPDNoiseData ** | fData | ||
) |
retrive one entry from the library directly
Definition at line 107 of file HPDNoiseReader.cc.
References grabEntry(), and mBuffer.
HPDNoiseReader::Handle HPDNoiseReader::getHandle | ( | const std::string & | fName | ) |
get handle to access data for one HPD instance
Definition at line 62 of file HPDNoiseReader.cc.
References i, mTrees, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by HPDNoiseLibraryReader::fillRates(), and HPDNoiseLibraryReader::getNoiseData().
|
private |
Definition at line 91 of file HPDNoiseReader.cc.
References HPDNoiseData::branchName(), mBuffer, mCurrentEntry, mTrees, and valid().
Referenced by getEntry().
float HPDNoiseReader::ionFeedbackFirstPeakRate | ( | Handle | fHandle | ) | const |
ionfeedback rate for the instance
Definition at line 73 of file HPDNoiseReader.cc.
References mIonFeedbackFirstPeakRate, and valid().
Referenced by HPDNoiseLibraryReader::fillRates().
float HPDNoiseReader::ionFeedbackSecondPeakRate | ( | Handle | fHandle | ) | const |
Definition at line 77 of file HPDNoiseReader.cc.
References mIonFeedbackSecondPeakRate, and valid().
Referenced by HPDNoiseLibraryReader::fillRates().
|
private |
unsigned long HPDNoiseReader::totalEntries | ( | Handle | fHandle | ) | const |
total number of noise events for the HPD instance in the library
Definition at line 86 of file HPDNoiseReader.cc.
References mTrees, and valid().
Referenced by getEntry(), and HPDNoiseLibraryReader::getNoiseData().
|
inline |
test if handle is valid
Definition at line 29 of file HPDNoiseReader.h.
Referenced by dischargeRate(), emissionRate(), HPDNoiseLibraryReader::fillRates(), getEntry(), HPDNoiseLibraryReader::getNoiseData(), grabEntry(), ionFeedbackFirstPeakRate(), ionFeedbackSecondPeakRate(), and totalEntries().
|
private |
Definition at line 56 of file HPDNoiseReader.h.
Referenced by getEntry(), grabEntry(), HPDNoiseReader(), and ~HPDNoiseReader().
|
private |
Definition at line 55 of file HPDNoiseReader.h.
Referenced by getEntry(), grabEntry(), and HPDNoiseReader().
|
private |
Definition at line 51 of file HPDNoiseReader.h.
Referenced by dischargeRate(), and HPDNoiseReader().
|
private |
Definition at line 54 of file HPDNoiseReader.h.
Referenced by emissionRate(), and HPDNoiseReader().
|
private |
Definition at line 49 of file HPDNoiseReader.h.
Referenced by HPDNoiseReader(), and ~HPDNoiseReader().
|
private |
Definition at line 52 of file HPDNoiseReader.h.
Referenced by HPDNoiseReader(), and ionFeedbackFirstPeakRate().
|
private |
Definition at line 53 of file HPDNoiseReader.h.
Referenced by HPDNoiseReader(), and ionFeedbackSecondPeakRate().
|
private |
Definition at line 50 of file HPDNoiseReader.h.
Referenced by allNames(), getHandle(), grabEntry(), HPDNoiseReader(), totalEntries(), and ~HPDNoiseReader().