EUDAQ
 All Classes Namespaces Files Functions Variables Pages
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
eudaq::DataConverterPlugin Class Reference

#include <DataConverterPlugin.hh>

Inheritance diagram for eudaq::DataConverterPlugin:
eudaq::AltroUSBConverterPlugin eudaq::APIXCTConverterPlugin eudaq::CaliceGenericConverterPlugin eudaq::CcpdlfADCConverterPlugin eudaq::CcpdlfConverterPlugin eudaq::CLICpixConverterPlugin eudaq::CMSPixelConverterPlugin eudaq::CMSPixelDUTConverterPlugin eudaq::CMSPixelQUADConverterPlugin eudaq::CMSPixelREFConverterPlugin eudaq::CMSPixelTRPConverterPlugin eudaq::DEPFETConverterPlugin eudaq::EUDRBConverterPlugin eudaq::ExampleConverterPlugin eudaq::ExplorerConverterPlugin eudaq::FORTISConverterPlugin eudaq::GenericConverterPlugin eudaq::LegacyDEPFETConverterPlugin eudaq::LegacyEUDRBConverterPlugin eudaq::MimosaConverterPlugin eudaq::Mupix2ConverterPlugin eudaq::Mupix3ConverterPlugin eudaq::Mupix4ConverterPlugin eudaq::MVDConverterPlugin eudaq::NIConverterPlugin eudaq::PALPIDEFSConverterPlugin eudaq::PALPIDESSConverterPlugin eudaq::PyBARConverterPlugin eudaq::SCTConverterPlugin_ITS_ABC eudaq::SCTConverterPlugin_ITS_TTC eudaq::SCTupgradeConverterPlugin eudaq::TAKIConverterPlugin eudaq::TestConverterPlugin eudaq::TimepixConverterPlugin eudaq::TLUConverterPlugin eudaq::USBPixConverterPlugin eudaq::USBPixI4ConverterPlugin< dh_lv1id_msk, dh_bcid_msk > eudaq::USBPixI4ConverterPlugin< 0x00007C00, 0x000003FF > eudaq::USBPixI4ConverterPlugin< 0x00007F00, 0x000000FF >

Public Types

typedef std::pair< unsigned,
std::string > 
t_eventid
 

Public Member Functions

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 bool GetLCIOSubEvent (lcio::LCEvent &, eudaq::Event const &) const
 
virtual bool GetStandardSubEvent (StandardEvent &, eudaq::Event const &) const
 
virtual t_eventid const & GetEventType () const
 
virtual ~DataConverterPlugin ()
 

Protected Member Functions

 DataConverterPlugin (std::string subtype)
 
 DataConverterPlugin (unsigned type, std::string subtype="")
 

Protected Attributes

t_eventid m_eventtype
 

Detailed Description

The DataConverterPlugin is the abstract base for all plugins. The actual impementation provides the GetLCIOEvent() and GetStandardEvent() functions which get the eudaq::Event as input parameter.

The implementations should be singleton classes which only can be accessed via the plugin manager. (See TimepixConverterPlugin as example). The plugin implementations have to register with the plugin manager.

Constructor & Destructor Documentation

virtual eudaq::DataConverterPlugin::~DataConverterPlugin ( )
inlinevirtual

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

eudaq::DataConverterPlugin::DataConverterPlugin ( std::string  subtype)
protected

The protected constructor which automatically registeres the plugin at the pluginManager.

Member Function Documentation

virtual t_eventid const& eudaq::DataConverterPlugin::GetEventType ( ) const
inlinevirtual

Returns the type of event this plugin can convert to lcio as a pair of Event type id and subtype string.

virtual bool eudaq::DataConverterPlugin::GetLCIOSubEvent ( lcio::LCEvent &  ,
eudaq::Event const &   
) const
inlinevirtual

Returns the LCIO version of the event.

Reimplemented in eudaq::AltroUSBConverterPlugin.

virtual bool eudaq::DataConverterPlugin::GetStandardSubEvent ( StandardEvent ,
eudaq::Event const &   
) const
inlinevirtual

Member Data Documentation

t_eventid eudaq::DataConverterPlugin::m_eventtype
protected

The string storing the event type this plugin can convert to lcio. This string has to be set in the constructor of the actual implementations of the plugin.


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