ATLAS Offline Software
Loading...
Searching...
No Matches
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
12template <typename RAWDATA_T>
14{
15public:
17 const std::list<RAWDATA_T>& dataRecords() const {return m_dataRecords;}
18
20 typename std::list<RAWDATA_T>::iterator begin() {return m_dataRecords.begin();}
21 typename std::list<RAWDATA_T>::iterator end() {return m_dataRecords.end();}
22
24 RAWDATA_T& newDataRecord () {m_dataRecords.emplace_back(); return m_dataRecords.back();}
25
26private:
28 std::list<RAWDATA_T> m_dataRecords;
29};
30
31#endif
Class represnting header record in bytestream.
Class representing collection of silicon detector data.
std::list< RAWDATA_T >::iterator begin()
Returns iterators to the beginning and end of the list.
const std::list< RAWDATA_T > & dataRecords() const
RAWDATA_T & newDataRecord()
Creates a new empty data record in the collection and returns reference to it.
std::list< RAWDATA_T >::iterator end()
std::list< AFP_SiRawData > m_dataRecords