8#ifndef PANDORA_ORDERED_CALO_HIT_LIST_H
9#define PANDORA_ORDERED_CALO_HIT_LIST_H 1
27 typedef std::map<unsigned int, CaloHitList *>
TheList;
149 unsigned int size()
const;
Header file for the calo hit class.
Header file defining relevant internal typedefs, sort and string conversion functions.
Header file defining status codes and relevant preprocessor macros.
unsigned int GetPseudoLayer() const
Get pseudo layer for the calo hit.
Calo hit lists arranged by pseudo layer.
const_iterator end() const
Returns a const iterator referring to the past-the-end element in the ordered calo hit list.
void clear()
Clear the ordered calo hit list.
~OrderedCaloHitList()
Destructor.
const_iterator begin() const
Returns a const iterator referring to the first element in the ordered calo hit list.
OrderedCaloHitList()
Default constructor.
void Reset()
Reset the ordered calo hit list, emptying its contents.
TheList m_theList
The ordered calo hit list.
bool operator=(const OrderedCaloHitList &rhs)
Assignment operator.
StatusCode Remove(const OrderedCaloHitList &rhs)
Remove the hits in a second ordered calo hit list from this list.
std::map< unsigned int, CaloHitList * > TheList
unsigned int GetNCaloHitsInPseudoLayer(const unsigned int pseudoLayer) const
Get the number of calo hits in a specified pseudo layer.
TheList::const_iterator const_iterator
StatusCode GetCaloHitsInPseudoLayer(const unsigned int pseudoLayer, CaloHitList *&pCaloHitList) const
Get calo hits in specified pseudo layer.
const_reverse_iterator rbegin() const
Returns a const reverse iterator referring to the first element in the ordered calo hit list.
StatusCode Add(const OrderedCaloHitList &rhs)
Add the hits from a second ordered calo hit list to this list.
const_reverse_iterator rend() const
Returns a const reverse iterator referring to the past-the-end element in the ordered calo hit list.
TheList::const_reverse_iterator const_reverse_iterator
unsigned int size() const
Returns the number of elements in the container.
bool empty() const
Returns whether the map container is empty (i.e. whether its size is 0)
const_iterator find(const unsigned int index) const
Searches the container for an element with specified layer and returns an iterator to it if found,...
void FillCaloHitList(CaloHitList &caloHitList) const
Fill a provided calo hit list with all the calo hits in the ordered calo hit list.
TheList::value_type value_type
MANAGED_CONTAINER< const CaloHit * > CaloHitList
StatusCode
The StatusCode enum.