|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
13 #ifndef DDEVE_GENERICEVENTHANDLER_H
14 #define DDEVE_GENERICEVENTHANDLER_H
58 virtual bool Open(
const std::string& type,
const std::string& file_name)
override;
64 virtual bool GotoEvent(
long event_number)
override;
79 #endif // DDEVE_GENERICEVENTHANDLER_H
Event data actor base class for particles. Used to extract data from concrete classes.
ClassDefOverride(GenericEventHandler, 0)
Event handler base class. Interface to all DDEve I/O actions.
virtual ~GenericEventHandler()
Default destructor.
Event handler base class: Interface to all DDEve I/O actions.
virtual size_t collectionLoop(const std::string &collection, DDEveHitActor &actor) override
Loop over collection and extract data.
virtual void Subscribe(EventConsumer *display)
Subscribe to notification of new data present.
GenericEventHandler()
Standard constructor.
Event data actor base class for hits. Used to extract data from concrete classes.
virtual std::string datasourceName() const override
Access the data source name.
virtual void NotifySubscribers(void(EventConsumer::*pmf)(EventHandler &))
Notfy all subscribers.
std::set< EventConsumer * > Subscriptions
Subscriber set.
virtual bool NextEvent() override
Load the next event.
Event event consumer base class for DDEve: Interface class for event I/O.
virtual bool GotoEvent(long event_number) override
Goto a specified event in the file.
Subscriptions m_subscriptions
Data subscriptions (unordered)
virtual const TypedEventCollections & data() const override
Access the map of simulation data collections.
virtual bool PreviousEvent() override
User overloadable function: Load the previous event.
EventHandler * current() const
std::map< std::string, EventHandler * > m_handlers
virtual CollectionType collectionType(const std::string &collection) const override
Access to the collection type by name.
virtual bool Open(const std::string &type, const std::string &file_name) override
Open a new event data file.
virtual long numEvents() const override
Access the number of events on the current input data source (-1 if no data source connected)
Namespace for the AIDA detector description toolkit.
std::map< std::string, std::vector< Collection > > TypedEventCollections
Types collection: collections are grouped by type (class name)
virtual void Unsubscribe(EventConsumer *display)
Unsubscribe from notification of new data present.
virtual const TypedEventCollections & data() const =0
Access the map of simulation data collections.