Public Member Functions | Public Attributes | Private Member Functions | Friends | List of all members
genie::NtpMCEventRecord Class Reference

MINOS-style ntuple record. Each such ntuple record holds a generated EventRecord object. Ntuples of this type are intended for feeding GENIE events into other applications (for example the GEANT4 based MC generation framework of an experiment) if no direct interface exists. More...

#include <NtpMCEventRecord.h>

Inheritance diagram for genie::NtpMCEventRecord:
genie::NtpMCRecordI

Public Member Functions

 NtpMCEventRecord ()
 
 NtpMCEventRecord (const NtpMCEventRecord &ntpmcrec)
 
virtual ~NtpMCEventRecord ()
 
void Fill (unsigned int ievent, const EventRecord *ev_rec)
 
void Copy (const NtpMCEventRecord &ntpmcrec)
 
void Clear (Option_t *opt="")
 
void PrintToStream (ostream &stream) const
 
- Public Member Functions inherited from genie::NtpMCRecordI
virtual ~NtpMCRecordI ()
 

Public Attributes

EventRecordevent
 event More...
 
- Public Attributes inherited from genie::NtpMCRecordI
NtpMCRecHeader hdr
 record header More...
 

Private Member Functions

void Init (void)
 

Friends

ostream & operator<< (ostream &stream, const NtpMCEventRecord &rec)
 

Additional Inherited Members

- Protected Member Functions inherited from genie::NtpMCRecordI
 NtpMCRecordI ()
 

Detailed Description

MINOS-style ntuple record. Each such ntuple record holds a generated EventRecord object. Ntuples of this type are intended for feeding GENIE events into other applications (for example the GEANT4 based MC generation framework of an experiment) if no direct interface exists.

Author
Costas Andreopoulos <constantinos.andreopoulos cern.ch> University of Liverpool & STFC Rutherford Appleton Laboratory

October 1, 2004

Copyright (c) 2003-2020, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org

Definition at line 37 of file NtpMCEventRecord.h.

Constructor & Destructor Documentation

NtpMCEventRecord::NtpMCEventRecord ( )

Definition at line 30 of file NtpMCEventRecord.cxx.

30  :
32 {
33  this->Init();
34 }
NtpMCEventRecord::NtpMCEventRecord ( const NtpMCEventRecord ntpmcrec)

Definition at line 36 of file NtpMCEventRecord.cxx.

36  :
38 {
39  this->Copy(ntpmcrec);
40 }
void Copy(const NtpMCEventRecord &ntpmcrec)
NtpMCEventRecord::~NtpMCEventRecord ( )
virtual

Definition at line 42 of file NtpMCEventRecord.cxx.

43 {
44  this->Clear();
45 }
void Clear(Option_t *opt="")

Member Function Documentation

void NtpMCEventRecord::Clear ( Option_t *  opt = "")

Definition at line 71 of file NtpMCEventRecord.cxx.

72 {
73  delete (this->event);
74  this->event = 0;
75  this->hdr.ievent = 0;
76 }
NtpMCRecHeader hdr
record header
Definition: NtpMCRecordI.h:38
unsigned int ievent
Event number.
EventRecord * event
event
void NtpMCEventRecord::Copy ( const NtpMCEventRecord ntpmcrec)

Definition at line 59 of file NtpMCEventRecord.cxx.

60 {
61  this->event->Copy(*ntpmcrec.event);
62  this->hdr.ievent = ntpmcrec.hdr.ievent;
63 }
NtpMCRecHeader hdr
record header
Definition: NtpMCRecordI.h:38
unsigned int ievent
Event number.
EventRecord * event
event
void NtpMCEventRecord::Fill ( unsigned int  ievent,
const EventRecord ev_rec 
)
virtual

Implements genie::NtpMCRecordI.

Definition at line 53 of file NtpMCEventRecord.cxx.

54 {
55  this->event->Copy(*ev_rec);
56  this->hdr.ievent = ievent;
57 }
NtpMCRecHeader hdr
record header
Definition: NtpMCRecordI.h:38
unsigned int ievent
Event number.
void NtpMCEventRecord::Init ( void  )
private

Definition at line 65 of file NtpMCEventRecord.cxx.

66 {
67  this->event = new EventRecord;
68  this->hdr.ievent = 0;
69 }
NtpMCRecHeader hdr
record header
Definition: NtpMCRecordI.h:38
unsigned int ievent
Event number.
Generated Event Record. It is a GHepRecord object that can accept / be visited by EventRecordVisitorI...
Definition: EventRecord.h:37
void NtpMCEventRecord::PrintToStream ( ostream &  stream) const

Definition at line 47 of file NtpMCEventRecord.cxx.

48 {
49  stream << this->hdr << endl;
50  stream << *this->event << endl;
51 }
NtpMCRecHeader hdr
record header
Definition: NtpMCRecordI.h:38
QTextStream & endl(QTextStream &s)

Friends And Related Function Documentation

ostream& operator<< ( ostream &  stream,
const NtpMCEventRecord rec 
)
friend

Member Data Documentation

EventRecord* genie::NtpMCEventRecord::event

event

Definition at line 55 of file NtpMCEventRecord.h.


The documentation for this class was generated from the following files: