![]() |
AliPhysics
4ef2867 (4ef2867)
|
#include <AliEmcalIterableContainer.h>
Classes | |
class | iterator |
bidirectional stl iterator over the EMCAL iterable container More... | |
Public Types | |
typedef std::pair < AliTLorentzVector, T * > | momentum_object_pair |
Public Member Functions | |
AliEmcalIterableContainerT () | |
AliEmcalIterableContainerT (const AliEmcalContainer *cont, bool useAccept) | |
AliEmcalIterableContainerT (const AliEmcalIterableContainerT< T, STAR > &ref) | |
AliEmcalIterableContainerT & | operator= (const AliEmcalIterableContainerT< T, STAR > &ref) |
~AliEmcalIterableContainerT () | |
T * | operator[] (int index) const |
operator int () const | |
const AliEmcalContainer * | GetContainer () const |
int | GetEntries () const |
iterator | begin () const |
iterator | end () const |
iterator | rbegin () const |
iterator | rend () const |
Protected Member Functions | |
void | BuildAcceptIndices () |
Private Member Functions | |
int | GetInternalIndex (int index) const |
Private Attributes | |
const AliEmcalContainer * | fkContainer |
Container to be iterated over. More... | |
TArrayI | fAcceptIndices |
Array of accepted indices. More... | |
Bool_t | fUseAccepted |
Switch between accepted and all objects. More... | |
Friends | |
class | iterator |
Definition at line 95 of file AliEmcalIterableContainer.h.
typedef std::pair<AliTLorentzVector, T*> EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::momentum_object_pair |
Definition at line 97 of file AliEmcalIterableContainer.h.
EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::AliEmcalIterableContainerT | ( | ) |
Default (I/O) constructor
Definition at line 242 of file AliEmcalIterableContainer.h.
EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::AliEmcalIterableContainerT | ( | const AliEmcalContainer * | cont, |
bool | useAccept | ||
) |
Standard constructor, to be used by the users. Specifying the type of iteration (all vs. accepted). In case the iterator runs over accepted object, an index map is build inside the constructor.
[in] | cont | EMCAL container to iterate over |
[in] | useAccept | If true accepted objects are used in the iteration, otherwise all objects |
Definition at line 257 of file AliEmcalIterableContainer.h.
EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::AliEmcalIterableContainerT | ( | const AliEmcalIterableContainerT< T, STAR > & | ref | ) |
Copy constructor. Initializing all parameters from the reference. As the container is not owner over its input container only pointers are copied.
[in] | ref | Reference for the copy |
Definition at line 271 of file AliEmcalIterableContainer.h.
|
inline |
Destructor
Definition at line 166 of file AliEmcalIterableContainer.h.
|
inline |
Creating forward iterator at the beginning of the container (first entry).
Definition at line 189 of file AliEmcalIterableContainer.h.
Referenced by AliAnalysisTaskEmcalRun2QA::DoClusterLoop(), AliAnalysisTaskEmcalJetQA::DoClusterLoop(), AliAnalysisTaskEmcalJetQA::DoTrackLoop(), AliAnalysisTaskPWGJEQA::FillClusterHistograms(), AliAnalysisTaskEmcalVsPhos::FillClusterHistograms(), AliEmcalJetTask::FindJets(), AliAnalysisTaskEmcalVsPhos::IsCellRejected(), AliAnalysisTaskEmcalOccupancy::Run(), and EMCalTriggerPtAnalysis::AliAnalysisTaskTrackDensityData::Run().
|
protected |
Build list of accepted indices inside the container. For this all objects inside the container are checked for being accepted or not.
Definition at line 334 of file AliEmcalIterableContainer.h.
Referenced by EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::AliEmcalIterableContainerT().
|
inline |
Creating forward iterator behind the last entry of the container.
Definition at line 196 of file AliEmcalIterableContainer.h.
Referenced by AliAnalysisTaskEmcalRun2QA::DoClusterLoop(), AliAnalysisTaskEmcalJetQA::DoClusterLoop(), AliAnalysisTaskEmcalJetQA::DoTrackLoop(), AliAnalysisTaskPWGJEQA::FillClusterHistograms(), AliAnalysisTaskEmcalVsPhos::FillClusterHistograms(), AliEmcalJetTask::FindJets(), AliAnalysisTaskEmcalVsPhos::IsCellRejected(), AliAnalysisTaskEmcalOccupancy::Run(), and EMCalTriggerPtAnalysis::AliAnalysisTaskTrackDensityData::Run().
|
inline |
Access to underlying EMCAL container
Definition at line 180 of file AliEmcalIterableContainer.h.
int EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::GetEntries | ( | ) | const |
Return the number of objects to iterate over (depending on whether the iterator loops over all or only accepted objects)
Definition at line 301 of file AliEmcalIterableContainer.h.
Referenced by EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::end(), AliJetContainer::GetNAcceptedJets(), EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::operator int(), and EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::rbegin().
|
inlineprivate |
Definition at line 220 of file AliEmcalIterableContainer.h.
|
inline |
Integer conversion operator: Returning the size if the container (number of entries)
Definition at line 174 of file AliEmcalIterableContainer.h.
AliEmcalIterableContainerT< T, STAR > & EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::operator= | ( | const AliEmcalIterableContainerT< T, STAR > & | ref | ) |
Assignment operator. As the container is not owner over the input container only pointers are copied
[in] | ref | Reference for assignment |
Definition at line 286 of file AliEmcalIterableContainer.h.
T * EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::operator[] | ( | int | index | ) | const |
Array index operator. Returns object of the container at the position provided by the parameter index. The operator distinguishes between all and accepted objects:
[in] | index | Index of the object inside the container to access |
Definition at line 321 of file AliEmcalIterableContainer.h.
|
inline |
Creating backward iterator at the end of the container (last entry).
Definition at line 203 of file AliEmcalIterableContainer.h.
|
inline |
Creating backward iterator before the beginning of the container.
Definition at line 210 of file AliEmcalIterableContainer.h.
|
friend |
Definition at line 116 of file AliEmcalIterableContainer.h.
Referenced by EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::begin(), EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::end(), EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::rbegin(), and EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::rend().
|
private |
Array of accepted indices.
Definition at line 217 of file AliEmcalIterableContainer.h.
Referenced by EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::GetInternalIndex(), and EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::operator=().
|
private |
Container to be iterated over.
Definition at line 216 of file AliEmcalIterableContainer.h.
Referenced by EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::GetContainer(), and EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::operator=().
|
private |
Switch between accepted and all objects.
Definition at line 218 of file AliEmcalIterableContainer.h.
Referenced by EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::AliEmcalIterableContainerT(), EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::GetInternalIndex(), and EMCALIterableContainer::AliEmcalIterableContainerT< T, STAR >::operator=().