ATLAS Offline Software
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 
8 #include "LArRecEvent/LArCell.h"
9 
10 //
13 {
14  m_Map[id] = ITPAIR(b,e);
15  return ;
16 
17 }
18 
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 }
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:194
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.
DiTauMassTools::MaxHistStrategyV2::e
e
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:26
LArCellCollection.h
LArCellCollection::ITPAIR
std::pair< const_iterator, const_iterator > ITPAIR
iterator pair for begin and end
Definition: LArCellCollection.h:68