Static Public Member Functions | List of all members
genie::NtpMCFormat Class Reference

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

#include "/cvmfs/nova.opensciencegrid.org/externals/genie/v3_00_06_p01/Linux64bit+3.10-2.17-e17-debug/GENIE-Generator/src/Framework/Ntuple/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 <costas.andreopoulos stfc.ac.uk> University of Liverpool & STFC Rutherford Appleton Lab

September 02, 2005

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 35 of file NtpMCFormat.h.

Member Function Documentation

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

Definition at line 37 of file NtpMCFormat.h.

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

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

37  {
38  switch (fmt) {
39  case kNFUndefined:
40  return "Undefined";
41  break;
42  case kNFGHEP:
43  return "[NtpMCEventRecord]";
44  break;
45  default:
46  break;
47  }
48  return " ";
49  }
static const char* genie::NtpMCFormat::FilenameTag ( NtpMCFormat_t  fmt)
inlinestatic

Definition at line 51 of file NtpMCFormat.h.

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

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

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

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