|
ATLAS Offline Software
|
Go to the documentation of this file.
11 #ifndef AthenaHitsVector_H
12 #define AthenaHitsVector_H
19 #include "boost/iterator/transform_iterator.hpp"
25 #include "GaudiKernel/IMessageSvc.h"
26 #include "GaudiKernel/ISvcLocator.h"
27 #include "GaudiKernel/MsgStream.h"
44 using CONT = std::vector<T*>;
58 boost::transform_iterator<make_const, typename CONT::const_iterator>;
70 MsgStream
log(
msgSvc,
"AthenaHitsVector");
195 static const std::type_info*
const s_info;
JetConstituentVector::iterator iterator
const std::string & Name() const
singleton-like access to IMessageSvc via open function and helper
void push_back(std::unique_ptr< T > t)
void dvl_makecontainer(size_t nreserve, AthenaHitsVector< T > *&cont)
Construct a new container.
Holder to implement conversion copies for DataVector/DataList.
const LArHit *const & const_reference
@ OWN_ELEMENTS
this data object owns its elements
typename CONT::pointer pointer
IMessageSvc * getMessageSvc(bool quiet=false)
const T * operator[](size_type n) const
std::vector< T * > m_hitvector
boost::transform_iterator< make_const, typename CONT::const_iterator > const_iterator
@ VIEW_ELEMENTS
this data object is a view, does not own its elmts
void reserve(size_type n)
void Clear(AthHitVec::OwnershipPolicy ownPolicy)
AthenaHitsVector< T > & operator=(const AthenaHitsVector< T > &rhs)
assignment deletes old elements and copies the new ones deep copy if AthHitVec::OWN_ELEMENTS shallow ...
AthenaHitsVector(const AthenaHitsVector< T > &rhs)
copy constructor makes deep copy of elements, as by default the container is AthHitVec::OWN_ELEMENTS
static const std::type_info *const s_info
msgSvc
Provide convenience handles for various services.
typename CONT::difference_type difference_type
static const std::type_info * initHelper()
const LArHit *const * const_pointer
const T * operator()(const T *x) const
const std::vector< T * > & getVector()
std::vector< LArHit * > CONT
void setName(const std::string &name)
Class to store hit energy and time in LAr cell from G4 simulation.
typename CONT::iterator iterator
void resize(size_type sz)
const_iterator end() const
typename CONT::size_type size_type
AthenaHitsVector(const std::string &collectionName="DefaultCollectionName", AthHitVec::OwnershipPolicy ownPolicy=AthHitVec::OWN_ELEMENTS)
const T * At(unsigned int pos) const
const_iterator begin() const
AthHitVec::OwnershipPolicy m_ownPolicy