ATLAS Offline Software
AFP_RawCollection.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef AFP_RAWCOLLECTION_H
6 #define AFP_RAWCOLLECTION_H
7 
9 #include <list>
10 
12 template <typename RAWDATA_T>
14 {
15 public:
17  const std::list<RAWDATA_T>& dataRecords() const {return m_dataRecords;}
18 
20  typename std::list<RAWDATA_T>::iterator begin() {return m_dataRecords.begin();}
22 
24  RAWDATA_T& newDataRecord () {m_dataRecords.emplace_back(); return m_dataRecords.back();}
25 
26 private:
28  std::list<RAWDATA_T> m_dataRecords;
29 };
30 
31 #endif
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
AFP_RawCollection::end
std::list< RAWDATA_T >::iterator end()
Definition: AFP_RawCollection.h:21
AFP_RawCollectionHead
Class represnting header record in bytestream.
Definition: AFP_RawCollectionHead.h:15
AFP_RawCollection::newDataRecord
RAWDATA_T & newDataRecord()
Creates a new empty data record in the collection and returns reference to it.
Definition: AFP_RawCollection.h:24
AFP_RawCollectionHead.h
AFP_RawCollection::begin
std::list< RAWDATA_T >::iterator begin()
Returns iterators to the beginning and end of the list.
Definition: AFP_RawCollection.h:20
AFP_RawCollection::dataRecords
const std::list< RAWDATA_T > & dataRecords() const
Definition: AFP_RawCollection.h:17
AFP_RawCollection
Class representing collection of silicon detector data.
Definition: AFP_RawCollection.h:14
AFP_RawCollection::m_dataRecords
std::list< RAWDATA_T > m_dataRecords
List of silicon detector data records.
Definition: AFP_RawCollection.h:28