9 #ifndef _RdChannelSpectrumAverager_h_
10 #define _RdChannelSpectrumAverager_h_
12 #include <fwk/VModule.h>
13 #include <utl/Trace.h>
46 std::map< std::pair<int,int>,
unsigned long int >
fCounter;
REGISTER_MODULE("RdChannelSpectrumAverager", RdChannelSpectrumAverager)
std::map< std::pair< int, int >, utl::Trace< double > > fMeanAmplitude
mean amplitude spectrum for each station and channel ID
RdChannelSpectrumAverager()
std::map< std::pair< int, int >, unsigned long int > fCounter
Counts the number of events processed for each station and channel ID.
fwk::VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
ResultFlag
Flag returned by module methods to the RunController.
fwk::VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)
Replaces the amplitude spectrum by the mean of all ampltiude spectra processed so far...
fwk::VModule::ResultFlag Run(evt::Event &event)
Run: invoked once per event.
virtual ~RdChannelSpectrumAverager()