Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
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 <costas.andreopoulos \at stfc.ac.uk>
9
University of Liverpool & STFC Rutherford Appleton Lab
10
11
\created September 02, 2005
12
13
\cpright Copyright (c) 2003-2019, The GENIE Collaboration
14
For the full text of the license visit http://copyright.genie-mc.org
15
or see $GENIE/LICENSE
16
*/
17
//____________________________________________________________________________
18
19
#ifndef _NTP_MC_FORMAT_H_
20
#define _NTP_MC_FORMAT_H_
21
22
#ifndef ROOT_Rtypes
23
#include "Rtypes.h"
24
#endif
25
26
namespace
genie
{
27
28
typedef
enum
ENtpMCFormat
{
29
30
kNFUndefined
= -1,
31
kNFGHEP
/* each mc tree leaf contains the full GHEP EventRecord */
32
33
}
NtpMCFormat_t
;
34
35
class
NtpMCFormat
{
36
public
:
37
static
const
char
*
AsString
(NtpMCFormat_t
fmt
) {
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
}
50
51
static
const
char
*
FilenameTag
(NtpMCFormat_t
fmt
) {
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
}
68
};
69
70
}
71
#endif
genie::ENtpMCFormat
ENtpMCFormat
Definition:
NtpMCFormat.h:28
genie::kNFGHEP
Definition:
NtpMCFormat.h:31
genie::NtpMCFormat
Encapsulates an enumeration of possible GENIE output TTree formats.
Definition:
NtpMCFormat.h:35
genie
THE MAIN GENIE PROJECT NAMESPACE
Definition:
GeneratorBase.h:8
genie::kNFUndefined
Definition:
NtpMCFormat.h:30
genie::NtpMCFormat::FilenameTag
static const char * FilenameTag(NtpMCFormat_t fmt)
Definition:
NtpMCFormat.h:51
genie::NtpMCFormat::AsString
static const char * AsString(NtpMCFormat_t fmt)
Definition:
NtpMCFormat.h:37
PandAna.Demos.pi0_spectra.fmt
fmt
Definition:
pi0_spectra.py:172
genie::NtpMCFormat_t
enum genie::ENtpMCFormat NtpMCFormat_t
Generated on Mon Jan 18 2021 14:15:06 for NOvA by
1.8.11