MLiveTime Class Reference
[Readers]

Inheritance diagram for MLiveTime:

QFileReader QReader QBaseModule List of all members.

Detailed Description

A module to compute live time from the database.

Author:
Laura Kogler
The ONLY function of this reader is to compute live time. It does NOT read events! The reader uses a filelist and information from the database (run duration, bad intervals, crystal info) to compute the total livetime for each channel. The output is a QASCII file containing a matrix with columns: channel, livetime (y), weighted livetime (y*kg(130Te)).

    reader LiveTime
    verbosity = info
    enable = true
    ReadFilesList = true
    InputFilesList = ~/cuore/cfg/background-ds32.list
    InputFileName = /data/energy_0789_p001.root
    OutputFileName = Livetime.txt
    IsBlinded = false
    endmod
    


Public Member Functions

 MLiveTime (QSequence *s)
 constructor
 ~MLiveTime ()
 destructor
void Init ()
 Init method is called before event loop.
void Open (const std::string &filename)
 Open file.
QEventFill (QEvent *ev)
 fill event, return NULL if file is finished
void Close ()
 Close file.
void Done ()
 After all files are processed, save output in done method.

Private Attributes

TFile * fFile
 Current input root file.
QTreefTree
 Input tree.
int fRun
 Current run number.
int fPreviousRun
 Previous run number.
QBaseEventR * fEventR
 Root event.
std::map< int, double > fLiveTimes
 Map of live time for each channel.
std::string fOutputFilename
 Output filename.
bool fIsBlinded
 Whether or not to "blind" the live time by multiplying the true live time by an obfuscation factor.
double fBlindingFactor
 Factor by which to multiply the live time if fIsBlinded == true.


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