12#ifndef AtlasHitsVector_H
13#define AtlasHitsVector_H
24#include "GaudiKernel/ISvcLocator.h"
26#include "GaudiKernel/MsgStream.h"
27#include "GaudiKernel/IMessageSvc.h"
37 typedef std::vector<T>
CONT;
54 AtlasHitsVector(
const std::string& collectionName=
"DefaultCollectionName",
const unsigned int mySize=100)
57 MsgStream log(msgSvc,
"AtlasHitsVector");
58 log << MSG::DEBUG <<
" initialized AtlasHitVector " << collectionName <<
endmsg;
82 m_hitvector.emplace_back( std::forward<Args>(args)... );
99 while (i != e) {
m_hitvector.push_back( T( (**i) ) ); ++i;}
117 while (i != e) {
m_hitvector.push_back( T( (**i) ) ); ++i;}
146 T
At(
unsigned int pos)
const {
172 static const std::type_info*
const s_info;
void dvl_makecontainer(size_t nreserve, AtlasHitsVector< T > *&cont)
Construct a new container.
Holder to implement conversion copies for DataVector/DataList.
Header file for AthHistogramAlgorithm.
boost::transform_iterator< make_const, typename CONT::const_iterator > const_iterator
const_iterator end() const
const_iterator begin() const
std::vector< AFP_SiDigi > m_hitvector
AtlasHitsVector(const AthenaHitsVector< T > &rhs)
CONT::const_pointer const_pointer
std::vector< AFP_SiDigi > CONT
const T operator[](size_type n) const
AtlasHitsVector(const std::string &collectionName="DefaultCollectionName", const unsigned int mySize=100)
AtlasHitsVector(AtlasHitsVector< T > &&rhs) noexcept=default
CONT::value_type value_type
CONT::const_iterator const_iterator
void push_back(const T &t)
CONT::difference_type difference_type
AtlasHitsVector< T > & operator=(const AthenaHitsVector< T > &rhs)
assignment deletes old elements and deep copies the new ones
CONT::size_type size_type
CONT::const_reference const_reference
~AtlasHitsVector() override=default
void setName(const std::string &name)
const_iterator begin() const
AtlasHitsVector< T > & operator=(AtlasHitsVector< T > &&rhs) noexcept=default
AtlasHitsVector(const AtlasHitsVector< T > &rhs)
CONT::reference reference
static const std::type_info *const s_info
void Emplace(Args &&... args)
void reserve(size_type n)
AFP_SiDigi base_value_type
const_iterator end() const
const std::string & Name() const
AtlasHitsVector< T > & operator=(const AtlasHitsVector< T > &rhs)
const std::vector< T > & getVector() const
T At(unsigned int pos) const
static const std::type_info * initHelper()
singleton-like access to IMessageSvc via open function and helper
IMessageSvc * getMessageSvc(bool quiet=false)