BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/RawEvent/RawEvent/DigiEvent.h
Go to the documentation of this file.
1#ifndef Event_DIGIEVENT_H
2#define Event_DIGIEVENT_H
3#include "GaudiKernel/Kernel.h"
4#include "GaudiKernel/DataObject.h"
5#include "EventModel/EventModel.h"
6
7using namespace EventModel;
8extern const CLID& CLID_DigiEvent;
9
10
11/** class DigiEvent
12* brief Defines the top level object for digitization data.
13* It can be identified by "/Event/Digi" on the TDS
14*
15* It contains:
16* - m_fromMc, if coming from Monte Carlo
17*
18* based GLAST DigiEvent
19*/
20
21class DigiEvent : public DataObject {
22
23public:
24
26 : DataObject(), m_fromMc(true) { }
27
28 virtual ~DigiEvent() { }
29
30 void initialize(bool fromMc) { m_fromMc = fromMc; };
31
32 /// Retrieve reference to class definition structure
33 virtual const CLID& clID() const { return DigiEvent::classID(); }
34 static const CLID& classID() { return CLID_DigiEvent; }
35
36 /// Retrieve flag of origin
37 bool fromMc () const {
38 return m_fromMc;
39 }
40
41
42private:
43 /// Flag of origin
44 bool m_fromMc;
45};
46
47#endif
48
49
const CLID & CLID_DigiEvent
Raw event and Digi IDs.
Definition: EventModel.cxx:232
bool fromMc() const
Retrieve flag of origin.
virtual const CLID & clID() const
Retrieve reference to class definition structure.