filter LCPreprocessFilter verbosity = info enable = true minNumbAvg = 5 unitOfRMS = 3 MaxEventsToSkip = 20 endmod
Public Member Functions | |
MLCPreprocessFilter (QSequence *s) | |
constructor | |
~MLCPreprocessFilter () | |
destructor | |
void | GetCuts () |
Get cuts from config file. | |
bool | Filter (const QEvent *ev) |
return true if ev passes the cuts | |
MLCPreprocessFilter (QSequence *s) | |
constructor | |
~MLCPreprocessFilter () | |
destructor | |
void | GetCuts () |
Get cuts from config file. | |
bool | Filter (const QEvent *ev) |
return true if ev passes the cuts | |
Private Member Functions | |
bool | UpdateRMS (double new_rms, const int lg) |
bool | UpdateRMS (double new_rms, const int lg) |
Private Attributes | |
std::map< int, int > | fCurrentId |
std::map< int, size_t > | fCnt |
std::map< int, int > | fNumSkipped |
int | fMaxToSkip |
size_t | fMinNumbAvg |
double | fUnitOfRMS |
std::map< int, double > | fRMS |
bool MLCPreprocessFilter::UpdateRMS | ( | double | new_rms, | |
const int | lg | |||
) | [private] |
Update rms value
References QBaseModule::Debug(), fCnt, fCurrentId, fMinNumbAvg, and fRMS.
Referenced by Filter().
bool MLCPreprocessFilter::UpdateRMS | ( | double | new_rms, | |
const int | lg | |||
) | [private] |
Update rms value
std::map< int, int > MLCPreprocessFilter::fCurrentId [private] |
key: lg channel; val: current electronics configuration id
Referenced by Filter(), GetCuts(), and UpdateRMS().
std::map< int, size_t > MLCPreprocessFilter::fCnt [private] |
channel based counter for averaged rms evaluation
Referenced by Filter(), GetCuts(), and UpdateRMS().
std::map< int, int > MLCPreprocessFilter::fNumSkipped [private] |
int MLCPreprocessFilter::fMaxToSkip [private] |
size_t MLCPreprocessFilter::fMinNumbAvg [private] |
number of events used to evalate the average rms
Referenced by GetCuts(), and UpdateRMS().
double MLCPreprocessFilter::fUnitOfRMS [private] |
std::map< int, double > MLCPreprocessFilter::fRMS [private] |
channel based map of average rms
Referenced by Filter(), GetCuts(), and UpdateRMS().