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 "/cvmfs/nova.opensciencegrid.org/externals/genie/v3_00_06_p01/Linux64bit+3.10-2.17-e17-debug/GENIE-Generator/src/Framework/Ntuple/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 Attributes

EventRecordevent
 event More...
 
NtpMCRecHeader hdr
 record header More...
 

Private Member Functions

void Init (void)
 

Friends

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

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 <costas.andreopoulos stfc.ac.uk> University of Liverpool & STFC Rutherford Appleton Lab

October 1, 2004

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

Definition at line 38 of file NtpMCEventRecord.h.

Constructor & Destructor Documentation

NtpMCEventRecord::NtpMCEventRecord ( )

Definition at line 36 of file NtpMCEventRecord.cxx.

References Init().

36  :
38 {
39  this->Init();
40 }
NtpMCEventRecord::NtpMCEventRecord ( const NtpMCEventRecord ntpmcrec)

Definition at line 42 of file NtpMCEventRecord.cxx.

References Copy().

42  :
44 {
45  this->Copy(ntpmcrec);
46 }
void Copy(const NtpMCEventRecord &ntpmcrec)
NtpMCEventRecord::~NtpMCEventRecord ( )
virtual

Definition at line 48 of file NtpMCEventRecord.cxx.

References Clear().

49 {
50  this->Clear();
51 }
void Clear(Option_t *opt="")

Member Function Documentation

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

Definition at line 65 of file NtpMCEventRecord.cxx.

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

Referenced by NtpMCEventRecord().

66 {
67  this->event->Copy(*ntpmcrec.event);
68  this->hdr.ievent = ntpmcrec.hdr.ievent;
69 }
NtpMCRecHeader hdr
record header
Definition: NtpMCRecordI.h:39
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 59 of file NtpMCEventRecord.cxx.

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

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

60 {
61  this->event->Copy(*ev_rec);
62  this->hdr.ievent = ievent;
63 }
NtpMCRecHeader hdr
record header
Definition: NtpMCRecordI.h:39
unsigned int ievent
Event number.
void NtpMCEventRecord::Init ( void  )
private

Definition at line 71 of file NtpMCEventRecord.cxx.

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

Referenced by NtpMCEventRecord().

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

Definition at line 53 of file NtpMCEventRecord.cxx.

References allTimeWatchdog::endl, and genie::NtpMCRecordI::hdr.

Referenced by ClassImp().

54 {
55  stream << this->hdr << endl;
56  stream << *this->event << endl;
57 }
NtpMCRecHeader hdr
record header
Definition: NtpMCRecordI.h:39

Friends And Related Function Documentation

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

Member Data Documentation

EventRecord* genie::NtpMCEventRecord::event
NtpMCRecHeader genie::NtpMCRecordI::hdr
inherited

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