Histogram prefixed with "gh" are General Histograms, while those prefixed with "ch" are Channel-based Histogram (i.e. one separate histogram for each active channel. gh histograms are named as the config file variable name (e.g. gh_rate). ch histograms are named as the config file variable name with the channel number appended (e.g. ch_specturm_0023 for channel 23).
Public Member Functions | |
MApolloHistoMaker (QSequence *s) | |
ctor | |
virtual | ~MApolloHistoMaker () |
dtor | |
virtual void | Init () |
Init. | |
virtual QEvent * | Do (QEvent *ev) |
do | |
virtual void | Done () |
Done. | |
MApolloHistoMaker (QSequence *s) | |
ctor | |
virtual | ~MApolloHistoMaker () |
dtor | |
virtual void | Init () |
Init. | |
virtual QEvent * | Do (QEvent *ev) |
do | |
virtual void | Done () |
Done. | |
Private Member Functions | |
bool | CreateHistograms () |
create new histograms based on config file options | |
void | FillHistograms (const QEvent *event) |
fill all existing histograms with informations from current event | |
void | UpdateFile () |
update output file | |
void | DeleteHistograms () |
delete all existing histograms and clear maps | |
void | GetListOfChannels (std::list< unsigned int > &channels) |
get (sorted) list of active channels from db | |
bool | CreateHistograms () |
create new histograms based on config file options | |
void | FillHistograms (const QEvent *event) |
fill all existing histograms with informations from current event | |
void | UpdateFile () |
update output file | |
void | DeleteHistograms () |
delete all existing histograms and clear maps | |
void | GetListOfChannels (std::list< unsigned int > &channels) |
get (sorted) list of active channels from db | |
Private Attributes | |
std::string | fPath |
std::string | fCfgFile |
std::string | fLockFile |
bool | fDoHistos |
bool | fFirstEvent |
int | fRun |
int | fCurrentChannel |
int | fSpectrumMaxMv |
double | fSpectrumBinWidthMv |
std::map < QApolloMonitorDefs::QMonitorEventType_t, TH1F * > | fGhRate |
Double_t | fTimeOfLastEventSec |
std::map< unsigned int, std::map < QApolloMonitorDefs::QMonitorEventType_t, TH1F * > > | fChSpectra |
std::map< unsigned int, QEventInfo_t > | fChPulses |
QMonitorHistogramWriter * | fWriter |
QMonitorConfigHandler * | fConfigHandler |
Classes | |
struct | QEventInfo_t |
stores informations on the last event for each channel More... |
bool MApolloHistoMaker::CreateHistograms | ( | ) | [private] |
create new histograms based on config file options
References QBaseModule::Debug(), DeleteHistograms(), fChPulses, fChSpectra, fGhRate, fSpectrumBinWidthMv, fSpectrumMaxMv, QBaseModule::GetBool(), GetListOfChannels(), QBaseModule::Info(), QBaseModule::Panic(), MApolloHistoMaker::QEventInfo_t::pulse, QApolloMonitorDefs::QBolometer_t, QApolloMonitorDefs::QHeater_t, QApolloMonitorDefs::QNoise_t, QApolloMonitorDefs::QUnassigned_t, MApolloHistoMaker::QEventInfo_t::rate, MApolloHistoMaker::QEventInfo_t::time, MApolloHistoMaker::QEventInfo_t::type, and QBaseModule::Warn().
Referenced by Do().
bool MApolloHistoMaker::CreateHistograms | ( | ) | [private] |
create new histograms based on config file options
std::string MApolloHistoMaker::fPath [private] |
output directory path
Referenced by Init(), and UpdateFile().
std::string MApolloHistoMaker::fCfgFile [private] |
config file name
Referenced by Init().
std::string MApolloHistoMaker::fLockFile [private] |
lockfile name
Referenced by Init().
bool MApolloHistoMaker::fDoHistos [private] |
bool MApolloHistoMaker::fFirstEvent [private] |
int MApolloHistoMaker::fRun [private] |
current run number
Referenced by Do(), and GetListOfChannels().
int MApolloHistoMaker::fCurrentChannel [private] |
logical channel requested by ApolloGui
Referenced by Do(), and UpdateFile().
int MApolloHistoMaker::fSpectrumMaxMv [private] |
upper bound of energy spectrum in mV
Referenced by CreateHistograms(), and Init().
double MApolloHistoMaker::fSpectrumBinWidthMv [private] |
bin width for energy spectrum in mV
Referenced by CreateHistograms(), and Init().
std::map< QApolloMonitorDefs::QMonitorEventType_t, TH1F * > MApolloHistoMaker::fGhRate [private] |
key: event type, value: ptr to histogram with event rate
Referenced by CreateHistograms(), DeleteHistograms(), FillHistograms(), and UpdateFile().
Double_t MApolloHistoMaker::fTimeOfLastEventSec [private] |
time of last event in seconds (used for event rate evaluation)
Referenced by FillHistograms(), and UpdateFile().
std::map< unsigned int, std::map< QApolloMonitorDefs::QMonitorEventType_t, TH1F * > > MApolloHistoMaker::fChSpectra [private] |
key: logical channel value: another map
Referenced by CreateHistograms(), DeleteHistograms(), FillHistograms(), and UpdateFile().
std::map< unsigned int, QEventInfo_t > MApolloHistoMaker::fChPulses [private] |
key: lg channel, value: struct containing info on last pulse
Referenced by CreateHistograms(), DeleteHistograms(), FillHistograms(), and UpdateFile().
QMonitorHistogramWriter * MApolloHistoMaker::fWriter [private] |
root file handler
Referenced by Do(), UpdateFile(), and ~MApolloHistoMaker().
config file handler
Referenced by Do(), Init(), UpdateFile(), and ~MApolloHistoMaker().