MSynchronizeMeasurements Class Reference
[Modules]

Inheritance diagram for MSynchronizeMeasurements:

QModule QBaseModule List of all members.

Detailed Description

Module to synchronize parallel measurements with the old and new DAQ.

Author:
Laura Kogler
Usage: First run MTimeSort and save output to a file to obtain a sorted list of times from the old DAQ. Then run this module on the new DAQ data with the old DAQ sorted list as the input parameter "ComparisonFile". The output of the module is a time offset between the "NsTime" of the input file and the "NsTime" of the comparison file.


Public Member Functions

 MSynchronizeMeasurements (QSequence *s)
 constructor
 ~MSynchronizeMeasurements ()
 destructor
void Init ()
 Init method.
QEventDo (QEvent *ev)
 Do method.
void Done ()
 Done method.

Private Member Functions

double ComputeGoodness (double Offset, double Slope, double Window, std::vector< int > Channels)
 Function to compute how good is the synchronization.

Private Attributes

double fStartTimeA
 Start time of run unix.
double fStartTimeB
std::map< int, std::vector<
double > > 
fTimesA
 Vectors of event times keyed by channel.
std::map< int, std::vector<
double > > 
fTimesB
std::string fOutputFile
 Function to find nearest event on same channel OutputFilename.
double fSlope
 Slope term to account for different clock speeds.
bool fIsTxt
 Type of output file.
bool fIsRoot


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