| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

DaqReadoutSvc Class Reference

#include <DaqReadoutSvc.h>

Inheritance diagram for DaqReadoutSvc:

[legend]
Collaboration diagram for DaqReadoutSvc:
[legend]
List of all members.

Public Types

 SUCCESS
 NO_INTERFACE
 VERSMISMATCH
 LAST_ERROR
enum  Status
 SUCCESS
 NO_INTERFACE
 VERSMISMATCH
 LAST_ERROR

Public Member Functions

 DaqReadoutSvc (const std::string &name, ISvcLocator *svc)
 Creates an instace of this class.
 ~DaqReadoutSvc ()
 Destroys the instance of this class.
virtual StatusCode queryInterface (const InterfaceID &id, void **interface)
virtual bool isGenerating () const
 Returns true if DaqReadout instances should be generated.
virtual unsigned int ltbSlot (const DayaBay::Detector &detector) const
 Returns the ltb slot to be used in generated DAQ format data for the supplied detector.
virtual unsigned int runNumber (const DayaBay::Detector &detector) const
 Returns the run number to be stamped in generated DAQ format data for the supplied detector.
virtual unsigned int nextEventNumber (const DayaBay::Detector &detector)
 Returns the next event number to be stamped in generated DAQ format data for the supplied detector.
virtual bool hasFileStartRecord () const
 Returns true if there is a current file_start_record.
virtual const DybDaq::FileStartRecordfileStartRecord () const
 Returns the current file_start_record.
virtual bool hasFileNameStrings () const
 Returns true if there is a current file_name_strings.
virtual const DybDaq::FileNameStringsfileNameStrings () const
 Returns the current file_name_strings.
virtual bool hasMetadataStrings () const
 Returns true if there is a current metadata_strings.
virtual const DybDaq::MetadataStringsmetadataStrings () const
 Returns the current metadata_strings.
virtual bool hasRunParametersRecord () const
 Returns true if there is a current run_parameters_record.
virtual const DybDaq::RunParametersRecordrunParametersRecord () const
 Returns the current run_parameters_record.
virtual bool hasCalibrationParametersRecord () const
 Returns true if there is a current calibration_parameter_record.
virtual const DybDaq::CalibrationParametersRecordcalibrationParametersRecord () const
 Returns the current calibration_parameters_record.
virtual bool hasFileEndRecord () const
 Returns true if there is a file_end_record from the last file and the second event for the current file has not been read.
virtual const DybDaq::FileEndRecordfileEndRecord () const
 Returns the file_end_record from the last file.
void setFileRecord (const DybDaq::FileBuffer *record)
 Sets the current record to the one supplied.
void setFileRecord (const DybDaq::FileStartRecord *record)
 Sets the current file_start_record.
void setFileRecord (const DybDaq::FileNameStrings *record)
 Sets the current file_name_strings.
void setFileRecord (const DybDaq::MetadataStrings *record)
 Sets the current metadata_strings.
void setFileRecord (const DybDaq::RunParametersRecord *record)
 Sets the current run_parameters_record.
void setFileRecord (const DybDaq::CalibrationParametersRecord *record)
 Sets the current calibration_parameters_record.
void setFileRecord (const DybDaq::FileEndRecord *record)
 Sets the current file_end_record.
virtual unsigned long addRef ()
virtual unsigned long release ()
virtual const std::string & name () const
virtual const InterfaceIDtype () const
virtual StatusCode configure ()
virtual StatusCode initialize ()
virtual StatusCode start ()
virtual StatusCode stop ()
virtual StatusCode finalize ()
virtual StatusCode terminate ()
virtual Gaudi::StateMachine::State FSMState () const
virtual Gaudi::StateMachine::State targetFSMState () const
virtual StatusCode reinitialize ()
virtual StatusCode restart ()
virtual StatusCode sysInitialize ()
virtual StatusCode sysStart ()
virtual StatusCode sysStop ()
virtual StatusCode sysFinalize ()
virtual StatusCode sysReinitialize ()
virtual StatusCode sysRestart ()
virtual StatusCode setProperty (const Property &p)
virtual StatusCode setProperty (const std::string &s)
virtual StatusCode setProperty (const std::string &n, const std::string &v)
StatusCode setProperty (const std::string &name, const TYPE &value)
virtual StatusCode getProperty (Property *p) const
virtual const PropertygetProperty (const std::string &name) const
virtual StatusCode getProperty (const std::string &n, std::string &v) const
virtual const std::vector<
Property * > & 
getProperties () const
ISvcLocatorserviceLocator () const
IMessageSvcmsgSvc ()
IMessageSvcmsgSvc () const
IMessageSvcmessageService ()
IMessageSvcmessageService () const
StatusCode setProperties ()
StatusCode service (const std::string &name, T *&psvc, bool createIf=true) const
StatusCode service (const std::string &svcType, const std::string &svcName, T *&psvc) const
PropertydeclareProperty (const std::string &name, T &property, const std::string &doc="none") const
PropertydeclareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="") const
IAuditorSvcauditorSvc () const
virtual unsigned long addRef ()=0
virtual unsigned long release ()=0

Static Public Member Functions

static const InterfaceIDinterfaceID ()
static const InterfaceIDinterfaceID ()
static const InterfaceIDinterfaceID ()
static const InterfaceIDinterfaceID ()

Public Attributes

 SUCCESS
 NO_INTERFACE
 VERSMISMATCH
 LAST_ERROR

Protected Member Functions

int outputLevel () const

Protected Attributes

IntegerProperty m_outputLevel
Gaudi::StateMachine::State m_state
Gaudi::StateMachine::State m_targetState
IMessageSvcm_messageSvc

Private Member Functions

 DaqReadoutSvc ()
 Suppress default.
 DaqReadoutSvc (const DaqReadoutSvc &rhs)
 Suppress default.
DaqReadoutSvcoperator= (const DaqReadoutSvc &rhs)
 Suppress default.

Private Attributes

unsigned int m_runNumber
 The run number to be stamped in generated DAQ format data for the supplied detector.
unsigned int m_nextEventNumber
 The next event number to be stamped in generated DAQ format data for the supplied detector.
bool m_generating
 True if DaqReadout instances should be generated.
const DybDaq::FileStartRecordm_fileStartRecord
 The current file_start_record, if there is one.
const DybDaq::FileNameStringsm_fileNameStrings
 The current fileNameStrings, if there is one.
const DybDaq::MetadataStringsm_metadataStrings
 The current metadata_strings, if there is one.
const DybDaq::RunParametersRecordm_runParametersRecord
 The current run_parameters_record, if there is one.
const DybDaq::CalibrationParametersRecordm_calibrationParametersRecord
 The current calibration_parameters_record, if there is one.
const DybDaq::FileEndRecordm_fileEndRecord
 The current file_end_record, if there is one.

Friends

friend class ServiceManager

Detailed Description

Definition at line 21 of file DaqReadoutSvc.h.


Constructor & Destructor Documentation

DaqReadoutSvc::DaqReadoutSvc ( const std::string &  name,
ISvcLocator svc 
)

Creates an instace of this class.

DaqReadoutSvc::~DaqReadoutSvc (  ) 

Destroys the instance of this class.

DaqReadoutSvc::DaqReadoutSvc (  )  [private]

Suppress default.

DaqReadoutSvc::DaqReadoutSvc ( const DaqReadoutSvc rhs  )  [private]

Suppress default.


Member Function Documentation

virtual StatusCode DaqReadoutSvc::queryInterface ( const InterfaceID id,
void **  interface 
) [virtual]

Reimplemented from Service.

virtual bool DaqReadoutSvc::isGenerating (  )  const [virtual]

Returns true if DaqReadout instances should be generated.

Implements IDaqReadoutSvc.

virtual unsigned int DaqReadoutSvc::ltbSlot ( const DayaBay::Detector detector  )  const [virtual]

Returns the ltb slot to be used in generated DAQ format data for the supplied detector.

Implements IDaqReadoutSvc.

virtual unsigned int DaqReadoutSvc::runNumber ( const DayaBay::Detector detector  )  const [virtual]

Returns the run number to be stamped in generated DAQ format data for the supplied detector.

Implements IDaqReadoutSvc.

virtual unsigned int DaqReadoutSvc::nextEventNumber ( const DayaBay::Detector detector  )  [virtual]

Returns the next event number to be stamped in generated DAQ format data for the supplied detector.

Implements IDaqReadoutSvc.

virtual bool DaqReadoutSvc::hasFileStartRecord (  )  const [virtual]

Returns true if there is a current file_start_record.

Implements IDaqReadoutSvc.

virtual const DybDaq::FileStartRecord& DaqReadoutSvc::fileStartRecord (  )  const [virtual]

Returns the current file_start_record.

Implements IDaqReadoutSvc.

virtual bool DaqReadoutSvc::hasFileNameStrings (  )  const [virtual]

Returns true if there is a current file_name_strings.

Implements IDaqReadoutSvc.

virtual const DybDaq::FileNameStrings& DaqReadoutSvc::fileNameStrings (  )  const [virtual]

Returns the current file_name_strings.

Implements IDaqReadoutSvc.

virtual bool DaqReadoutSvc::hasMetadataStrings (  )  const [virtual]

Returns true if there is a current metadata_strings.

Implements IDaqReadoutSvc.

virtual const DybDaq::MetadataStrings& DaqReadoutSvc::metadataStrings (  )  const [virtual]

Returns the current metadata_strings.

Implements IDaqReadoutSvc.

virtual bool DaqReadoutSvc::hasRunParametersRecord (  )  const [virtual]

Returns true if there is a current run_parameters_record.

Implements IDaqReadoutSvc.

virtual const DybDaq::RunParametersRecord& DaqReadoutSvc::runParametersRecord (  )  const [virtual]

Returns the current run_parameters_record.

Implements IDaqReadoutSvc.

virtual bool DaqReadoutSvc::hasCalibrationParametersRecord (  )  const [virtual]

Returns true if there is a current calibration_parameter_record.

Implements IDaqReadoutSvc.

virtual const DybDaq::CalibrationParametersRecord& DaqReadoutSvc::calibrationParametersRecord (  )  const [virtual]

Returns the current calibration_parameters_record.

Implements IDaqReadoutSvc.

virtual bool DaqReadoutSvc::hasFileEndRecord (  )  const [virtual]

Returns true if there is a file_end_record from the last file and the second event for the current file has not been read.

Implements IDaqReadoutSvc.

virtual const DybDaq::FileEndRecord& DaqReadoutSvc::fileEndRecord (  )  const [virtual]

Returns the file_end_record from the last file.

Implements IDaqReadoutSvc.

void DaqReadoutSvc::setFileRecord ( const DybDaq::FileBuffer record  ) 

Sets the current record to the one supplied.

void DaqReadoutSvc::setFileRecord ( const DybDaq::FileStartRecord record  ) 

Sets the current file_start_record.

void DaqReadoutSvc::setFileRecord ( const DybDaq::FileNameStrings record  ) 

Sets the current file_name_strings.

void DaqReadoutSvc::setFileRecord ( const DybDaq::MetadataStrings record  ) 

Sets the current metadata_strings.

void DaqReadoutSvc::setFileRecord ( const DybDaq::RunParametersRecord record  ) 

Sets the current run_parameters_record.

void DaqReadoutSvc::setFileRecord ( const DybDaq::CalibrationParametersRecord record  ) 

Sets the current calibration_parameters_record.

void DaqReadoutSvc::setFileRecord ( const DybDaq::FileEndRecord record  ) 

Sets the current file_end_record.

DaqReadoutSvc& DaqReadoutSvc::operator= ( const DaqReadoutSvc rhs  )  [private]

Suppress default.


Member Data Documentation

unsigned int DaqReadoutSvc::m_runNumber [private]

The run number to be stamped in generated DAQ format data for the supplied detector.

Definition at line 180 of file DaqReadoutSvc.h.

unsigned int DaqReadoutSvc::m_nextEventNumber [private]

The next event number to be stamped in generated DAQ format data for the supplied detector.

Definition at line 185 of file DaqReadoutSvc.h.

bool DaqReadoutSvc::m_generating [private]

True if DaqReadout instances should be generated.

Definition at line 190 of file DaqReadoutSvc.h.

const DybDaq::FileStartRecord* DaqReadoutSvc::m_fileStartRecord [private]

The current file_start_record, if there is one.

Definition at line 195 of file DaqReadoutSvc.h.

const DybDaq::FileNameStrings* DaqReadoutSvc::m_fileNameStrings [private]

The current fileNameStrings, if there is one.

Definition at line 200 of file DaqReadoutSvc.h.

const DybDaq::MetadataStrings* DaqReadoutSvc::m_metadataStrings [private]

The current metadata_strings, if there is one.

Definition at line 205 of file DaqReadoutSvc.h.

const DybDaq::RunParametersRecord* DaqReadoutSvc::m_runParametersRecord [private]

The current run_parameters_record, if there is one.

Definition at line 210 of file DaqReadoutSvc.h.

const DybDaq::CalibrationParametersRecord* DaqReadoutSvc::m_calibrationParametersRecord [private]

The current calibration_parameters_record, if there is one.

Definition at line 215 of file DaqReadoutSvc.h.

const DybDaq::FileEndRecord* DaqReadoutSvc::m_fileEndRecord [private]

The current file_end_record, if there is one.

Definition at line 220 of file DaqReadoutSvc.h.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:46:30 2011 for DaqFormatModules by doxygen 1.4.7