Inheritance diagram for MLiveTime:

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)).
framework
load ASCIIGlobalWriter
endfw
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. | |
| QEvent * | Fill (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. | |
| QTree * | fTree |
| 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. | |
1.5.1