CGEM BOSS 6.6.5.h
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
7//<<<<<< INCLUDES >>>>>>
8#ifndef GAUDIKERNEL_CLASSID_H
9# include "GaudiKernel/ClassID.h"
10#endif
11
12//<<<<<< PUBLIC DEFINES >>>>>>
13//<<<<<< PUBLIC CONSTANTS >>>>>>
14//<<<<<< PUBLIC TYPES >>>>>>
15
16class EventID;
17class EventType;
18class MixingEventSelector;
19class TriggerInfo;
20
21//<<<<<< PUBLIC VARIABLES >>>>>>
22//<<<<<< PUBLIC FUNCTIONS >>>>>>
23//<<<<<< CLASS DECLARATIONS >>>>>>
24
25/** @class EventInfo
26 * @brief This class provides general information about an event.
27 * It extends EventInfo with a list of sub-evts (the original
28 * and the bkg ones)
29 * @author ATLAS Collaboration
30 * $Id: EventInfo.h,v 1.1.1.1 2007/04/25 11:46:57 zoujh Exp $
31 **/
32extern const CLID& CLID_EventInfo;
33
34class EventInfo {
35public:
36
37 /// \name structors
38 //@{
39 EventInfo();
40 EventInfo(EventID* id, EventType* type);
41 EventInfo(EventID* id, EventType* type, TriggerInfo* trig_info);
42 EventInfo(const EventInfo& e);
43 virtual ~EventInfo();
44 //@}
45
46 /// \name DataObject-like clid accessors
47 //@{
48 static const CLID& classID();
49 const CLID& clID() const;
50 //@}
51
52 /// \name Event information accessors
53 //@{
54 ///the unique identification of the event.
55 EventID* event_ID () const;
56 ///the type of the event, e.g. simulation, testbeam, etc
57 EventType* event_type () const;
58 /// trigger information (ptr may be NULL)
59 TriggerInfo* trigger_info () const;
60 //@}
62
63protected:
64 friend class MixingEventSelector;
65 void setEventID(EventID* pid);
66
67private:
68 EventID* m_event_ID;
69 EventType* m_event_type;
70 TriggerInfo* m_trigger_info;
71
72};
73
74
75//<<<<<< INLINE PUBLIC FUNCTIONS >>>>>>
76//<<<<<< INLINE MEMBER FUNCTIONS >>>>>>
77
78inline EventID*
80{
81 return (m_event_ID);
82}
83
84inline EventType*
86{
87 return (m_event_type);
88}
89
90inline TriggerInfo*
92{
93 return (m_trigger_info);
94}
95
96
97inline const CLID&
99{
100 return classID();
101}
102
103/* hxt
104#ifndef CLIDSVC_CLASSDEF_H
105# include "CLIDSvc/CLASS_DEF.h"
106#endif
107CLASS_DEF( EventInfo , 2101 , 1 )
108*/
109
110
111inline const CLID&
113{
114 return CLID_EventInfo; //hxt ClassID_traits<EventInfo>::ID();
115}
116
117#endif // EVENTINFO_EVENTINFO_H
118
119
const CLID & CLID_EventInfo
This class provides general information about an event. It extends EventInfo with a list of sub-evts ...
Definition EventInfo.h:34
TriggerInfo * trigger_info() const
trigger information (ptr may be NULL)
Definition EventInfo.h:91
friend class MixingEventSelector
Definition EventInfo.h:64
EventID * event_ID() const
the unique identification of the event.
Definition EventInfo.h:79
void setTriggerInfo(TriggerInfo *)
Definition EventInfo.cxx:75
EventType * event_type() const
the type of the event, e.g. simulation, testbeam, etc
Definition EventInfo.h:85
virtual ~EventInfo()
Definition EventInfo.cxx:61
void setEventID(EventID *pid)
Definition EventInfo.cxx:69
static const CLID & classID()
Definition EventInfo.h:112
const CLID & clID() const
Definition EventInfo.h:98