2 Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
5 // implementation of TileRawDataCollection
13 template <typename TELEMENT>
14 void TileRawDataCollection<TELEMENT>::setTT(const TT_ID& id,
15 TCollection_const_iterator b, TCollection_const_iterator e)
17 m_Map[id] = ITPAIR(b,e);
21 template <typename TELEMENT>
22 void TileRawDataCollection<TELEMENT>::getTT(const TT_ID& id,
23 TCollection_const_iterator& b, TCollection_const_iterator& e) const
25 ID_IT_MAP_ITER itPair = m_Map.find(id);
27 if(itPair!=m_Map.end()){
28 // get the begin and end iterator
29 b = (*itPair).second.first;
30 e = (*itPair).second.second;
34 // can't find it, return end() ;
43 template <typename TELEMENT>
44 void TileRawDataCollection<TELEMENT>::clear()
51 DataVector<TELEMENT>::clear();
54 template <typename TELEMENT>
55 void TileRawDataCollection<TELEMENT>::print() const
57 std::cout << (std::string) (*this) << std::endl;
60 template <typename TELEMENT>
61 TileRawDataCollection<TELEMENT>::operator std::string() const
63 std::ostringstream text(std::ostringstream::out);
66 text << " Id = 0x" << std::hex << identify();
67 text << " size = " << std::dec << this->size() << std::endl;
69 std::string result(text.str());
70 std::string newline("\n");
72 TCollection_const_iterator it1 = this->begin();
73 TCollection_const_iterator it2 = this->end();
75 const TELEMENT * elem;
79 result += (std::string)(*elem) + newline;