19 #ifndef _NTP_WRITER_H_ 20 #define _NTP_WRITER_H_ 36 class NtpMCEventRecord;
37 class NtpMCTreeHeader;
83 #endif // _NTP_WRITER_H_
void OpenFile(string filename)
THE MAIN GENIE PROJECT NAMESPACE
void CustomizeFilename(string filename)
void SetDefaultFilename(string filename_prefix="gntp")
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.
void CreateGHEPEventBranch(void)
NtpMCFormat_t fNtpFormat
enumeration of event formats
string fOutFilename
output filename
TFile * fOutFile
output file
NtpMCTreeHeader * fNtpMCTreeHeader
TBranch * fEventBranch
the generated event branch
~NtpWriter()
initialize the ntuple writer
void CreateEventBranch(void)
void Save(void)
get the even tree
void AddEventRecord(int ievent, const EventRecord *ev_rec)
save the event tree
void CreateTreeHeader(void)
Generated Event Record. It is a GHepRecord object that can accept / be visited by EventRecordVisitorI...
void CustomizeFilenamePrefix(string prefix)
NtpWriter(NtpMCFormat_t fmt=kNFGHEP, Long_t runnu=0, Long_t runseed=-1)
void Initialize(void)
add event
A utility class to facilitate creating the GENIE MC Ntuple from the output GENIE GHEP event records...
TTree * fOutTree
output tree
enum genie::ENtpMCFormat NtpMCFormat_t
NtpMCEventRecord * fNtpMCEventRecord