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 <costas.andreopoulos \at stfc.ac.uk>
9  University of Liverpool & STFC Rutherford Appleton Lab
10 
11 \created October 1, 2004
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_TREE_HEADER_H_
20 #define _NTP_MC_TREE_HEADER_H_
21 
22 #include <ostream>
23 
24 #include <TNamed.h>
25 #include <TObjString.h>
26 
29 
30 using std::string;
31 using std::ostream;
32 
33 namespace genie {
34 
35 class NtpMCTreeHeader;
36 ostream & operator << (ostream & stream, const NtpMCTreeHeader & hdr);
37 
38 class NtpMCTreeHeader : public TNamed {
39 
40 public :
41  using TNamed::Copy; // suppress clang 'hides overloaded virtual function [-Woverloaded-virtual]' warnings
42 
44  NtpMCTreeHeader(const NtpMCTreeHeader & hdr);
45  virtual ~NtpMCTreeHeader();
46 
47  void Init (void);
48  void Copy (const NtpMCTreeHeader & hdr);
49 
50  void PrintToStream(ostream & stream) const;
51 
52  friend ostream & operator << (ostream & stream, const NtpMCTreeHeader & hdr);
53 
54  // Ntuple is treated like a C-struct with public data members and
55  // rule-breakinsg field data members not prefaced by "f" and mostly lowercase.
56 
57  NtpMCFormat_t format; ///< Event Record format (GENIE support multiple formats)
58  TObjString cvstag; ///< GENIE CVS Tag (to keep track of GENIE's version)
59  NtpMCDTime datime; ///< Date and Time that the event ntuple was generated
60  Long_t runnu; ///< MC Job run number
61 
62  ClassDef(NtpMCTreeHeader, 1)
63 };
64 
65 } // genie namespace
66 
67 #endif // _NTP_MC_TREE_HEADER_H_
THE MAIN GENIE PROJECT NAMESPACE
Definition: GeneratorBase.h:8
NtpMCDTime datime
Date and Time that the event ntuple was generated.
friend ostream & operator<<(ostream &stream, const NtpMCTreeHeader &hdr)
MINOS-style Ntuple Class to hold the date and time that the event ntuple was generated.
Definition: NtpMCDTime.h:34
void Copy(const NtpMCTreeHeader &hdr)
TObjString cvstag
GENIE CVS Tag (to keep track of GENIE&#39;s version)
MINOS-style Ntuple Class to hold an output MC Tree Header.
void PrintToStream(ostream &stream) const
Long_t runnu
MC Job run number.
NtpMCFormat_t format
Event Record format (GENIE support multiple formats)
ostream & operator<<(ostream &stream, const AlgConfigPool &config_pool)
enum genie::ENtpMCFormat NtpMCFormat_t
enum BeamMode string