GENIEGenerator
Loading...
Searching...
No Matches
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:
[legend]
Collaboration diagram for genie::NtpMCEventRecord:
[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
Public Attributes inherited from genie::NtpMCRecordI
NtpMCRecHeader hdr
 record header

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 \at cern.ch> University of Liverpool
Created:\n October 1, 2004
License:\n Copyright (c) 2003-2025, 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() [1/2]

NtpMCEventRecord::NtpMCEventRecord ( )

Definition at line 31 of file NtpMCEventRecord.cxx.

31 :
33{
34 this->Init();
35}

References Init(), and genie::NtpMCRecordI::NtpMCRecordI().

Referenced by Copy(), NtpMCEventRecord(), and operator<<.

◆ NtpMCEventRecord() [2/2]

NtpMCEventRecord::NtpMCEventRecord ( const NtpMCEventRecord & ntpmcrec)

Definition at line 37 of file NtpMCEventRecord.cxx.

37 :
39{
40 this->Copy(ntpmcrec);
41}
void Copy(const NtpMCEventRecord &ntpmcrec)

References Copy(), NtpMCEventRecord(), and genie::NtpMCRecordI::NtpMCRecordI().

◆ ~NtpMCEventRecord()

NtpMCEventRecord::~NtpMCEventRecord ( )
virtual

Definition at line 43 of file NtpMCEventRecord.cxx.

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

References Clear().

Member Function Documentation

◆ Clear()

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

Definition at line 72 of file NtpMCEventRecord.cxx.

73{
74 delete (this->event);
75 this->event = 0;
76 this->hdr.ievent = 0;
77}
EventRecord * event
event
NtpMCRecHeader hdr
record header

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

Referenced by ConvertToGHad(), ConvertToGHepMock(), ConvertToGINuke(), ConvertToGRooTracker(), ConvertToGST(), ConvertToGTracker(), ConvertToGXML(), main(), RunCherryPicker(), and ~NtpMCEventRecord().

◆ Copy()

void NtpMCEventRecord::Copy ( const NtpMCEventRecord & ntpmcrec)

Definition at line 60 of file NtpMCEventRecord.cxx.

61{
62 this->event->Copy(*ntpmcrec.event);
63 this->hdr.ievent = ntpmcrec.hdr.ievent;
64}
unsigned int ievent
Event number.

References event, genie::NtpMCRecordI::hdr, genie::NtpMCRecHeader::ievent, and NtpMCEventRecord().

Referenced by NtpMCEventRecord().

◆ Fill()

void NtpMCEventRecord::Fill ( unsigned int ievent,
const EventRecord * ev_rec )
virtual

Implements genie::NtpMCRecordI.

Definition at line 54 of file NtpMCEventRecord.cxx.

55{
56 this->event->Copy(*ev_rec);
57 this->hdr.ievent = ievent;
58}

References genie::NtpMCRecordI::hdr.

◆ Init()

void NtpMCEventRecord::Init ( void )
private

Definition at line 66 of file NtpMCEventRecord.cxx.

67{
68 this->event = new EventRecord;
69 this->hdr.ievent = 0;
70}

References genie::NtpMCRecordI::hdr.

Referenced by NtpMCEventRecord().

◆ PrintToStream()

void NtpMCEventRecord::PrintToStream ( ostream & stream) const

Definition at line 48 of file NtpMCEventRecord.cxx.

49{
50 stream << this->hdr << endl;
51 stream << *this->event << endl;
52}

References genie::NtpMCRecordI::hdr.

Referenced by ClassImp().

◆ operator<<

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

References NtpMCEventRecord().

Member Data Documentation

◆ event


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