Pandora
Pandora source code navigator
|
Calo hit lists arranged by pseudo layer. More...
#include "OrderedCaloHitList.h"
Public Types | |
typedef std::map< unsigned int, CaloHitList * > | TheList |
typedef TheList::value_type | value_type |
typedef TheList::const_iterator | const_iterator |
typedef TheList::const_reverse_iterator | const_reverse_iterator |
Public Member Functions | |
OrderedCaloHitList () | |
Default constructor. | |
OrderedCaloHitList (const OrderedCaloHitList &rhs) | |
Copy constructor. | |
~OrderedCaloHitList () | |
Destructor. | |
StatusCode | Add (const OrderedCaloHitList &rhs) |
Add the hits from a second ordered calo hit list to this list. | |
StatusCode | Remove (const OrderedCaloHitList &rhs) |
Remove the hits in a second ordered calo hit list from this list. | |
StatusCode | Add (const CaloHitList &caloHitList) |
Add a list of calo hits to the ordered calo hit list. | |
StatusCode | Remove (const CaloHitList &caloHitList) |
Remove a list of calo hits from the ordered calo hit list. | |
StatusCode | Add (const CaloHit *const pCaloHit) |
Add a calo hit to the ordered calo hit list. | |
StatusCode | Remove (const CaloHit *const pCaloHit) |
Remove a calo hit from the ordered calo hit list. | |
StatusCode | GetCaloHitsInPseudoLayer (const unsigned int pseudoLayer, CaloHitList *&pCaloHitList) const |
Get calo hits in specified pseudo layer. | |
unsigned int | GetNCaloHitsInPseudoLayer (const unsigned int pseudoLayer) const |
Get the number of calo hits in a specified pseudo layer. | |
void | Reset () |
Reset the ordered calo hit list, emptying its contents. | |
void | FillCaloHitList (CaloHitList &caloHitList) const |
Fill a provided calo hit list with all the calo hits in the ordered calo hit list. | |
const_iterator | begin () const |
Returns a const iterator referring to the first element in the ordered calo hit list. | |
const_iterator | end () const |
Returns a const iterator referring to the past-the-end element in the ordered calo hit list. | |
const_reverse_iterator | rbegin () const |
Returns a const reverse iterator referring to the first element in the ordered calo hit list. | |
const_reverse_iterator | rend () const |
Returns a const reverse iterator referring to the past-the-end element in the ordered calo hit list. | |
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, otherwise it returns an iterator to the past-the-end element. | |
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) | |
bool | operator= (const OrderedCaloHitList &rhs) |
Assignment operator. | |
Private Member Functions | |
void | clear () |
Clear the ordered calo hit list. | |
StatusCode | Add (const CaloHit *const pCaloHit, const unsigned int pseudoLayer) |
Add a calo hit to a specified pseudo layer. | |
StatusCode | Remove (const CaloHit *const pCaloHit, const unsigned int pseudoLayer) |
Remove a calo hit from a specified pseudo layer. | |
Private Attributes | |
TheList | m_theList |
The ordered calo hit list. | |
Calo hit lists arranged by pseudo layer.
Definition at line 24 of file OrderedCaloHitList.h.
typedef TheList::const_iterator pandora::OrderedCaloHitList::const_iterator |
Definition at line 29 of file OrderedCaloHitList.h.
typedef TheList::const_reverse_iterator pandora::OrderedCaloHitList::const_reverse_iterator |
Definition at line 30 of file OrderedCaloHitList.h.
typedef std::map<unsigned int, CaloHitList *> pandora::OrderedCaloHitList::TheList |
Definition at line 27 of file OrderedCaloHitList.h.
typedef TheList::value_type pandora::OrderedCaloHitList::value_type |
Definition at line 28 of file OrderedCaloHitList.h.
pandora::OrderedCaloHitList::OrderedCaloHitList | ( | ) |
Default constructor.
Definition at line 17 of file OrderedCaloHitList.cc.
pandora::OrderedCaloHitList::OrderedCaloHitList | ( | const OrderedCaloHitList & | rhs | ) |
Copy constructor.
rhs | the ordered calo hit list to copy |
Definition at line 23 of file OrderedCaloHitList.cc.
pandora::OrderedCaloHitList::~OrderedCaloHitList | ( | ) |
Destructor.
Definition at line 30 of file OrderedCaloHitList.cc.
|
inline |
Add a calo hit to the ordered calo hit list.
pCaloHit | the address of the calo hit |
Definition at line 238 of file OrderedCaloHitList.h.
|
private |
Add a calo hit to a specified pseudo layer.
pCaloHit | the address of the calo hit |
pseudoLayer | the pesudo layer |
Definition at line 154 of file OrderedCaloHitList.cc.
StatusCode pandora::OrderedCaloHitList::Add | ( | const CaloHitList & | caloHitList | ) |
Add a list of calo hits to the ordered calo hit list.
caloHitList | the calo hit list |
Definition at line 68 of file OrderedCaloHitList.cc.
StatusCode pandora::OrderedCaloHitList::Add | ( | const OrderedCaloHitList & | rhs | ) |
Add the hits from a second ordered calo hit list to this list.
rhs | the source ordered calo hit list |
Definition at line 38 of file OrderedCaloHitList.cc.
|
inline |
Returns a const iterator referring to the first element in the ordered calo hit list.
Definition at line 190 of file OrderedCaloHitList.h.
|
inlineprivate |
Clear the ordered calo hit list.
Definition at line 252 of file OrderedCaloHitList.h.
|
inline |
Returns whether the map container is empty (i.e. whether its size is 0)
Definition at line 231 of file OrderedCaloHitList.h.
|
inline |
Returns a const iterator referring to the past-the-end element in the ordered calo hit list.
Definition at line 197 of file OrderedCaloHitList.h.
void pandora::OrderedCaloHitList::FillCaloHitList | ( | CaloHitList & | caloHitList | ) | const |
Fill a provided calo hit list with all the calo hits in the ordered calo hit list.
caloHitList | to receive the list of calo hits |
Definition at line 131 of file OrderedCaloHitList.cc.
|
inline |
Searches the container for an element with specified layer and returns an iterator to it if found, otherwise it returns an iterator to the past-the-end element.
Definition at line 204 of file OrderedCaloHitList.h.
StatusCode pandora::OrderedCaloHitList::GetCaloHitsInPseudoLayer | ( | const unsigned int | pseudoLayer, |
CaloHitList *& | pCaloHitList | ||
) | const |
Get calo hits in specified pseudo layer.
pseudoLayer | the pseudo layer |
pCaloHitList | to receive the address of the relevant calo hit list |
Definition at line 92 of file OrderedCaloHitList.cc.
unsigned int pandora::OrderedCaloHitList::GetNCaloHitsInPseudoLayer | ( | const unsigned int | pseudoLayer | ) | const |
Get the number of calo hits in a specified pseudo layer.
pseudoLayer | the pseudo layer |
Definition at line 106 of file OrderedCaloHitList.cc.
bool pandora::OrderedCaloHitList::operator= | ( | const OrderedCaloHitList & | rhs | ) |
Assignment operator.
rhs | the ordered calo hit list to assign |
Definition at line 141 of file OrderedCaloHitList.cc.
|
inline |
Returns a const reverse iterator referring to the first element in the ordered calo hit list.
Definition at line 211 of file OrderedCaloHitList.h.
|
inline |
Remove a calo hit from the ordered calo hit list.
pCaloHit | the address of the calo hit |
Definition at line 245 of file OrderedCaloHitList.h.
|
private |
Remove a calo hit from a specified pseudo layer.
pCaloHit | the address of the calo hit |
pseudoLayer | the pesudo layer |
Definition at line 182 of file OrderedCaloHitList.cc.
StatusCode pandora::OrderedCaloHitList::Remove | ( | const CaloHitList & | caloHitList | ) |
Remove a list of calo hits from the ordered calo hit list.
caloHitList | the calo hit list |
Definition at line 80 of file OrderedCaloHitList.cc.
StatusCode pandora::OrderedCaloHitList::Remove | ( | const OrderedCaloHitList & | rhs | ) |
Remove the hits in a second ordered calo hit list from this list.
rhs | the source ordered calo hit list |
Definition at line 53 of file OrderedCaloHitList.cc.
|
inline |
Returns a const reverse iterator referring to the past-the-end element in the ordered calo hit list.
Definition at line 218 of file OrderedCaloHitList.h.
void pandora::OrderedCaloHitList::Reset | ( | ) |
Reset the ordered calo hit list, emptying its contents.
Definition at line 118 of file OrderedCaloHitList.cc.
|
inline |
Returns the number of elements in the container.
Definition at line 224 of file OrderedCaloHitList.h.
|
private |
The ordered calo hit list.
Definition at line 185 of file OrderedCaloHitList.h.