MCheckOffsetAndSat Class Reference

Inheritance diagram for MCheckOffsetAndSat:

QModule QBaseModule List of all members.

Detailed Description

check that the baseline is above zero and below a maximum value for all the channels check number of saturated events produces histograms for all channels containing baselines amplitude, rms, fluctuations and power spectrum

Author:
Elena Guardincerri, Fabio Bellini

MinBaseline [double = 300.]: this is the minimum value accepted for the baseline. If a sample with a lower value is found a warning is issued UpperBelowMax [double = 10000.]: the baseline cannot be higher than UpperBelowMax for more than MaxTimeCloseToMax. If this happens a warning is issued BaselineWarningLevel [double = 0.05] maximum allowed baseline ratio over threshold during the measurement If not a warning is issued SaturationWarningLevel [doulbe =0.05] maximum allowed ratio of saturated events MaxBaselineFrequency [double = 4.0] maximum plotted frequency in Power Spectrum OutFilename [string = "CheckRange"]: All the text warnings produced by the checks above are dumped here. The run number is appended to the file name OutRootFileName [string = "CheckR"]: All the plots produced are written here. The run number is appended to the file name


Public Member Functions

 MCheckOffsetAndSat (QSequence *)
 Constructor.
virtual void Init ()
 Init method: reads parameters.
virtual QEventDo (QEvent *)
 Do method: correct pulse amplitudes.
virtual void Done ()
 Done method is called after event loop.

Private Member Functions

void CreateReference ()
void SetReference (char *VariableName, const QVector &VariableValue)
double TruncatedRMS (const QVector &vector, double KeepRMS)
TH1F * createHisto (char *name, char *title, int bins, int min, int max, int iFloor, char *yaxis)

Private Attributes

std::string fOutRootFileName
std::string fOutTxtFileName
std::string fOutReferenceDir
bool fFirstEvent
QOutputFileHandler * fOutputHandler
ChannelManagerfChannelManager
double fMinBaseline
double fDistanceToMaxBaseline
time_t fDeltaTimeMaxAboveH
double fMaxRange
double fMaxBaselineFrequency
double fBaselineWarningLevel
double fSaturationWarningLevel
std::vector< QVector > fChannelsBaseline
std::vector< QVector > fChannelsBaselineRMS
std::vector< QVector > fChannelsAmplitudes
std::vector< QVector > fChannelsAmplitudesH1
std::vector< QVector > fChannelsAmplitudesH2
std::vector< QVector > fChannelsAmplitudesH3
std::vector< QVector > fTimes
std::vector< QVector > fSaturatedHighTimes
std::vector< QVector > fSaturatedStabTimes
std::vector< int > fSaturated
std::vector< int > fSaturatedHighHeaterFlag
std::vector< int > fSaturatedStabHeaterFlag
std::vector< int > fCounterUnderLThreshold
std::vector< int > fCounterAboveHThreshold
std::vector< int > fGlobalCounterUnderLThreshold
std::vector< int > fGlobalCounterAboveHThreshold
std::vector< bool > fUnderflowNoticed
std::vector< double > fTimePassLThresh
std::vector< double > fTimePassHThresh
int fLastChannel
QVector fAverageBaseline
QVector fAverageBaselineRMS
QVector fAveragePS
QVector fBaselFluctuation
int fRun


The documentation for this class was generated from the following files:
Generated on Fri Mar 6 13:40:41 2009 for CUORE Software by  doxygen 1.5.1