MDefaults Class Reference
[Modules]
List of all members.
Detailed Description
assign pointers to
QDefaultsData.
- Author:
- Marco Vignati This module is created automatically once in each sequence even if not declared in the config file. It manage default operations on events:
- Initialize QDefaultsData, setting aliases to the config file values. In order to register aliases see QAliases.
- Fills QRunData, a class containg basic information on the current run
QRunData can be filled from DB or from file and can be written to file in any sequence (not just in the first sequence on raw data).
Note that when file input is specified and QRunData connot be found a warning is raised and the module will try to fetch it from DB.
If the DB cannot be accessed an error is raised.
If QRunData cannot be filled its members will be defaulted with the exception of fADC2mV, fDetector, fNumber that can be filled without any source.
Mouldes can access RunData in Do (and Done) modules by:
SeqAuxData().GetQObject("RunData");
that return a valid pointer to the QRunData describing the run of the event being processed.
- Parameters:
- IgnorePreviousFilters [bool = true]
if true reset QFiltersData result to "true" - RunDataInput [string = DB]
input source to fill QRunData. It can be a file name, CurrentReader, DB or NONE. - SaveRunData [bool = true]
save QRunData to output - RunDataOutput [string = CurrentWriter]
output file to save QRunData if SaveRunData = true - RunDataOutput2 [string = ]
additional output file to save QRunData if SaveRunData = true
|
Public Member Functions |
| MDefaults (QSequence *s) |
void | Begin () |
QEvent * | ProcessBeforeReader (QEvent *ev) |
QEvent * | Process (QEvent *ev) |
QEvent * | ProcessAfterWriter (QEvent *ev) |
void | End () |
Private Attributes |
std::string | fRunDataInput |
std::string | fRunDataOutputFile |
std::string | fRunDataOutputFile2 |
bool | fSaveRunData |
bool | fIgnoreFilters |
int | fThisRun |
int | fThisRun2 |
double | fApolloADC2mV |
double | fOldDAQADC2mV |
int | fApolloADCMax |
int | fApolloADCMin |
int | fOldDAQADCMax |
int | fOldDAQADCMin |
QRunData * | fRunData |
The documentation for this class was generated from the following files:
- /home/cuoresvn/cuore/pkg/dianaframework/MDefaults.hh
- /home/cuoresvn/cuore/pkg/dianaframework/MDefaults.cc