GENIEGenerator
Loading...
Searching...
No Matches
NtpMCFormat.h
Go to the documentation of this file.
1//____________________________________________________________________________
2/*!
3
4\class genie::NtpMCFormat
5
6\brief Encapsulates an enumeration of possible GENIE output TTree formats
7
8\author Costas Andreopoulos <c.andreopoulos \at cern.ch>
9 University of Liverpool
10
11\created September 02, 2005
12
13\cpright Copyright (c) 2003-2025, The GENIE Collaboration
14 For the full text of the license visit http://copyright.genie-mc.org
15*/
16//____________________________________________________________________________
17
18#ifndef _NTP_MC_FORMAT_H_
19#define _NTP_MC_FORMAT_H_
20
21#ifndef ROOT_Rtypes
22#include "Rtypes.h"
23#endif
24
25namespace genie {
26
27typedef enum ENtpMCFormat {
28
30 kNFGHEP /* each mc tree leaf contains the full GHEP EventRecord */
31
33
35 public:
36 static const char * AsString(NtpMCFormat_t fmt) {
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 }
49
50 static const char * FilenameTag(NtpMCFormat_t fmt) {
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 }
67};
68
69}
70#endif
Encapsulates an enumeration of possible GENIE output TTree formats.
Definition NtpMCFormat.h:34
static const char * AsString(NtpMCFormat_t fmt)
Definition NtpMCFormat.h:36
static const char * FilenameTag(NtpMCFormat_t fmt)
Definition NtpMCFormat.h:50
THE MAIN GENIE PROJECT NAMESPACE
Definition AlgCmp.h:25
@ kNFUndefined
Definition NtpMCFormat.h:29
@ kNFGHEP
Definition NtpMCFormat.h:30
enum genie::ENtpMCFormat NtpMCFormat_t