Public Member Functions | |
QMonitorHistogramWriter () | |
ctor | |
virtual | ~QMonitorHistogramWriter () |
dtor | |
bool | Write (const std::string &fileName) |
write root file and call Reset() | |
const QError & | GetError () const |
get QError associated to the last failed operation | |
bool | SetTimeSec (Double_t timeSec) |
set time from run start in s | |
bool | SetTimeUnix (time_t timeUnix) |
set time of event in unix time format | |
bool | SetSamplingRate (Int_t rate) |
set ADC sampling rate | |
bool | SetLgChannel (Int_t channel) |
set logical channel | |
bool | SetEventType (QApolloMonitorDefs::QMonitorEventType_t type) |
set event type | |
bool | SetPulse (const TH1F *pulse) |
set histogram containing waveform | |
bool | SetRateHistogram (const TH1F *rateHisto, QApolloMonitorDefs::QMonitorEventType_t type) |
set counting rate histogram for events of the given type | |
bool | SetSpectrum (const TH1F *spectrum, QApolloMonitorDefs::QMonitorEventType_t type) |
set amplitude spectrum for events of the given type | |
void | Reset () |
reset maps containig object to be written to file | |
Private Member Functions | |
void | ResetError () |
Private Attributes | |
QError | fError |
std::map < QApolloMonitorDefs::QMonitorVariable_t, Double_t > | fBareVariables |
std::map< std::string, const TH1F * > | fHistograms |
TH1D | fVariablesHisto |
void QMonitorHistogramWriter::ResetError | ( | ) | [inline, private] |
reset internal error
References fError, and QError::Set().
Referenced by SetEventType(), SetLgChannel(), SetPulse(), SetRateHistogram(), SetSamplingRate(), SetSpectrum(), SetTimeSec(), SetTimeUnix(), and Write().
QError QMonitorHistogramWriter::fError [private] |
error associated to last failed operation
Referenced by GetError(), ResetError(), SetPulse(), SetRateHistogram(), SetSpectrum(), and Write().
std::map<QApolloMonitorDefs::QMonitorVariable_t, Double_t> QMonitorHistogramWriter::fBareVariables [private] |
key: variable name, value: variable value
Referenced by Reset(), SetEventType(), SetLgChannel(), SetSamplingRate(), SetTimeSec(), SetTimeUnix(), and Write().
std::map<std::string, const TH1F*> QMonitorHistogramWriter::fHistograms [private] |
key: name of histogram as it is known in the root file
value: pointer to histogram
Referenced by Reset(), SetPulse(), SetRateHistogram(), SetSpectrum(), and Write().
TH1D QMonitorHistogramWriter::fVariablesHisto [private] |
Histogram used to store bare variables.
The meaning of the i-th bin is defined by the QMonitorVariable_t enum.
Variables whose value was not set have the corresponding bin content set to Q_DOUBLE_DEFAULT.
Referenced by QMonitorHistogramWriter(), and Write().