Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
Generator
src
Framework
Ntuple
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 <constantinos.andreopoulos \at cern.ch>
9
University of Liverpool & STFC Rutherford Appleton Laboratory
10
11
\created September 02, 2005
12
13
\cpright Copyright (c) 2003-2020, 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
25
namespace
genie
{
26
27
typedef
enum
ENtpMCFormat
{
28
29
kNFUndefined
= -1,
30
kNFGHEP
/* each mc tree leaf contains the full GHEP EventRecord */
31
32
}
NtpMCFormat_t
;
33
34
class
NtpMCFormat
{
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
genie::ENtpMCFormat
ENtpMCFormat
Definition:
NtpMCFormat.h:27
genie::kNFGHEP
Definition:
NtpMCFormat.h:30
genie::NtpMCFormat
Encapsulates an enumeration of possible GENIE output TTree formats.
Definition:
NtpMCFormat.h:34
genie
THE MAIN GENIE PROJECT NAMESPACE
Definition:
AlgCmp.h:25
genie::kNFUndefined
Definition:
NtpMCFormat.h:29
genie::NtpMCFormat::FilenameTag
static const char * FilenameTag(NtpMCFormat_t fmt)
Definition:
NtpMCFormat.h:50
genie::NtpMCFormat::AsString
static const char * AsString(NtpMCFormat_t fmt)
Definition:
NtpMCFormat.h:36
genie::NtpMCFormat_t
enum genie::ENtpMCFormat NtpMCFormat_t
Generated by
1.8.11