EUDAQ
 All Classes Namespaces Files Functions Variables Pages
Classes | Public Member Functions | Protected Member Functions | List of all members
eudaq::AltroUSBConverterPlugin Class Reference
Inheritance diagram for eudaq::AltroUSBConverterPlugin:
eudaq::DataConverterPlugin

Classes

class  BadDataBlockException
 

Public Member Functions

virtual bool GetLCIOSubEvent (lcio::LCEvent &lcioevent, eudaq::Event const &eudaqevent) const
 
virtual bool GetStandardSubEvent (StandardEvent &standardevent, eudaq::Event const &eudaqevent) const
 
virtual ~AltroUSBConverterPlugin ()
 
- Public Member Functions inherited from eudaq::DataConverterPlugin
virtual void Initialize (eudaq::Event const &, eudaq::Configuration const &)
 
virtual unsigned GetTriggerID (eudaq::Event const &) const
 
virtual int IsSyncWithTLU (eudaq::Event const &ev, eudaq::TLUEvent const &tlu) const
 
virtual void setCurrentTLUEvent (eudaq::Event &ev, eudaq::TLUEvent const &tlu)
 
virtual void GetLCIORunHeader (lcio::LCRunHeader &, eudaq::Event const &, eudaq::Configuration const &) const
 
virtual t_eventid const & GetEventType () const
 
virtual ~DataConverterPlugin ()
 

Protected Member Functions

 AltroUSBConverterPlugin ()
 
void DumpDataBlock (UCharAltroUSBVec const &rawdatavec) const
 
- Protected Member Functions inherited from eudaq::DataConverterPlugin
 DataConverterPlugin (std::string subtype)
 
 DataConverterPlugin (unsigned type, std::string subtype="")
 

Additional Inherited Members

- Public Types inherited from eudaq::DataConverterPlugin
typedef std::pair< unsigned,
std::string > 
t_eventid
 
- Protected Attributes inherited from eudaq::DataConverterPlugin
t_eventid m_eventtype
 

Detailed Description

Implementation of the DataConverterPlugin to convert an eudaq::Event to an lcio::event.

The class is implemented as a singleton because it manly contains the conversion code, which is in the getLcioEvent() function. There has to be one static instance, which is registered at the pluginManager. This is automatically done by the inherited constructor of the DataConverterPlugin.

Constructor & Destructor Documentation

virtual eudaq::AltroUSBConverterPlugin::~AltroUSBConverterPlugin ( )
inlinevirtual

The empty destructor. Need to add it to make it virtual.

eudaq::AltroUSBConverterPlugin::AltroUSBConverterPlugin ( )
inlineprotected

The private constructor. The only time it is called is when the one single instance is created, which lives within the object. It calls the DataConverterPlugin constructor with the accoring event type string. This automatically registers the plugin to the plugin manager.

Member Function Documentation

bool eudaq::AltroUSBConverterPlugin::GetLCIOSubEvent ( lcio::LCEvent &  lcioevent,
eudaq::Event const &  eudaqevent 
) const
virtual

Returns the event converted to lcio. This is the working horse and the main part of this plugin.

Reimplemented from eudaq::DataConverterPlugin.

bool eudaq::AltroUSBConverterPlugin::GetStandardSubEvent ( StandardEvent standardevent,
eudaq::Event const &  eudaqevent 
) const
virtual

Returns the event converted to eudaq::StandardEvent. Only contains the primitive implementation for the dummy StandardEvent.

Reimplemented from eudaq::DataConverterPlugin.


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