BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EventIncident.h
Go to the documentation of this file.
1#ifndef EVENTINFO_EVENTINCIDENT_H
2#define EVENTINFO_EVENTINCIDENT_H 1
3
4//<<<<<< INCLUDES >>>>>>
5#include <string>
6#ifndef GAUDIKERNEL_INCIDENT_H
7# include "GaudiKernel/Incident.h"
8#endif
9
10//<<<<<< FORWARD DECLS >>>>>>
11
12class EventInfo;
13
14//<<<<<< CLASS DECLARATIONS >>>>>>
15
16/** @class EventIncident
17 * @brief an incident that carries the EventInfo object
18 * @author pcalafiura@lbl.gov - ATLAS Collaboration
19 * $Id: EventIncident.h,v 1.1.1.1 2007/04/25 11:46:57 zoujh Exp $
20 **/
21
22class EventIncident : public Incident {
23public:
24 /// \name structors
25 //@{
26 /// standard constructor
27 ///@param event the EventInfo of the event in question
28 ///@param source the name of the service/algorithm firing
29 ///@param type e.g. "BeginEvent"
30 EventIncident( const EventInfo& event, const std::string& source,
31 const std::string& type = std::string( "BeginEvent" ) );
32 EventIncident( const EventIncident& e );
33 virtual ~EventIncident();
34 //@}
35
36 /// \name Event information accessors
37 //@{
38 /// the unique identification of the event.
39 const EventInfo& eventInfo() const;
40 //@}
41
42private:
43 const EventInfo& m_eventInfo;
44};
45
46//<<<<<< INLINE PUBLIC FUNCTIONS >>>>>>
47//<<<<<< INLINE MEMBER FUNCTIONS >>>>>>
48inline const EventInfo& EventIncident::eventInfo() const { return m_eventInfo; }
49#endif // EVENTINFO_EVENTINCIDENT_H
virtual ~EventIncident()
const EventInfo & eventInfo() const
the unique identification of the event.
EventIncident(const EventInfo &event, const std::string &source, const std::string &type=std::string("BeginEvent"))
This class provides general information about an event. It extends EventInfo with a list of sub-evts ...
Definition EventInfo.h:33