ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
RunHeader.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file RunHeader.cc
1
#include "
RunHeader.h
"
2
3
#include <
phool/phool.h
>
4
5
#include <iostream>
6
7
class
PHObject
;
8
9
static
int
nowarning
= 0;
10
11
PHObject
*
12
RunHeader::CloneMe
()
const
13
{
14
std::cout <<
"RunHeader::CloneMe() is not implemented in daugther class"
<< std::endl;
15
return
nullptr
;
16
}
17
18
void
RunHeader::Reset
()
19
{
20
std::cout <<
PHWHERE
<<
"ERROR Reset() not implemented by daughter class"
<< std::endl;
21
return
;
22
}
23
24
void
RunHeader::identify
(std::ostream& os)
const
25
{
26
os <<
"identify yourself: virtual RunHeader Object"
<< std::endl;
27
return
;
28
}
29
30
int
RunHeader::isValid
()
const
31
{
32
std::cout <<
PHWHERE
<<
"isValid not implemented by daughter class"
<< std::endl;
33
return
0;
34
}
35
36
int
RunHeader::get_RunNumber
()
const
37
{
38
warning
(
"get_RunNumber()"
);
39
return
-9999;
40
}
41
42
void
RunHeader::set_RunNumber
(
const
int
/*run*/
)
43
{
44
warning
(
"set_RunNumber(const int run)"
);
45
return
;
46
}
47
48
//
49
void
RunHeader::NoWarning
(
const
int
i)
50
{
51
if
(i > 0)
52
{
53
std::cout <<
"RunHeader: switching virtual warnings OFF"
<< std::endl;
54
nowarning
= i;
55
}
56
else
57
{
58
std::cout <<
"RunHeader: switching virtual warnings ON"
<< std::endl;
59
nowarning
= 0;
60
}
61
return
;
62
}
63
64
void
RunHeader::warning
(
const
std::string& funcname)
const
65
{
66
if
(!
nowarning
)
67
{
68
std::cout <<
"Using virtual function RunHeader::"
<< funcname << std::endl;
69
}
70
return
;
71
}
coresoftware
blob
master
offline
framework
ffaobjects
RunHeader.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:33
using
1.8.2 with
ECCE GitHub integration