ATLAS Offline Software
Loading...
Searching...
No Matches
TileHitNonConstContainer Class Reference

This is a minimal version of a TileHitContainer in which the saved collections remain non-const. More...

#include <TileHitNonConstContainer.h>

Inheritance diagram for TileHitNonConstContainer:
Collaboration diagram for TileHitNonConstContainer:

Public Types

typedef TileHitCollection::TElement element_t
typedef std::vector< std::unique_ptr< TileHitCollection > >::iterator iterator

Public Member Functions

 TileRawDataNonConstContainer (SG::OwnershipPolicy ownPolicy)
void push_back (element_t *rc)
iterator begin ()
iterator end ()

Private Attributes

TileFragHash m_hashFunc
std::vector< std::unique_ptr< TileHitCollection > > m_colls

Detailed Description

This is a minimal version of a TileHitContainer in which the saved collections remain non-const.

This can be used as a temporary while building the container. Once everything's built, the collections can then be moved to the final TileHitContainer, after which they'll be const.

Definition at line 29 of file TileHitNonConstContainer.h.

Member Typedef Documentation

◆ element_t

◆ iterator

typedef std::vector<std::unique_ptr<TileHitCollection>>::iterator TileRawDataNonConstContainer< TileHitCollection >::iterator
inherited

Definition at line 42 of file TileRawDataNonConstContainer.h.

Member Function Documentation

◆ begin()

Definition at line 43 of file TileRawDataNonConstContainer.h.

43{ return m_colls.begin(); }
std::vector< std::unique_ptr< TileHitCollection > > m_colls

◆ end()

Definition at line 44 of file TileRawDataNonConstContainer.h.

44{ return m_colls.end(); }

◆ push_back()

void TileRawDataNonConstContainer< TileHitCollection >::push_back ( element_t * rc)
inherited

Definition at line 40 of file TileRawDataNonConstContainer.h.

69{
70 int frag = rc->frag_ID();
72 assert (fragHash < m_colls.size());
73 m_colls[fragHash]->push_back (rc);
74}
This is a minimal version of a TileRawDataContainer in which the saved collections remain non-const.

◆ TileRawDataNonConstContainer()

Definition at line 39 of file TileRawDataNonConstContainer.h.

55{
56 m_hashFunc.initialize(TileCablingService::getInstance()->getTileHWID(),
58 size_t ncoll = m_hashFunc.max();
59 m_colls.reserve (ncoll);
60 for (size_t i = 0; i < ncoll; i++) {
61 TileFragHash::ID frag = m_hashFunc.identifier(i);
62 m_colls.push_back (std::make_unique<COLLECTION> (frag, ownPolicy));
63 }
64}
static const TileCablingService * getInstance()
get pointer to service instance

Member Data Documentation

◆ m_colls

std::vector<std::unique_ptr<TileHitCollection> > TileRawDataNonConstContainer< TileHitCollection >::m_colls
privateinherited

Definition at line 49 of file TileRawDataNonConstContainer.h.

◆ m_hashFunc

Definition at line 48 of file TileRawDataNonConstContainer.h.


The documentation for this class was generated from the following file: