NtpMCRecHeader.h
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*!
3 
4 \class genie::NtpMCRecHeader
5 
6 \brief MINOS-style Ntuple Class to hold an MC Event Record Header
7 
8 \author Costas Andreopoulos <constantinos.andreopoulos \at cern.ch>
9  University of Liverpool & STFC Rutherford Appleton Laboratory
10 
11 \created October 1, 2004
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_RECORD_HEADER_H_
19 #define _NTP_MC_RECORD_HEADER_H_
20 
21 #include <ostream>
22 
23 #include <TObject.h>
24 
25 using std::ostream;
26 
27 namespace genie {
28 
29 class NtpMCRecHeader;
30 ostream & operator << (ostream & stream, const NtpMCRecHeader & hdr);
31 
32 class NtpMCRecHeader : public TObject {
33 
34 public :
35  using TObject::Copy; // suppress clang 'hides overloaded virtual function [-Woverloaded-virtual]' warnings
36 
38  NtpMCRecHeader(const NtpMCRecHeader & hdr);
39  virtual ~NtpMCRecHeader();
40 
41  void Init (void);
42  void Copy (const NtpMCRecHeader & hdr);
43 
44  void PrintToStream(ostream & stream) const;
45  friend ostream & operator << (ostream & stream, const NtpMCRecHeader & hdr);
46 
47  // Ntuple is treated like a C-struct with public data members and
48  // rule-breaking field data members not prefaced by "f" and mostly lowercase.
49  unsigned int ievent; ///< Event number
50 
52 };
53 
54 } // genie namespace
55 
56 #endif // _NTP_MC_RECORD_HEADER_H_
friend ostream & operator<<(ostream &stream, const NtpMCRecHeader &hdr)
THE MAIN GENIE PROJECT NAMESPACE
Definition: AlgCmp.h:25
unsigned int ievent
Event number.
void Copy(const NtpMCRecHeader &hdr)
ostream & operator<<(ostream &stream, const AlgConfigPool &config_pool)
void PrintToStream(ostream &stream) const
MINOS-style Ntuple Class to hold an MC Event Record Header.