7 #include <TClonesArray.h>
10 #include "AliNamedArrayI.h"
21 fIsParticleLevel(kFALSE),
39 fIsParticleLevel(kFALSE),
57 const AliVVertex *vertex =
event->GetPrimaryVertex();
58 if (vertex) vertex->GetXYZ(
fVertex);
63 AliError(Form(
"%s: Could not retrieve array with name %s!", GetName(),
fClArrayName.Data()));
71 TString objname(
fClArray->GetClass()->GetName());
74 AliError(Form(
"%s: Objects of type %s in %s are not inherited from %s!",
87 if (lab < fLabelMap->GetSize()) {
91 AliDebug(3,Form(
"%s_AliEmcalContainer::GetIndexFromLabel - Label not found in the map, returning -1...",
fClArrayName.Data()));
96 AliDebug(3,Form(
"%s_AliEmcalContainer::GetIndexFromLabel - No index-label map found, returning label...",
fClArrayName.Data()));
108 while (rs >>= 1) { p++; }
Int_t GetIndexFromLabel(Int_t lab) const
UShort_t GetRejectionReasonBitPosition() const
virtual void SetArray(AliVEvent *event)
UInt_t fRejectionReason
event vertex array
AliNamedArrayI * fLabelMap
current ID for automatic loops
Double_t fVertex[3]
Label-Index map.
ClassImp(AliEmcalContainer) AliEmcalContainer