Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
canvas
canvas
Persistency
Provenance
EventAuxiliary.cc
Go to the documentation of this file.
1
#include "
canvas/Persistency/Provenance/EventAuxiliary.h
"
2
// vim: set sw=2 expandtab :
3
4
#include <ostream>
5
6
using namespace
std
;
7
8
namespace
art
{
9
10
EventAuxiliary::~EventAuxiliary() =
default
;
11
EventAuxiliary::EventAuxiliary() =
default
;
12
13
EventAuxiliary::EventAuxiliary(
EventID
const
& theId,
14
Timestamp
const
& theTime,
15
bool
isReal,
16
ExperimentType
eType
/*= Any*/
)
17
: id_{theId},
time_
{theTime},
isRealData_
{isReal},
experimentType_
{eType}
18
{}
19
20
EventAuxiliary::EventAuxiliary
(
EventAuxiliary
const
&) =
default
;
21
EventAuxiliary::EventAuxiliary
(
EventAuxiliary
&&) =
default
;
22
23
EventAuxiliary
&
EventAuxiliary::operator=
(
EventAuxiliary
const
&) =
default
;
24
EventAuxiliary
&
EventAuxiliary::operator=
(
EventAuxiliary
&&) =
default
;
25
26
Timestamp
const
&
27
EventAuxiliary::time
()
const
noexcept
28
{
29
return
time_
;
30
}
31
32
EventID
const
&
33
EventAuxiliary::id
()
const
noexcept
34
{
35
return
id_
;
36
}
37
38
EventID
const
&
39
EventAuxiliary::eventID
()
const
noexcept
40
{
41
return
id
();
42
}
43
44
RunID
const
&
45
EventAuxiliary::runID
()
const
noexcept
46
{
47
return
id_
.
runID
();
48
}
49
50
SubRunID
const
&
51
EventAuxiliary::subRunID
()
const
noexcept
52
{
53
return
id_
.
subRunID
();
54
}
55
56
RunNumber_t
57
EventAuxiliary::run
()
const
noexcept
58
{
59
return
id_
.
run
();
60
}
61
62
SubRunNumber_t
63
EventAuxiliary::subRun
()
const
noexcept
64
{
65
return
id_
.
subRun
();
66
}
67
68
EventNumber_t
69
EventAuxiliary::event
()
const
noexcept
70
{
71
return
id_
.
event
();
72
}
73
74
bool
75
EventAuxiliary::isRealData
()
const
noexcept
76
{
77
return
isRealData_
;
78
}
79
80
EventAuxiliary::ExperimentType
81
EventAuxiliary::experimentType
()
const
noexcept
82
{
83
return
experimentType_
;
84
}
85
86
bool
87
EventAuxiliary::operator==
(
EventAuxiliary
const
&
other
)
const
noexcept
88
{
89
return
(
id_
==
other
.id_) && (
time_
==
other
.time_) &&
90
(
isRealData_
==
other
.isRealData_) &&
91
(
experimentType_
==
other
.experimentType_);
92
}
93
94
void
95
EventAuxiliary::write
(ostream& os)
const
96
{
97
os <<
id_
<<
endl
;
98
}
99
100
ostream&
101
operator<<
(ostream& os,
const
EventAuxiliary
&
p
)
102
{
103
p.
write
(os);
104
return
os;
105
}
106
107
}
// namespace art
art::EventID::runID
RunID const & runID() const
Definition:
EventID.h:92
art::EventAuxiliary::subRun
SubRunNumber_t subRun() const noexcept
Definition:
EventAuxiliary.cc:63
art::EventID::subRunID
SubRunID const & subRunID() const
Definition:
EventID.h:104
art::EventAuxiliary::EventAuxiliary
EventAuxiliary()
freeze_graph.const
const
Definition:
freeze_graph.py:179
art::EventAuxiliary::ExperimentType
ExperimentType
Definition:
EventAuxiliary.h:15
art::EventAuxiliary::eventID
EventID const & eventID() const noexcept
Definition:
EventAuxiliary.cc:39
art::SubRunID
Definition:
SubRunID.h:19
art::EventAuxiliary::event
EventNumber_t event() const noexcept
Definition:
EventAuxiliary.cc:69
art::EventAuxiliary::subRunID
SubRunID const & subRunID() const noexcept
Definition:
EventAuxiliary.cc:51
art::EventAuxiliary::operator==
bool operator==(EventAuxiliary const &other) const noexcept
Definition:
EventAuxiliary.cc:87
std
STL namespace.
art::EventID::run
RunNumber_t run() const
Definition:
EventID.h:98
art::EventAuxiliary::time_
Timestamp time_
Definition:
EventAuxiliary.h:52
art::Timestamp
Definition:
Timestamp.h:10
art::EventAuxiliary::experimentType
EventAuxiliary::ExperimentType experimentType() const noexcept
Definition:
EventAuxiliary.cc:81
art::EventAuxiliary::run
RunNumber_t run() const noexcept
Definition:
EventAuxiliary.cc:57
art::operator<<
std::ostream & operator<<(std::ostream &os, const GroupSelector &gs)
Definition:
GroupSelector.cc:62
art::EventAuxiliary::write
void write(std::ostream &os) const
Definition:
EventAuxiliary.cc:95
art::EventAuxiliary::isRealData_
bool isRealData_
Definition:
EventAuxiliary.h:53
art::EventAuxiliary::operator=
EventAuxiliary & operator=(EventAuxiliary const &)
art::EventAuxiliary
Definition:
EventAuxiliary.h:12
art::SubRunNumber_t
IDNumber_t< Level::SubRun > SubRunNumber_t
Definition:
IDNumber.h:119
fhicl::other
Definition:
exception.h:26
test.p
p
Definition:
test.py:223
art::EventAuxiliary::id_
EventID id_
Definition:
EventAuxiliary.h:51
art::RunID
Definition:
RunID.h:21
art::EventAuxiliary::runID
RunID const & runID() const noexcept
Definition:
EventAuxiliary.cc:45
EventAuxiliary.h
art::EventNumber_t
IDNumber_t< Level::Event > EventNumber_t
Definition:
IDNumber.h:118
art::EventAuxiliary::experimentType_
ExperimentType experimentType_
Definition:
EventAuxiliary.h:54
art
Definition:
BasicOptionsHandler.h:9
art::EventID::event
EventNumber_t event() const
Definition:
EventID.h:116
art::EventAuxiliary::isRealData
bool isRealData() const noexcept
Definition:
EventAuxiliary.cc:75
art::EventID
Definition:
EventID.h:20
art::EventID::subRun
SubRunNumber_t subRun() const
Definition:
EventID.h:110
art::EventAuxiliary::id
EventID const & id() const noexcept
Definition:
EventAuxiliary.cc:33
art::EventAuxiliary::time
Timestamp const & time() const noexcept
Definition:
EventAuxiliary.cc:27
endl
QTextStream & endl(QTextStream &s)
Definition:
qtextstream.cpp:2030
art::RunNumber_t
IDNumber_t< Level::Run > RunNumber_t
Definition:
IDNumber.h:120
Generated by
1.8.11