Used for determining optimal weights for pulse amplitude algorithm
framework load ASCIIGlobalWriter load RootGlobalReader endfw
filter OBComputeWeightsFilter verbosity = info enable = true SkipEvents = false endmod
module OBComputeWeights verbosity = info enable = true IdealPulsesFilename = average_pulses.root OutputFilename = weights.txt NumFrequencies = 25 endmod
Public Member Functions | |
MOBComputeWeights (QSequence *s) | |
void | Init () |
Init method is called before event loop. | |
QEvent * | Do (QEvent *ev) |
Doit method is called for each event, getting the event as argument. | |
void | Done () |
Done method is called after event loop. | |
Private Member Functions | |
void | SetUpIdealPulse (const int channel, const QTime &evTime) |
Load ideal pulse from file. | |
Private Attributes | |
std::map< int, QMatrix > | fAvgProduct |
Average products of different frequency contributions, used for computing covariance matrix. | |
std::set< int > | fBadChannels |
Set of bad channels (those for which no ideal pulse exists). | |
std::map< int, int > | fCount |
Number of noise samples for each channel. | |
std::map< int, QVector > | fIdealPulse |
Ideal pulses for each channel. | |
std::string | fIdealPulseFilename |
Name of file containing ideal pulses. | |
std::map< int, double > | fIdealPulseMaxMinusBaseline |
max - baseline for ideal pulses | |
unsigned int | fNumFreq |
Number of frequencies to use for amplitude algorithm. | |
std::map< int, QOffset > | fOffsetAnalyzer |
Offset analysis object for each channel. | |
std::map< int, QVector > | fResampledIdealPulse |
Resampled ideal pulses for each channel. |