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
PHObject.h
PHObject
Definition:
PHObject.h:13
RunHeader
Definition:
RunHeader.h:11
RunHeader::get_Bfield
virtual double get_Bfield() const
get BField (deprecated in v2)
Definition:
RunHeader.cc:52
RunHeader::Reset
virtual void Reset()
Clear Event.
Definition:
RunHeader.cc:17
RunHeader::get_RunNumber
virtual int get_RunNumber() const
get Run Number
Definition:
RunHeader.cc:38
RunHeader::~RunHeader
virtual ~RunHeader()
dtor
Definition:
RunHeader.h:15
RunHeader::isValid
virtual int isValid() const
isValid returns non zero if object contains valid data
Definition:
RunHeader.cc:31
RunHeader::identify
virtual void identify(std::ostream &os=std::cout) const
Definition:
RunHeader.cc:24
RunHeader::clone
virtual RunHeader * clone() const
Virtual copy constructor.
Definition:
RunHeader.cc:10
RunHeader::set_RunNumber
virtual void set_RunNumber(const int run)
set Run Number
Definition:
RunHeader.cc:45
RunHeader::set_TimeStart
virtual void set_TimeStart(const time_t ival)
set Start Time
Definition:
RunHeader.cc:73
RunHeader::warning
void warning(const char *func) const
Definition:
RunHeader.cc:111
RunHeader::NoWarning
virtual void NoWarning(const int i=1)
switches off the pesky virtual warning messages
Definition:
RunHeader.cc:95
RunHeader::set_TimeStop
virtual void set_TimeStop(const time_t ival)
set Time of End Run
Definition:
RunHeader.cc:87
RunHeader::get_TimeStop
virtual time_t get_TimeStop() const
get Time of End Run (in unix ticks)
Definition:
RunHeader.cc:80
RunHeader::set_Bfield
virtual void set_Bfield(const double rval)
set Bfield (deprecated in v2)
Definition:
RunHeader.cc:59
RunHeader::get_TimeStart
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
e1039-core
framework
ffaobjects
RunHeader.h
Built by
Haiwang Yu
. updated:
Thu Jan 30 2025 10:15:15
using
1.9.1 with
SeaQuest GitHub integration