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.
double fSlope
 Slope term to account for different clock speeds.
bool fIsTxt
 Type of output file.
bool fIsRoot

Member Data Documentation

Function to find nearest event on same channel.

OutputFilename

Referenced by Done(), and Init().


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

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