ATLAS Offline Software
Event
xAOD
xAODLuminosity
Root
LumiBlockRange_v1.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// $Id: LumiBlockRange_v1.cxx 647501 2015-02-17 14:22:33Z krasznaa $
6
7
// xAOD include(s):
8
#include "
xAODCore/AuxStoreAccessorMacros.h
"
9
10
// Local include(s):
11
#include "
xAODLuminosity/versions/LumiBlockRange_v1.h
"
12
13
namespace
xAOD
{
14
15
LumiBlockRange_v1::LumiBlockRange_v1
()
16
:
SG
::AuxElement() {
17
18
}
19
20
LumiBlockRange_v1::LumiBlockRange_v1
(
const
LumiBlockRange_v1
&
parent
)
21
:
SG
::AuxElement(
parent
) {
22
23
// Create a private store with the parent's payload:
24
makePrivateStore
(
parent
);
25
}
26
27
LumiBlockRange_v1
&
28
LumiBlockRange_v1::operator=
(
const
LumiBlockRange_v1
& rhs ) {
29
30
// Protect against self-assignment:
31
if
(
this
== &rhs ) {
32
return
*
this
;
33
}
34
35
// If the object is not part of a container, and it doesn't have a private
36
// store, then let's make one now. Otherwise the code would throw an
37
// exception at this point.
38
if
( ( !
container
() ) && ( !
hasStore
() ) ) {
39
makePrivateStore
( rhs );
40
return
*
this
;
41
}
42
43
// If it is connected to some store already, then let's use the assignment
44
// operator of the base class to do the heavy lifting:
45
SG::AuxElement::operator=
( rhs );
46
47
// Return this object:
48
return
*
this
;
49
}
50
52
//
53
// Implementation for the start time functions
54
55
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
LumiBlockRange_v1
,
uint32_t
,
56
startRunNumber, setStartRunNumber )
57
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
LumiBlockRange_v1
,
uint32_t
,
58
startLumiBlockNumber
,
59
setStartLumiBlockNumber )
60
61
//
63
65
//
66
// Implementation for the stop time functions
67
68
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
LumiBlockRange_v1
,
uint32_t
,
69
stopRunNumber, setStopRunNumber )
70
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
LumiBlockRange_v1
,
uint32_t
,
71
stopLumiBlockNumber
,
72
setStopLumiBlockNumber )
73
74
//
76
78
//
79
// Implementation for the event number accessors
80
81
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
LumiBlockRange_v1
,
uint32_t
,
82
eventsExpected, setEventsExpected )
83
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
LumiBlockRange_v1
,
uint32_t
,
84
eventsSeen
, setEventsSeen )
85
86
//
88
89
}
// namespace xAOD
xAOD::AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1, float, IP2D_pb, setIP2D_pb) AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1
SG
Forward declaration.
Definition:
CaloCellPacker_400_500.h:32
xAOD::startLumiBlockNumber
startLumiBlockNumber
Definition:
LumiBlockRange_v1.cxx:58
AuxStoreAccessorMacros.h
xAOD::uint32_t
setEventNumber uint32_t
Definition:
EventInfo_v1.cxx:127
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition:
ICaloAffectedTool.h:24
xAOD::LumiBlockRange_v1::operator=
LumiBlockRange_v1 & operator=(const LumiBlockRange_v1 &rhs)
Assignment operator.
Definition:
LumiBlockRange_v1.cxx:28
xAOD::eventsSeen
setStartLumiBlockNumber setStopLumiBlockNumber eventsSeen
Definition:
LumiBlockRange_v1.cxx:84
xAOD::LumiBlockRange_v1::LumiBlockRange_v1
LumiBlockRange_v1()
Default constructor.
Definition:
LumiBlockRange_v1.cxx:15
xAOD::stopLumiBlockNumber
setStartLumiBlockNumber stopLumiBlockNumber
Definition:
LumiBlockRange_v1.cxx:71
test_pyathena.parent
parent
Definition:
test_pyathena.py:15
SG::AuxElement::makePrivateStore
void makePrivateStore()
Create a new (empty) private store for this object.
Definition:
AuxElement.cxx:192
SG::AuxElement::operator=
AuxElement & operator=(const AuxElement &other)
Assignment.
SG::AuxElement::hasStore
bool hasStore() const
Return true if this object has an associated store.
Definition:
AuxElement.cxx:398
xAOD::LumiBlockRange_v1
Class describing a luminosity block range.
Definition:
LumiBlockRange_v1.h:33
LumiBlockRange_v1.h
SG::AuxElement::container
const SG::AuxVectorData * container() const
Return the container holding this element.
Generated on Mon Dec 23 2024 21:14:02 for ATLAS Offline Software by
1.8.18