GENIEGenerator
Loading...
Searching...
No Matches
NtpMCDTime.h
Go to the documentation of this file.
1//____________________________________________________________________________
2/*!
3
4\class genie::NtpMCDTime
5
6\brief MINOS-style Ntuple Class to hold the date and time that the event
7 ntuple was generated.
8
9\author Costas Andreopoulos <c.andreopoulos \at cern.ch>
10 University of Liverpool
11
12\created October 18, 2004
13
14\cpright Copyright (c) 2003-2025, The GENIE Collaboration
15 For the full text of the license visit http://copyright.genie-mc.org
16*/
17//____________________________________________________________________________
18
19#ifndef _NTP_MC_DTIME_H_
20#define _NTP_MC_DTIME_H_
21
22#include <ostream>
23
24#include <TObject.h>
25
26using std::ostream;
27
28namespace genie {
29
30class NtpMCDTime;
31ostream & operator << (ostream & stream, const NtpMCDTime & dt);
32
33class NtpMCDTime : public TObject {
34
35public :
36 using TObject::Copy; // suppress clang 'hides overloaded virtual function [-Woverloaded-virtual]' warnings
37
38 NtpMCDTime();
39 NtpMCDTime(const NtpMCDTime & dt);
40 virtual ~NtpMCDTime();
41
42 void Now (void);
43 void Init (void);
44 void Copy (const NtpMCDTime & dt);
45
46 void PrintToStream(ostream & stream) const;
47
48 friend ostream & operator << (ostream & stream, const NtpMCDTime & dt);
49
50 // Ntuple is treated like a C-struct with public data members and
51 // rule-breakinsg field data members not prefaced by "f" and mostly lowercase.
52 Int_t year;
53 Int_t month;
54 Int_t day;
55 Int_t hour;
56 Int_t min;
57 Int_t sec;
58 UInt_t val; ///< sec since 1st Jan 1995 as in TDatime
59
60 ClassDef(NtpMCDTime, 1)
61};
62
63} // genie namespace
64
65#endif // _NTP_MC_DTIME_H_
MINOS-style Ntuple Class to hold the date and time that the event ntuple was generated.
Definition NtpMCDTime.h:33
void PrintToStream(ostream &stream) const
virtual ~NtpMCDTime()
void Copy(const NtpMCDTime &dt)
UInt_t val
sec since 1st Jan 1995 as in TDatime
Definition NtpMCDTime.h:58
friend ostream & operator<<(ostream &stream, const NtpMCDTime &dt)
THE MAIN GENIE PROJECT NAMESPACE
Definition AlgCmp.h:25
ostream & operator<<(ostream &stream, const AlgConfigPool &config_pool)