ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
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
}
LArCellCollection.h
LArCell.h
DataVector< LArCell >::const_iterator
DataModel_detail::const_iterator< DataVector > const_iterator
Definition
DataVector.h:838
DataVector< LArCell >::end
const_iterator end() const noexcept
LArCellCollection::TT_ID
unsigned int TT_ID
Definition
LArCellCollection.h:34
LArCellCollection::ITPAIR
std::pair< const_iterator, const_iterator > ITPAIR
iterator pair for begin and end
Definition
LArCellCollection.h:68
LArCellCollection::getTT
void getTT(const TT_ID &id, const_iterator &b, const_iterator &e) const
get the TriggerTower
Definition
LArCellCollection.cxx:19
LArCellCollection::setTT
void setTT(const TT_ID &id, const_iterator b, const_iterator e)
set the TriggerTower
Definition
LArCellCollection.cxx:11
LArCellCollection::m_Map
ID_IT_MAP m_Map
ID to Iterator Map.
Definition
LArCellCollection.h:76
Generated on
for ATLAS Offline Software by
1.17.0