9 #include <dqm/analysis/shminput/modules/DQMHistAnalysisInputSrv.h>
26 DQMHistAnalysisInputSrvModule::DQMHistAnalysisInputSrvModule()
33 B2DEBUG(20,
"DQMHistAnalysisInputSrv: Constructor done.");
46 B2DEBUG(20,
"DQMHistAnalysisInputSrv: initialized.");
52 B2DEBUG(20,
"DQMHistAnalysisInputSrv: beginRun called.");
61 TMemFile* file =
m_memory->LoadMemFile();
63 TIter next(file->GetListOfKeys());
65 while ((key = (TKey*)next())) {
66 h.push_back((TH1*)key->ReadObj());
68 for (
size_t i = 0; i < h.size(); i++) {
69 addHist(
"", h[i]->GetName(), h[i]);
70 B2DEBUG(2,
"Found : " << h[i]->GetName() <<
" : " << h[i]->GetEntries());
83 }
while (!t.CheckTimer(gSystem->Now()));
89 B2DEBUG(20,
"DQMHistAnalysisInputSrv: endRun called");
95 B2DEBUG(20,
"DQMHistAnalysisInputSrv: terminate called");
The base class for the histogram analysis module.
static void clearHistList(void)
Clears the list of histograms.
static bool addHist(const std::string &dirname, const std::string &histname, TH1 *h)
Add histogram.
static void initHistListBeforeEvent(void)
Reset the list of histograms.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.