5#ifndef CALOEVENT_CALOCLUSTERMOMENTSTORE_H
6#define CALOEVENT_CALOCLUSTERMOMENTSTORE_H
47# define ATH_CLING_BODY(BODY) ;
49# define ATH_CLING_BODY(BODY) __attribute__((used)) BODY
120 const CaloClusterMoment&
operator*()
const {
return this->getMoment(); }
123 const CaloClusterMoment& getMoment() const
216 (*(
m_store.insert(moment_store::value_type((
moment_key)rMomType,rMomData))).first).second = rMomData;
261 m_store = std::move(rMomStore);
#define ATH_CLING_BODY(BODY)
Internally used iterator.
bool operator==(const CaloClusterMomentIterator &anOtherIter) const bool operator
Equality comparator.
CaloClusterMomentIterator() ATH_CLING_BODY(
Default constructor.
CaloClusterMomentIterator prev() CaloClusterMomentIterator operator--()
Iterator reverse method.
CaloClusterMomentIterator next() CaloClusterMomentIterator operator++()
Iterator advance method.
CaloClusterMomentIterator operator--(int)
Iterator prior reverse operator.
CaloClusterMomentIterator(moment_store_const_iter iStore) ~CaloClusterMomentIterator() ATH_CLING_BODY(
Useful constructor.
CaloClusterMomentIterator operator++(int)
Iterator prior advance operator.
std::vector< moment_type > moment_type_list
List of moment types.
moment_store::iterator moment_store_iter
Internal moment store iterator type.
moment_store::const_iterator moment_store_const_iter
Internal moment store const iterator type.
virtual ~CaloClusterMomentStore()
Default destructor.
virtual moment_iterator end() const
iterator loop terminator
CaloClusterMomentIterator moment_iterator
External moment iterator type.
CaloClusterMomentStore & operator=(const CaloClusterMomentStore &rMomStore)
Assignment.
virtual void setMomentStore(const moment_store &rMomStore)
Set internal store.
virtual void insert(const moment_type &rMomType, const moment_value &rMomData)
Insert key/data pair.
CaloClusterMoment::MomentType moment_type
Moment type.
std::map< moment_key, moment_value > moment_store
Internal moment store type.
virtual const moment_store & momentStore() const
Access to internal store.
int moment_key
Moment key type.
virtual bool retrieveMomentTypes(moment_type_list &rMomTypeList) const
Retrieve list of moment types in store.
CaloClusterMomentStore()
Default constructor.
virtual bool retrieve(const moment_type &rMomType, moment_value &rMomData) const
Retrieve cluster moment for a given key.
CaloClusterMoment moment_value
Moment data.
virtual moment_iterator find(const moment_type &rMomType) const
}
size_t size() const
Number of stored moments.
virtual bool contains(const moment_type &rMomType) const
Containment check.
virtual moment_iterator begin() const
{
defines enums and data types for different moments of CaloCluster
MomentType
enums to identify different moments