MCheckTimeBehaviour Class Reference

Inheritance diagram for MCheckTimeBehaviour:

QModule QBaseModule

List of all members.


Detailed Description

check that the duration of each channel's measurement is compatible and that there are no time holes on particle pulses. Calculates the rate of each channel. Check if they are extensive coincidence pulses

Author:
Elena Guardincerri, Fabio Bellini
  • Config example:
     module ChechTimeBehaviour
     verbosity = info
     enable = true
     MaxTimeDifference = 3600
     MaxDeltaTime = 3600
     HoleWarningLevel = 0.05 
     OutFileName = "CheckRate"
     OutRootFileName = "CheckR"
     endmod
       

MaxTimeDifference [int = 3600]: the duration of each channel's measurement is checked to be equal to the nominal one. MaxTimeDifference is the maximum accepted difference in seconds between actual and nominal duration. MaxTau [int = 5]: each channel shouldn't have time holes on particle events longer than MaxTau*(1/rate[ch]) OutFileName [string = "CheckRate"]: HoleWarningLevel [double = 0.05] is the maximum accepted ratio of dead time for big crystals(for small crystals is HoleWarningLevel*2.5) A warning is issued if condition not satisfied MaxCoincidence [int = 5] maximum allowed coincidence between pulses 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

Writes:


Public Member Functions

 MCheckTimeBehaviour (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)

Private Attributes

int fMaxCoincidence
std::vector< time_t > fPreviousTimes
std::vector< time_t > fLastTimes
std::vector< time_t > fLastPartTimes
std::vector< int > fNumberOfPulses
std::vector< int > fGlobalTimeHole
std::vector< QVector > fTimes
std::map< int, double > fMaxDeltaTime
time_t fNominalDuration
time_t fMaxChTimeDifference
int fMaxTau
time_t fStartRunUnix
double fHoleWarningLevel
std::string fOutRootFileName
std::string fOutReferenceDir
QOutputFileHandler * fOutputHandler
ChannelManagerfChannelManager
bool fFirstEvent
int fLastChannel
int fRun
QVector fEvtRate

The documentation for this class was generated from the following files:

Generated on Tue Nov 16 10:50:01 2010 for CUORE Software by  doxygen 1.5.6