EventRecord.h
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*!
3 
4 \class genie::EventRecord
5 
6 \brief Generated Event Record. It is a GHepRecord object that can accept /
7  be visited by EventRecordVisitorI objects (event generation modules).
8  All the other important container manipulation methods are defined
9  at the base GHepRecord record.
10 
11 \author Costas Andreopoulos <costas.andreopoulos \at stfc.ac.uk>
12  University of Liverpool & STFC Rutherford Appleton Lab
13 
14 \created October 1, 2004
15 
16 \cpright Copyright (c) 2003-2019, The GENIE Collaboration
17  For the full text of the license visit http://copyright.genie-mc.org
18  or see $GENIE/LICENSE
19 */
20 //____________________________________________________________________________
21 
22 #ifndef _EVENT_RECORD_H_
23 #define _EVENT_RECORD_H_
24 
25 #include <ostream>
26 
28 
29 using std::ostream;
30 
31 namespace genie {
32 
33 class EventRecord;
34 class EventRecordVisitorI;
35 
36 ostream & operator<< (ostream& stream, const EventRecord & event);
37 
38 class EventRecord : public GHepRecord {
39 
40 public :
41  using GHepRecord::Copy; // suppress clang 'hides overloaded virtual function [-Woverloaded-virtual]' warnings
42  using GHepRecord::Print;
43 
44  EventRecord();
45  EventRecord(int size);
46  EventRecord(const EventRecord & record);
47  ~EventRecord();
48 
49  void AcceptVisitor (EventRecordVisitorI * visitor);
50  virtual void Copy (const EventRecord & record);
51  virtual void Print (ostream & stream) const;
52 
53  friend ostream & operator<< (ostream& stream, const EventRecord & event);
54 
55 private:
56 
57 ClassDef(EventRecord, 1)
58 
59 };
60 
61 } // genie namespace
62 
63 #endif // _EVENT_RECORD_H_
virtual void Copy(const GHepRecord &record)
Definition: GHepRecord.cxx:943
void Print(ostream &stream) const
THE MAIN GENIE PROJECT NAMESPACE
Definition: GeneratorBase.h:8
virtual void Copy(const EventRecord &record)
Definition: EventRecord.cxx:64
Defines the EventRecordVisitorI interface. Concrete implementations of this interface use the &#39;Visito...
virtual void Print(ostream &stream) const
Definition: EventRecord.cxx:77
friend ostream & operator<<(ostream &stream, const EventRecord &event)
Generated Event Record. It is a GHepRecord object that can accept / be visited by EventRecordVisitorI...
Definition: EventRecord.h:38
ostream & operator<<(ostream &stream, const AlgConfigPool &config_pool)
void AcceptVisitor(EventRecordVisitorI *visitor)
Definition: EventRecord.cxx:59
GENIE&#39;s GHEP MC event record.
Definition: GHepRecord.h:46