BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
McGenEvent.h
Go to the documentation of this file.
1#ifndef McGenEvent_H
2#define McGenEvent_H
3#include <vector>
4#include "GaudiKernel/ContainedObject.h"
5#include "GaudiKernel/ObjectVector.h"
7#include "HepMC/GenEvent.h"
8
9extern const CLID& CLID_GenEvent;
10using namespace EventModel;
11using namespace HepMC;
12
13/*
14 *
15 */
16
17class McGenEvent : virtual public ContainedObject{
18public:
19 // Constructor
20 McGenEvent(GenEvent* evt);
21
22 // Destructor
23 virtual ~McGenEvent();
24
25 // Public accessors:
26 std::string generatorName() const;
27
28 GenEvent* getGenEvt() const;
29
30 // Retrieve reference to class definition structure
31 virtual const CLID& clID() const { return McGenEvent::classID(); }
32 static const CLID& classID() { return CLID_GenEvent; }
33
34private:
35 std::string m_generatorName;
36 GenEvent* m_pEvt;
37};
38
39typedef ObjectVector<McGenEvent> McGenEventCol;
40
41#endif
ObjectVector< McGenEvent > McGenEventCol
Definition: McGenEvent.h:39
const CLID & CLID_GenEvent
Definition: EventModel.cxx:195
virtual ~McGenEvent()
Definition: McGenEvent.cxx:7
std::string generatorName() const
Definition: McGenEvent.cxx:10
static const CLID & classID()
Definition: McGenEvent.h:32
virtual const CLID & clID() const
Definition: McGenEvent.h:31
GenEvent * getGenEvt() const
Definition: McGenEvent.cxx:12