![]() |
Diana Software
|
Module to load commonly used run and detector information. More...
Public Member Functions | |
| MRunDataLoader () | |
| virtual | ~MRunDataLoader () |
| virtual void | Init (Diana::QEvent &ev) |
| virtual void | Do (Diana::QEvent &ev) |
| virtual void | Done () |
Protected Attributes | |
| std::string | fRunDataInput |
| std::string | fRunDataOutputFile |
| std::string | fRunDataOutputFile2 |
| std::string | fRunsInput |
| std::string | fRunDataOwner |
| bool | fSaveRunData |
| int | fThisRun |
| bool | fIsOnline |
| bool | fWriteIntoEvent |
| QRunData | fRunData |
Module to load commonly used run and detector information.
This module reads commonly used run and detector global data using the QGlobalDataManager. Once the objects are read, they stay in the QGlobalDataManager cache and can be accessed by other modules in the sequence. The input source is specified in this module, without the need to specify it in other modules. This module reads the QRunData object. Other mouldes can access objects read by this module through the QGlobalDataManager in the QModule::Do() and QModule::Done() methods. In the QModule::Init() method objects are not available, since the first event has to be processed to determine the run number. Objects can be accessed in other modules whitout specifying owner and source of the object:
QRunDataHandle rHandle(runNumber); GlobalData().Get("",&rHandle,""); const QRunData& runData = rHandle.Get(); // and/or: QDetChannelCollectionHandle dccHandle(run); GlobalData().Get("",&dccHandle,""); const QDetChannelCollection& chanCol = dccHandle.Get();
module RunDataLoader verbosity = info enable = true Input = DB Output = CurrentWriter endmod
Reads:
Writes: (if WriteIntoEvent = true)
Definition at line 78 of file MRunDataLoader.hh.
| MRunDataLoader::MRunDataLoader | ( | ) |
Definition at line 13 of file MRunDataLoader.cc.
|
virtual |
Definition at line 17 of file MRunDataLoader.cc.
|
virtual |
Definition at line 49 of file MRunDataLoader.cc.
References channel, QEvent::Get(), QPulseInfo::GetChannelId(), QHeader::GetRun(), and QRunDataHandle::SetIsOnline().
|
virtual |
Definition at line 110 of file MRunDataLoader.cc.
|
virtual |
Definition at line 21 of file MRunDataLoader.cc.
References QEvent::Add(), and QEvent::Require().
|
protected |
Definition at line 102 of file MRunDataLoader.hh.
|
protected |
Definition at line 104 of file MRunDataLoader.hh.
|
protected |
Definition at line 95 of file MRunDataLoader.hh.
|
protected |
Definition at line 96 of file MRunDataLoader.hh.
|
protected |
Definition at line 97 of file MRunDataLoader.hh.
|
protected |
Definition at line 99 of file MRunDataLoader.hh.
|
protected |
Definition at line 98 of file MRunDataLoader.hh.
|
protected |
Definition at line 100 of file MRunDataLoader.hh.
|
protected |
Definition at line 101 of file MRunDataLoader.hh.
|
protected |
Definition at line 103 of file MRunDataLoader.hh.