BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EventInfo.h
Go to the documentation of this file.
1#ifndef EVENTINFO_EVENTINFO_H
2#define EVENTINFO_EVENTINFO_H 1
3//<doc><file> $Id: EventInfo.h,v 1.1.1.1 2007/04/25 11:46:57 zoujh Exp $
4//<version> $Name: HltDataTypes-01-01-03 $
5
6//<<<<<< INCLUDES >>>>>>
7#ifndef GAUDIKERNEL_CLASSID_H
8# include "GaudiKernel/ClassID.h"
9#endif
10
11//<<<<<< PUBLIC DEFINES >>>>>>
12//<<<<<< PUBLIC CONSTANTS >>>>>>
13//<<<<<< PUBLIC TYPES >>>>>>
14
15class EventID;
16class EventType;
17class MixingEventSelector;
18class TriggerInfo;
19
20//<<<<<< PUBLIC VARIABLES >>>>>>
21//<<<<<< PUBLIC FUNCTIONS >>>>>>
22//<<<<<< CLASS DECLARATIONS >>>>>>
23
24/** @class EventInfo
25 * @brief This class provides general information about an event.
26 * It extends EventInfo with a list of sub-evts (the original
27 * and the bkg ones)
28 * @author ATLAS Collaboration
29 * $Id: EventInfo.h,v 1.1.1.1 2007/04/25 11:46:57 zoujh Exp $
30 **/
31extern const CLID& CLID_EventInfo;
32
33class EventInfo {
34public:
35 /// \name structors
36 //@{
37 EventInfo();
39 EventInfo( EventID* id, EventType* type, TriggerInfo* trig_info );
40 EventInfo( const EventInfo& e );
41 virtual ~EventInfo();
42 //@}
43
44 /// \name DataObject-like clid accessors
45 //@{
46 static const CLID& classID();
47 const CLID& clID() const;
48 //@}
49
50 /// \name Event information accessors
51 //@{
52 /// the unique identification of the event.
53 EventID* event_ID() const;
54 /// the type of the event, e.g. simulation, testbeam, etc
55 EventType* event_type() const;
56 /// trigger information (ptr may be NULL)
58 //@}
60
61protected:
62 friend class MixingEventSelector;
63 void setEventID( EventID* pid );
64
65private:
66 EventID* m_event_ID;
67 EventType* m_event_type;
68 TriggerInfo* m_trigger_info;
69};
70
71//<<<<<< INLINE PUBLIC FUNCTIONS >>>>>>
72//<<<<<< INLINE MEMBER FUNCTIONS >>>>>>
73
74inline EventID* EventInfo::event_ID() const { return ( m_event_ID ); }
75
76inline EventType* EventInfo::event_type() const { return ( m_event_type ); }
77
78inline TriggerInfo* EventInfo::trigger_info() const { return ( m_trigger_info ); }
79
80inline const CLID& EventInfo::clID() const { return classID(); }
81
82/* hxt
83#ifndef CLIDSVC_CLASSDEF_H
84# include "CLIDSvc/CLASS_DEF.h"
85#endif
86CLASS_DEF( EventInfo , 2101 , 1 )
87*/
88
89inline const CLID& EventInfo::classID() {
90 return CLID_EventInfo; // hxt ClassID_traits<EventInfo>::ID();
91}
92
93#endif // EVENTINFO_EVENTINFO_H
const CLID & CLID_EventInfo
TriggerInfo * trigger_info() const
trigger information (ptr may be NULL)
Definition EventInfo.h:78
friend class MixingEventSelector
Definition EventInfo.h:62
EventID * event_ID() const
the unique identification of the event.
Definition EventInfo.h:74
void setTriggerInfo(TriggerInfo *)
Definition EventInfo.cxx:52
EventType * event_type() const
the type of the event, e.g. simulation, testbeam, etc
Definition EventInfo.h:76
virtual ~EventInfo()
Definition EventInfo.cxx:41
void setEventID(EventID *pid)
Definition EventInfo.cxx:47
static const CLID & classID()
Definition EventInfo.h:89
const CLID & clID() const
Definition EventInfo.h:80