Static Public Member Functions | List of all members
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 <constantinos.andreopoulos cern.ch> University of Liverpool & STFC Rutherford Appleton Laboratory

September 02, 2005

Copyright (c) 2003-2020, 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

static 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  }
static 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  }

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