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 <constantinos.andreopoulos \at cern.ch>
10  University of Liverpool & STFC Rutherford Appleton Laboratory
11 
12 \created October 18, 2004
13 
14 \cpright Copyright (c) 2003-2020, 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 
26 using std::ostream;
27 
28 namespace genie {
29 
30 class NtpMCDTime;
31 ostream & operator << (ostream & stream, const NtpMCDTime & dt);
32 
33 class NtpMCDTime : public TObject {
34 
35 public :
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 
61 };
62 
63 } // genie namespace
64 
65 #endif // _NTP_MC_DTIME_H_
THE MAIN GENIE PROJECT NAMESPACE
Definition: AlgCmp.h:25
void Init(void)
Definition: NtpMCDTime.cxx:65
UInt_t val
sec since 1st Jan 1995 as in TDatime
Definition: NtpMCDTime.h:58
MINOS-style Ntuple Class to hold the date and time that the event ntuple was generated.
Definition: NtpMCDTime.h:33
friend ostream & operator<<(ostream &stream, const NtpMCDTime &dt)
Definition: NtpMCDTime.cxx:23
void Copy(const NtpMCDTime &dt)
Definition: NtpMCDTime.cxx:54
void Now(void)
Definition: NtpMCDTime.cxx:76
ostream & operator<<(ostream &stream, const AlgConfigPool &config_pool)
void PrintToStream(ostream &stream) const
Definition: NtpMCDTime.cxx:47
virtual ~NtpMCDTime()
Definition: NtpMCDTime.cxx:42