ATLAS Offline Software
Event
xAOD
xAODLuminosity
Root
SortLumiBlockRangeByStart.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// $Id: SortLumiBlockRangeByStart.cxx 647501 2015-02-17 14:22:33Z krasznaa $
6
7
// Local include(s):
8
#include "
xAODLuminosity/SortLumiBlockRangeByStart.h
"
9
10
namespace
xAOD
{
11
12
bool
SortLumiBlockRangeByStart::operator()
(
const
LumiBlockRange
& lbr1,
13
const
LumiBlockRange
& lbr2 ) {
14
15
if
( lbr1.
startRunNumber
() != lbr2.
startRunNumber
() ) {
16
return
lbr1.
startRunNumber
() < lbr2.
startRunNumber
();
17
}
else
{
18
return
lbr1.
startLumiBlockNumber
() < lbr2.
startLumiBlockNumber
();
19
}
20
}
21
22
bool
SortLumiBlockRangeByStart::operator()
(
const
LumiBlockRange
* lbr1,
23
const
LumiBlockRange
* lbr2 ) {
24
25
return
this->
operator()
( *lbr1, *lbr2 );
26
}
27
28
}
// namespace xAOD
xAOD::LumiBlockRange_v1::startLumiBlockNumber
uint32_t startLumiBlockNumber() const
Get the luminosity block of the start time of the range.
xAOD::SortLumiBlockRangeByStart::operator()
bool operator()(const LumiBlockRange &lbr1, const LumiBlockRange &lbr2)
Function ordering the xAOD::LumiBlockRange objects by starting time.
Definition:
SortLumiBlockRangeByStart.cxx:12
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition:
ICaloAffectedTool.h:24
xAOD::LumiBlockRange_v1::startRunNumber
uint32_t startRunNumber() const
Get the run number of the start time of the range.
SortLumiBlockRangeByStart.h
xAOD::LumiBlockRange_v1
Class describing a luminosity block range.
Definition:
LumiBlockRange_v1.h:33
Generated on Thu Nov 7 2024 21:26:24 for ATLAS Offline Software by
1.8.18