GENIEGenerator
Loading...
Searching...
No Matches
NtpMCTreeHeader.h
Go to the documentation of this file.
1//____________________________________________________________________________
2/*!
3
4\class genie::NtpMCTreeHeader
5
6\brief MINOS-style Ntuple Class to hold an output MC Tree Header
7
8\author Costas Andreopoulos <c.andreopoulos \at cern.ch>
9 University of Liverpool
10
11\created October 1, 2004
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_TREE_HEADER_H_
19#define _NTP_MC_TREE_HEADER_H_
20
21#include <ostream>
22
23#include <TNamed.h>
24#include <TObjString.h>
25
28
29using std::string;
30using std::ostream;
31
32namespace genie {
33
34class NtpMCTreeHeader;
35ostream & operator << (ostream & stream, const NtpMCTreeHeader & hdr);
36
37class NtpMCTreeHeader : public TNamed {
38
39public :
40 using TNamed::Copy; // suppress clang 'hides overloaded virtual function [-Woverloaded-virtual]' warnings
41
44 virtual ~NtpMCTreeHeader();
45
46 void Init (void);
47 void Copy (const NtpMCTreeHeader & hdr);
48
49 void PrintToStream(ostream & stream) const;
50
51 friend ostream & operator << (ostream & stream, const NtpMCTreeHeader & hdr);
52
53 // Ntuple is treated like a C-struct with public data members and
54 // rule-breakinsg field data members not prefaced by "f" and mostly lowercase.
55
56 NtpMCFormat_t format; ///< Event Record format (GENIE support multiple formats)
57 TObjString cvstag; ///< GENIE CVS Tag (to keep track of GENIE's version)
58 NtpMCDTime datime; ///< Date and Time that the event ntuple was generated
59 Long_t runnu; ///< MC Job run number
60 Long_t runseed; ///< Random seed used in the MC run
61 TObjString tune; ///< GENIE Tune Name
62 TObjString tuneDir; ///< directory from when tune config came
63 TObjString customDirs; ///< any custom directories
64
65 ClassDef(NtpMCTreeHeader, 4)
66};
67
68} // genie namespace
69
70#endif // _NTP_MC_TREE_HEADER_H_
MINOS-style Ntuple Class to hold the date and time that the event ntuple was generated.
Definition NtpMCDTime.h:33
MINOS-style Ntuple Class to hold an output MC Tree Header.
TObjString cvstag
GENIE CVS Tag (to keep track of GENIE's version)
TObjString tune
GENIE Tune Name.
void PrintToStream(ostream &stream) const
friend ostream & operator<<(ostream &stream, const NtpMCTreeHeader &hdr)
TObjString customDirs
any custom directories
NtpMCDTime datime
Date and Time that the event ntuple was generated.
NtpMCFormat_t format
Event Record format (GENIE support multiple formats)
void Copy(const NtpMCTreeHeader &hdr)
Long_t runnu
MC Job run number.
TObjString tuneDir
directory from when tune config came
Long_t runseed
Random seed used in the MC run.
THE MAIN GENIE PROJECT NAMESPACE
Definition AlgCmp.h:25
ostream & operator<<(ostream &stream, const AlgConfigPool &config_pool)
enum genie::ENtpMCFormat NtpMCFormat_t