Diana Software
MTutorialPulseShape.hh

Example module which computes a pulse shape parameter.

Author
Marco Vignati

This module is used in diana_tutorial_pulseshape.cfg to compute a simple pulse shape parameter: the chi square of the difference of a pulse with the average pulse.

#ifndef _M_TUTORIALPULSESHAPE_HH_
#define _M_TUTORIALPULSESHAPE_HH_
#include "QModule.hh"
#include <set>
class MTutorialPulseShape : public Diana::QModule {
public:
void Init(Diana::QEvent& ev);
void Do(Diana::QEvent& ev);
//void Do(Diana::QEvent& ev, const Diana::QEventList& neighbours);
void Done();
private:
std::string fAveragePulseInput;
std::set<int> fChannelsWithoutAP;
};
#endif
std::string fAveragePulseInput
input source of average pulses
void Done()
Done method.
void Init(Diana::QEvent &ev)
Init method.
std::set< int > fChannelsWithoutAP
list of channels without average pulse
void Do(Diana::QEvent &ev)
Do method. Declare and implement only one of the two versions.