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