GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
NtpMCRecHeader.cxx
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*
3  Copyright (c) 2003-2024, The GENIE Collaboration
4  For the full text of the license visit http://copyright.genie-mc.org
5 
6  Costas Andreopoulos <c.andreopoulos \at cern.ch>
7  University of Liverpool
8 */
9 //____________________________________________________________________________
10 
12 
13 using namespace genie;
14 
16 
17 //____________________________________________________________________________
18 namespace genie {
19  ostream & operator<< (ostream& stream, const NtpMCRecHeader & hdr)
20  {
21  hdr.PrintToStream(stream);
22  return stream;
23  }
24 }
25 //____________________________________________________________________________
27 TObject()
28 {
29  this->Init();
30 }
31 //____________________________________________________________________________
33 TObject()
34 {
35  this->Copy(hdr);
36 }
37 //____________________________________________________________________________
39 {
40 
41 }
42 //____________________________________________________________________________
43 void NtpMCRecHeader::PrintToStream(ostream & stream) const
44 {
45  stream << "\n\n*** Event #: " << this->ievent;
46 }
47 //____________________________________________________________________________
49 {
50  this->ievent = hdr.ievent;
51 }
52 //____________________________________________________________________________
54 {
55  this->ievent = 0;
56 }
57 //____________________________________________________________________________
unsigned int ievent
Event number.
void Copy(const NtpMCRecHeader &hdr)
ostream & operator<<(ostream &stream, const AlgConfigPool &config_pool)
ClassImp(CacheBranchFx)
void PrintToStream(ostream &stream) const
MINOS-style Ntuple Class to hold an MC Event Record Header.