ATLAS Offline Software
Loading...
Searching...
No Matches
PhaseIIInDetRawDataContainerMT.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3 */
4#ifndef PHASEII_RAWDATACONTAINERMT_H
5#define PHASEII_RAWDATACONTAINERMT_H
6
9
10namespace PhaseII {
19template <class T_RawDataContainer>
20class IndexedRangesMT : public PhaseII::IndexedRanges<T_RawDataContainer, std::atomic<PhaseII::DataRange> >
21{
22public:
23 typedef std::true_type thread_safe; // to allow usage with update handle
25
27 IndexedRangesMT(unsigned int n_ranges, unsigned int container_list_size) : BASE(n_ranges,container_list_size) {}
28
35 return m_containerListHelper.getNewContainer(this->m_containers);
36 }
37
38private:
40};
41
44template <typename T_RawDataContainerCollection, typename T_RawDataContainerPtr, typename T_RangeType, typename T_Coordinates>
45void addDataForModule(T_RawDataContainerCollection &rdo_container_collection,
47 T_Coordinates &&coordinates,
48 std::uint32_t data_word);
49
50}
52#endif
Helper class to keep track of a range of elements added to the end of a container.
DynamicContainerListHelper< PhaseII::PixelRawDataContainer > m_containerListHelper
IndexedRangesMT(unsigned int n_ranges, unsigned int container_list_size)
ContainerPtr getNewContainerPtr()
get an unused container to add new RDOs.
PhaseII::IndexedRanges< T_RawDataContainer, std::atomic< PhaseII::DataRange > > BASE
typename DynamicContainerListHelper< T_RawDataContainer >::ContainerPtr ContainerPtr
Helper class to associate ranges of elements in multiple containers to a contiguous index.
ContainerList< PhaseII::PixelRawDataContainer > m_containers
void addDataForModule(T_RawDataContainerCollection &rdo_container_collection, ContainerRangeGuard< T_RawDataContainerPtr, T_RangeType > &range_guard, T_Coordinates &&coordinates, std::uint32_t data_word)
convenience method to add data to an RDO container, add a new RDO container, copy the data added for ...
Helper which provides a pointer to a container and the index of the container in the container list.
Helper class which allows to dynamically grow the container list.