MLiveTime Class Reference
[Readers]
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), total exposure (y*kg), and exposure 130Te (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
- Parameters
- FileName and FileList parameters same as all readers.
- OutputFileName [string=Livetime.txt] File to save output. Must end in ".txt"
- IsBlinded [bool=false] If true, the live time will be multiplied by a secret factor between 0.5 and 1.5.
|
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.
|
|
std::vector< std::string > | fAllowedTypes |
| | List of allowed types of bad intervals.
|
The documentation for this class was generated from the following files:
- /home/cuoresvn/cuore/pkg/modberkeley/MLiveTime.hh
- /home/cuoresvn/cuore/pkg/modberkeley/MLiveTime.cc