GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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:
Inheritance graph
[legend]
Collaboration diagram for genie::NtpMCEventRecord:
Collaboration graph
[legend]

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 <c.andreopoulos cern.ch> University of Liverpool
Created:
October 1, 2004
License:
Copyright (c) 2003-2024, 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.

References Init().

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

Definition at line 36 of file NtpMCEventRecord.cxx.

References Copy().

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

Definition at line 42 of file NtpMCEventRecord.cxx.

References Clear().

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

Member Function Documentation

void NtpMCEventRecord::Clear ( Option_t *  opt = "")
void NtpMCEventRecord::Copy ( const NtpMCEventRecord ntpmcrec)

Definition at line 59 of file NtpMCEventRecord.cxx.

References event, genie::NtpMCRecordI::hdr, and genie::NtpMCRecHeader::ievent.

Referenced by NtpMCEventRecord().

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.

References genie::NtpMCRecordI::hdr, and genie::NtpMCRecHeader::ievent.

Referenced by genie::NtpWriter::AddEventRecord().

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.

References genie::NtpMCRecordI::hdr, and genie::NtpMCRecHeader::ievent.

Referenced by NtpMCEventRecord().

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.

References genie::NtpMCRecordI::hdr.

Referenced by genie::operator<<().

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

Friends And Related Function Documentation

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

Definition at line 23 of file NtpMCEventRecord.cxx.

24  {
25  ntpp.PrintToStream(stream);
26  return stream;
27  }

Member Data Documentation

EventRecord* genie::NtpMCEventRecord::event

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