Class Reference for E1039 Core & Analysis Software
RunHeader.h
Go to the documentation of this file.
1 #ifndef RUNHEADER_H
2 #define RUNHEADER_H
3 
4 #include <phool/PHObject.h>
5 
6 #include <ctime>
7 #include <iostream>
8 
10 class RunHeader: public PHObject
11 {
12  public:
13 
15  virtual ~RunHeader() {}
16 
17  virtual RunHeader* clone() const;
18 
20  virtual void Reset();
21 
25  virtual void identify(std::ostream& os = std::cout) const;
26 
28  virtual int isValid() const;
29 
31  virtual int get_RunNumber() const;
33  virtual void set_RunNumber(const int run);
34 
36  virtual double get_Bfield() const;
38  virtual void set_Bfield(const double rval);
39 
41  virtual time_t get_TimeStart() const;
43  virtual void set_TimeStart(const time_t ival);
44 
46  virtual time_t get_TimeStop() const;
48  virtual void set_TimeStop(const time_t ival);
49 
50 
52  virtual void NoWarning(const int i = 1);
53 
54  protected:
55  void warning(const char *func) const;
56 
57  private: // prevent doc++ from showing ClassDef
58  ClassDef(RunHeader,1)
59 
60 };
61 
62 #endif
virtual double get_Bfield() const
get BField (deprecated in v2)
Definition: RunHeader.cc:52
virtual void Reset()
Clear Event.
Definition: RunHeader.cc:17
virtual int get_RunNumber() const
get Run Number
Definition: RunHeader.cc:38
virtual ~RunHeader()
dtor
Definition: RunHeader.h:15
virtual int isValid() const
isValid returns non zero if object contains valid data
Definition: RunHeader.cc:31
virtual void identify(std::ostream &os=std::cout) const
Definition: RunHeader.cc:24
virtual RunHeader * clone() const
Virtual copy constructor.
Definition: RunHeader.cc:10
virtual void set_RunNumber(const int run)
set Run Number
Definition: RunHeader.cc:45
virtual void set_TimeStart(const time_t ival)
set Start Time
Definition: RunHeader.cc:73
void warning(const char *func) const
Definition: RunHeader.cc:111
virtual void NoWarning(const int i=1)
switches off the pesky virtual warning messages
Definition: RunHeader.cc:95
virtual void set_TimeStop(const time_t ival)
set Time of End Run
Definition: RunHeader.cc:87
virtual time_t get_TimeStop() const
get Time of End Run (in unix ticks)
Definition: RunHeader.cc:80
virtual void set_Bfield(const double rval)
set Bfield (deprecated in v2)
Definition: RunHeader.cc:59
virtual time_t get_TimeStart() const
get Start Time of run (in unix ticks, use ctime to convert to date string)
Definition: RunHeader.cc:66