ATLAS Offline Software
LArCalorimeter
LArRecEvent
src
LArCellCollection.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
// implementation of LArRawChannelCollection
6
7
#include "
LArRecEvent/LArCellCollection.h
"
8
#include "
LArRecEvent/LArCell.h
"
9
10
//
11
void
LArCellCollection::setTT
(
const
TT_ID
&
id
,
12
const_iterator
b
,
const_iterator
e
)
13
{
14
m_Map
[
id
] =
ITPAIR
(
b
,
e
);
15
return ;
16
17
}
18
19
void
LArCellCollection::getTT
(
const
TT_ID
&
id
,
20
const_iterator
&
b
,
const_iterator
&
e
)
const
21
{
22
23
ID_IT_MAP::const_iterator itPair =
m_Map
.find(
id
);
24
if
(itPair!=
m_Map
.end()){
25
// get the begin and end iterator
26
b
= (*itPair).second.first;
27
e
= (*itPair).second.second;
28
return
;
29
}
30
31
// can't find it, return end() ;
32
33
b
=
end
();
34
e
=
end
();
35
36
return ;
37
}
AllowedVariables::e
e
Definition:
AsgElectronSelectorTool.cxx:37
DataModel_detail::const_iterator
Const iterator class for DataVector/DataList.
Definition:
DVLIterator.h:82
LArCellCollection::setTT
void setTT(const TT_ID &id, const_iterator b, const_iterator e)
set the TriggerTower
Definition:
LArCellCollection.cxx:11
LArCellCollection::TT_ID
unsigned int TT_ID
Definition:
LArCellCollection.h:34
LArCellCollection::getTT
void getTT(const TT_ID &id, const_iterator &b, const_iterator &e) const
get the TriggerTower
Definition:
LArCellCollection.cxx:19
id
SG::auxid_t id
Definition:
Control/AthContainers/Root/debug.cxx:220
LArCellCollection::m_Map
ID_IT_MAP m_Map
ID to Iterator Map.
Definition:
LArCellCollection.h:76
plotBeamSpotMon.b
b
Definition:
plotBeamSpotMon.py:77
LArCell.h
DataVector< LArCell >::end
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
LArCellCollection.h
LArCellCollection::ITPAIR
std::pair< const_iterator, const_iterator > ITPAIR
iterator pair for begin and end
Definition:
LArCellCollection.h:68
Generated on Thu Nov 7 2024 21:19:21 for ATLAS Offline Software by
1.8.18