Diana Software
Public Member Functions | Protected Attributes | List of all members
MRunDataLoader Class Reference

Module to load commonly used run and detector information. More...

Inheritance diagram for MRunDataLoader:

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
 

Detailed Description

Module to load commonly used run and detector information.

Author
Marco Vignati

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();

Reads:

Writes: (if WriteIntoEvent = true)

Definition at line 78 of file MRunDataLoader.hh.

Constructor & Destructor Documentation

◆ MRunDataLoader()

MRunDataLoader::MRunDataLoader ( )

Definition at line 13 of file MRunDataLoader.cc.

◆ ~MRunDataLoader()

MRunDataLoader::~MRunDataLoader ( )
virtual

Definition at line 17 of file MRunDataLoader.cc.

Member Function Documentation

◆ Do()

void MRunDataLoader::Do ( Diana::QEvent &  ev)
virtual

◆ Done()

void MRunDataLoader::Done ( )
virtual

Definition at line 110 of file MRunDataLoader.cc.

◆ Init()

void MRunDataLoader::Init ( Diana::QEvent &  ev)
virtual

Definition at line 21 of file MRunDataLoader.cc.

References QEvent::Add(), and QEvent::Require().

Member Data Documentation

◆ fIsOnline

bool MRunDataLoader::fIsOnline
protected

Definition at line 102 of file MRunDataLoader.hh.

◆ fRunData

QRunData MRunDataLoader::fRunData
protected

Definition at line 104 of file MRunDataLoader.hh.

◆ fRunDataInput

std::string MRunDataLoader::fRunDataInput
protected

Definition at line 95 of file MRunDataLoader.hh.

◆ fRunDataOutputFile

std::string MRunDataLoader::fRunDataOutputFile
protected

Definition at line 96 of file MRunDataLoader.hh.

◆ fRunDataOutputFile2

std::string MRunDataLoader::fRunDataOutputFile2
protected

Definition at line 97 of file MRunDataLoader.hh.

◆ fRunDataOwner

std::string MRunDataLoader::fRunDataOwner
protected

Definition at line 99 of file MRunDataLoader.hh.

◆ fRunsInput

std::string MRunDataLoader::fRunsInput
protected

Definition at line 98 of file MRunDataLoader.hh.

◆ fSaveRunData

bool MRunDataLoader::fSaveRunData
protected

Definition at line 100 of file MRunDataLoader.hh.

◆ fThisRun

int MRunDataLoader::fThisRun
protected

Definition at line 101 of file MRunDataLoader.hh.

◆ fWriteIntoEvent

bool MRunDataLoader::fWriteIntoEvent
protected

Definition at line 103 of file MRunDataLoader.hh.


The documentation for this class was generated from the following files: