DataFormats
Provenance
src
RunAuxiliary.cc
Go to the documentation of this file.
1
#include "
DataFormats/Provenance/interface/RunAuxiliary.h
"
2
#include <cassert>
3
#include <ostream>
4
5
/*----------------------------------------------------------------------
6
7
----------------------------------------------------------------------*/
8
9
namespace
edm
{
10
void
RunAuxiliary::write
(std::ostream& os)
const
{
11
os <<
"Process History ID = "
<<
processHistoryID_
<< std::endl;
12
os <<
id_
<< std::endl;
13
}
14
15
void
RunAuxiliary::mergeAuxiliary
(
RunAuxiliary
const
& newAux) {
16
assert
(
id_
== newAux.
id_
);
17
mergeNewTimestampsIntoThis_
(newAux);
18
}
19
20
void
RunAuxiliary::mergeNewTimestampsIntoThis_
(
RunAuxiliary
const
& newAux) {
21
if
(
beginTime_
==
Timestamp::invalidTimestamp
() || newAux.
beginTime
() ==
Timestamp::invalidTimestamp
()) {
22
beginTime_
=
Timestamp::invalidTimestamp
();
23
}
else
if
(newAux.
beginTime
() <
beginTime_
) {
24
beginTime_
= newAux.
beginTime
();
25
}
26
27
if
(
endTime_
==
Timestamp::invalidTimestamp
() || newAux.
endTime
() ==
Timestamp::invalidTimestamp
()) {
28
endTime_
=
Timestamp::invalidTimestamp
();
29
}
else
if
(newAux.
endTime
() >
endTime_
) {
30
endTime_
= newAux.
endTime
();
31
}
32
}
33
}
// namespace edm
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::RunAuxiliary::endTime_
Timestamp endTime_
Definition:
RunAuxiliary.h:52
cms::cuda::assert
assert(be >=bs)
edm::RunAuxiliary::mergeAuxiliary
void mergeAuxiliary(RunAuxiliary const &aux)
Definition:
RunAuxiliary.cc:15
edm::RunAuxiliary::beginTime
Timestamp const & beginTime() const
Definition:
RunAuxiliary.h:29
edm::RunAuxiliary::endTime
Timestamp const & endTime() const
Definition:
RunAuxiliary.h:30
edm::RunAuxiliary::write
void write(std::ostream &os) const
Definition:
RunAuxiliary.cc:10
edm::RunAuxiliary::mergeNewTimestampsIntoThis_
void mergeNewTimestampsIntoThis_(RunAuxiliary const &newAux)
Definition:
RunAuxiliary.cc:20
edm::RunAuxiliary::id_
RunID id_
Definition:
RunAuxiliary.h:49
edm::Timestamp::invalidTimestamp
static Timestamp invalidTimestamp()
Definition:
Timestamp.h:82
edm::RunAuxiliary::processHistoryID_
ProcessHistoryID processHistoryID_
Definition:
RunAuxiliary.h:46
RunAuxiliary.h
edm::RunAuxiliary::beginTime_
Timestamp beginTime_
Definition:
RunAuxiliary.h:51
edm::RunAuxiliary
Definition:
RunAuxiliary.h:15
Generated for CMSSW Reference Manual by
1.8.16