GENIEGenerator
Loading...
Searching...
No Matches
genie::NtpMCFormat Class Reference

Encapsulates an enumeration of possible GENIE output TTree formats. More...

#include <NtpMCFormat.h>

Static Public Member Functions

static const char * AsString (NtpMCFormat_t fmt)
static const char * FilenameTag (NtpMCFormat_t fmt)

Detailed Description

Encapsulates an enumeration of possible GENIE output TTree formats.

Author
Costas Andreopoulos <c.andreopoulos \at cern.ch> University of Liverpool
Created:\n September 02, 2005
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 34 of file NtpMCFormat.h.

Member Function Documentation

◆ AsString()

const char * genie::NtpMCFormat::AsString ( NtpMCFormat_t fmt)
inlinestatic

Definition at line 36 of file NtpMCFormat.h.

36 {
37 switch (fmt) {
38 case kNFUndefined:
39 return "Undefined";
40 break;
41 case kNFGHEP:
42 return "[NtpMCEventRecord]";
43 break;
44 default:
45 break;
46 }
47 return " ";
48 }
@ kNFUndefined
Definition NtpMCFormat.h:29
@ kNFGHEP
Definition NtpMCFormat.h:30

References genie::kNFGHEP, and genie::kNFUndefined.

Referenced by genie::NtpWriter::CreateTree(), main(), genie::NtpWriter::NtpWriter(), and genie::NtpMCTreeHeader::PrintToStream().

◆ FilenameTag()

const char * genie::NtpMCFormat::FilenameTag ( NtpMCFormat_t fmt)
inlinestatic

Definition at line 50 of file NtpMCFormat.h.

50 {
51
52 // The output ROOT files containing GENIE ntuple are typically named as
53 // gntp.[tag].root where TAG describes the tree format
54
55 switch (fmt) {
56 case kNFUndefined:
57 return "undef";
58 break;
59 case kNFGHEP:
60 return "ghep";
61 break;
62 default:
63 break;
64 }
65 return "undef";
66 }

References genie::kNFGHEP, and genie::kNFUndefined.

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


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