![]() |
AliPhysics
eff0747 (eff0747)
|
Base class for container structures within the EMCAL framework. More...
#include <AliEmcalContainer.h>
Public Types | |
enum | RejectionReason { kNullObject = 1<<0, kPtCut = 1<<1, kAcceptanceCut = 1<<2, kMCLabelCut = 1<<3, kBitMapCut = 1<<4, kHFCut = 1<<5, kNotHybridTrack = 1<<7, kMCFlag = 1<<8, kMCGeneratorCut = 1<<9, kChargeCut = 1<<10, kMinDistanceTPCSectorEdgeCut = 1<<11, kIsEMCalCut = 1<<13, kTimeCut = 1<<14, kEnergyCut = 1<<15, kExoticCut = 1<<16, kAreaCut = 1<<18, kAreaEmcCut = 1<<19, kZLeadingChCut = 1<<20, kZLeadingEmcCut = 1<<21, kNEFCut = 1<<22, kMinLeadPtCut = 1<<23, kMaxTrackPtCut = 1<<24, kMaxClusterPtCut = 1<<25, kFlavourCut = 1<<26, kTagStatus = 1<<27, kMinNConstituents = 1<<28 } |
Bit definition for the reason a particle was rejected. More... | |
Public Member Functions | |
AliEmcalContainer () | |
AliEmcalContainer (const char *name) | |
virtual | ~AliEmcalContainer () |
virtual Bool_t | ApplyKinematicCuts (const AliTLorentzVector &mom) |
TClonesArray * | GetArray () const |
const TString & | GetArrayName () const |
const TString & | GetClassName () const |
Double_t | GetMinE () const |
Double_t | GetMaxE () const |
Double_t | GetMinPt () const |
Double_t | GetMaxPt () const |
Double_t | GetMinEta () const |
Double_t | GetMaxEta () const |
Double_t | GetMinPhi () const |
Double_t | GetMaxPhi () const |
Int_t | GetCurrentID () const |
Bool_t | GetIsParticleLevel () const |
Int_t | GetIndexFromLabel (Int_t lab) const |
Int_t | GetNEntries () const |
virtual Bool_t | GetMomentum (TLorentzVector &mom, Int_t i)=0 |
virtual Bool_t | GetAcceptMomentum (TLorentzVector &mom, Int_t i)=0 |
virtual Bool_t | GetNextMomentum (TLorentzVector &mom)=0 |
virtual Bool_t | GetNextAcceptMomentum (TLorentzVector &mom)=0 |
virtual Bool_t | AcceptObject (Int_t i)=0 |
virtual Bool_t | AcceptObject (const TObject *obj)=0 |
void | ResetCurrentID (Int_t i=-1) |
virtual void | SetArray (AliVEvent *event) |
void | SetArrayName (const char *n) |
void | SetBitMap (UInt_t m) |
void | SetIsParticleLevel (Bool_t b) |
void | SortArray () |
UInt_t | GetRejectionReason () const |
UInt_t | TestRejectionReason (UInt_t rs) const |
UShort_t | GetRejectionReasonBitPosition () const |
TClass * | GetLoadedClass () |
virtual void | NextEvent () |
void | SetMinMCLabel (Int_t s) |
void | SetMaxMCLabel (Int_t s) |
void | SetMCLabelRange (Int_t min, Int_t max) |
void | SetELimits (Double_t min, Double_t max) |
void | SetMinE (Double_t min) |
void | SetMaxE (Double_t max) |
void | SetPtLimits (Double_t min, Double_t max) |
void | SetMinPt (Double_t min) |
void | SetMaxPt (Double_t max) |
void | SetEtaLimits (Double_t min, Double_t max) |
void | SetPhiLimits (Double_t min, Double_t max) |
void | SetMassHypothesis (Double_t m) |
const char * | GetName () const |
void | SetName (const char *n) |
Static Public Member Functions | |
static Bool_t | SamePart (const AliVParticle *part1, const AliVParticle *part2, Double_t dist=1.e-4) |
Protected Attributes | |
TString | fName |
TString | fClArrayName |
object name More... | |
TString | fClassName |
name of branch More... | |
Bool_t | fIsParticleLevel |
name of the class in the TClonesArray More... | |
UInt_t | fBitMap |
whether or not it is a particle level object collection More... | |
Double_t | fMinPt |
bitmap mask More... | |
Double_t | fMaxPt |
cut on particle pt More... | |
Double_t | fMaxE |
cut on particle pt More... | |
Double_t | fMinE |
cut on particle energy More... | |
Double_t | fMinEta |
cut on particle energy More... | |
Double_t | fMaxEta |
cut on particle eta More... | |
Double_t | fMinPhi |
cut on particle eta More... | |
Double_t | fMaxPhi |
cut on particle phi More... | |
Int_t | fMinMCLabel |
cut on particle phi More... | |
Int_t | fMaxMCLabel |
minimum MC label More... | |
Double_t | fMassHypothesis |
maximum MC label More... | |
TClonesArray * | fClArray |
if < 0 it will use a PID mass when available More... | |
Int_t | fCurrentID |
!current ID for automatic loops More... | |
AliNamedArrayI * | fLabelMap |
!Label-Index map More... | |
Double_t | fVertex [3] |
!event vertex array More... | |
UInt_t | fRejectionReason |
!reject reason bit map for the last call to an accept object function More... | |
TClass * | fLoadedClass |
!Class of teh objects contained in the TClonesArray More... | |
Private Member Functions | |
AliEmcalContainer (const AliEmcalContainer &obj) | |
AliEmcalContainer & | operator= (const AliEmcalContainer &other) |
Base class for container structures within the EMCAL framework.
This class is the base class for container object used in the EMCAL framework. The main purpose is to connect this to objects stored as list objects in the input event, among them particles, EMCAL clusters, or jets. The core of the container is a pointer to a TClonesArray representing the the content in the input event.
Containers can be connected. For example, jet containers need access to the track container and the cluster container in case constituent information is required.
In addition, kinematical cuts can be applied, accessing only content which is selected using the selection cuts to be applied.
The usage of EMCAL containers is described here: Using the EMCAL containers
Definition at line 34 of file AliEmcalContainer.h.
Bit definition for the reason a particle was rejected.
Definition at line 40 of file AliEmcalContainer.h.
AliEmcalContainer::AliEmcalContainer | ( | ) |
Default constructor. This constructor is only for ROOT I/O and not to be used by users. The container will not connect to an array in the input event.
Definition at line 33 of file AliEmcalContainer.cxx.
AliEmcalContainer::AliEmcalContainer | ( | const char * | name | ) |
Standard (named) constructor. The name provided must match the name of the array inside the list objects in the input event the EMCAL container connects to. The EMCAL container can get a different name, to be specified in the function SetEvent.
name | Name of the container in the input event. |
Definition at line 69 of file AliEmcalContainer.cxx.
|
inlinevirtual |
Definition at line 81 of file AliEmcalContainer.h.
|
private |
|
pure virtual |
Implemented in AliTrackContainer, AliClusterContainer, and AliParticleContainer.
|
pure virtual |
Implemented in AliTrackContainer, AliClusterContainer, and AliParticleContainer.
|
virtual |
Reimplemented in AliParticleContainer.
Referenced by AliClusterContainer::AcceptCluster(), and AliParticleContainer::ApplyKinematicCuts().
|
pure virtual |
Implemented in AliTrackContainer, AliClusterContainer, and AliParticleContainer.
|
inline |
Definition at line 84 of file AliEmcalContainer.h.
Referenced by ClassImp(), EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::ClusterInJet(), AliAnalysisTaskEmcalSample::ExecOnce(), AliAnalysisTaskEmcal::GetClusterArray(), AliAnalysisTaskEmcal::GetParticleArray(), and EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::TrackInJet().
|
inline |
Definition at line 85 of file AliEmcalContainer.h.
Referenced by AliEmcalClusTrackMatcherTask::ExecOnce(), AliAnalysisTaskEmcal::GetParticleArray(), AliParticleContainer::GetTitle(), AliClusterContainer::GetTitle(), and AliTrackContainer::GetTitle().
|
inline |
Definition at line 86 of file AliEmcalContainer.h.
Referenced by AliEmcalClusTrackMatcherTask::ExecOnce(), and AliHadCorrTask::ExecOnce().
|
inline |
Definition at line 95 of file AliEmcalContainer.h.
Referenced by AliEmcalTrackingQATask::FillHistograms(), AliEmcalClusTrackMatcherTask::GenerateEmcalParticles(), and AliHadCorrTask::Run().
Int_t AliEmcalContainer::GetIndexFromLabel | ( | Int_t | lab | ) | const |
Get the index in the container from a given label
lab | Label to check |
Definition at line 138 of file AliEmcalContainer.cxx.
Referenced by AliClusterContainer::GetAcceptClusterWithLabel(), and AliClusterContainer::GetClusterWithLabel().
|
inline |
Definition at line 96 of file AliEmcalContainer.h.
|
inline |
Definition at line 114 of file AliEmcalContainer.h.
|
inline |
Definition at line 88 of file AliEmcalContainer.h.
|
inline |
Definition at line 92 of file AliEmcalContainer.h.
Referenced by AliParticleContainer::GetParticleEtaMax().
|
inline |
Definition at line 94 of file AliEmcalContainer.h.
Referenced by AliParticleContainer::GetParticlePhiMax().
|
inline |
Definition at line 90 of file AliEmcalContainer.h.
|
inline |
Definition at line 87 of file AliEmcalContainer.h.
|
inline |
Definition at line 91 of file AliEmcalContainer.h.
Referenced by AliParticleContainer::GetParticleEtaMin().
|
inline |
Definition at line 93 of file AliEmcalContainer.h.
Referenced by AliParticleContainer::GetParticlePhiMin().
|
inline |
Definition at line 89 of file AliEmcalContainer.h.
Referenced by AliClusterContainer::GetClusPtCut(), AliParticleContainer::GetParticlePtCut(), AliParticleContainer::GetTitle(), and AliTrackContainer::GetTitle().
|
pure virtual |
Implemented in AliTrackContainer, AliClusterContainer, and AliParticleContainer.
|
inline |
Definition at line 129 of file AliEmcalContainer.h.
Referenced by SetArray().
|
inline |
Definition at line 98 of file AliEmcalContainer.h.
Referenced by AliClusterContainer::GetNClusters(), AliAnalysisTaskEmcal::GetNClusters(), AliClusterContainer::GetNextAcceptCluster(), AliParticleContainer::GetNextAcceptParticle(), AliTrackContainer::GetNextAcceptTrack(), AliClusterContainer::GetNextCluster(), AliParticleContainer::GetNextParticle(), AliTrackContainer::GetNextTrack(), AliParticleContainer::GetNParticles(), and AliAnalysisTaskEmcal::GetNParticles().
|
pure virtual |
Implemented in AliTrackContainer, AliClusterContainer, and AliParticleContainer.
|
pure virtual |
Implemented in AliTrackContainer, AliClusterContainer, and AliParticleContainer.
|
inline |
Definition at line 111 of file AliEmcalContainer.h.
UShort_t AliEmcalContainer::GetRejectionReasonBitPosition | ( | ) | const |
Returns the highest bit in the rejection map as reason why the object was rejected.
Definition at line 160 of file AliEmcalContainer.cxx.
|
inlinevirtual |
Reimplemented in AliTrackContainer.
Definition at line 115 of file AliEmcalContainer.h.
Referenced by AliAnalysisTaskEmcal::RetrieveEventObjects().
|
private |
|
inline |
Definition at line 105 of file AliEmcalContainer.h.
Referenced by AliAnalysisTaskEmcalSample::CheckClusTrackMatching(), ClassImp(), AliEmcalTrackingQATask::FillHistograms(), AliAnalysisTaskEmcalSample::FillHistograms(), AliAnalysisTaskEmcalTriggerPatchClusterMatch::FillHistograms(), AliEmcalClusTrackMatcherTask::GenerateEmcalParticles(), AliClusterContainer::GetLeadingCluster(), AliParticleContainer::GetLeadingParticle(), AliClusterContainer::GetNAcceptedClusters(), AliParticleContainer::GetNAcceptedParticles(), AliAnalysisTaskParticleInJet::GetSelectedParticles(), AliEmcalTrackPropagatorTask::Run(), AliEmcalClusterMaker::Run(), and AliHadCorrTask::Run().
|
static |
|
virtual |
Connect the container to the array with content stored inside the virtual event. The object name in the event must match the name given in the constructor
event | Input event containing the array with content. |
Reimplemented in AliTrackContainer.
Definition at line 103 of file AliEmcalContainer.cxx.
Referenced by AliAnalysisTaskEmcal::ExecOnce(), and AliTrackContainer::SetArray().
|
inline |
Definition at line 107 of file AliEmcalContainer.h.
Referenced by AliEmcalTrackingQATask::SetDetectorLevelName().
|
inline |
Definition at line 108 of file AliEmcalContainer.h.
|
inline |
Definition at line 119 of file AliEmcalContainer.h.
|
inline |
Definition at line 125 of file AliEmcalContainer.h.
Referenced by AliParticleContainer::SetParticleEtaLimits().
|
inline |
Definition at line 109 of file AliEmcalContainer.h.
|
inline |
Definition at line 127 of file AliEmcalContainer.h.
|
inline |
Definition at line 121 of file AliEmcalContainer.h.
|
inline |
Definition at line 117 of file AliEmcalContainer.h.
Referenced by SetMCLabelRange().
|
inline |
Definition at line 124 of file AliEmcalContainer.h.
|
inline |
Definition at line 118 of file AliEmcalContainer.h.
|
inline |
Definition at line 120 of file AliEmcalContainer.h.
Referenced by AliClusterContainer::SetClusECut().
|
inline |
Definition at line 116 of file AliEmcalContainer.h.
Referenced by SetMCLabelRange().
|
inline |
Definition at line 123 of file AliEmcalContainer.h.
Referenced by AliClusterContainer::SetClusPtCut(), and AliParticleContainer::SetParticlePtCut().
|
inline |
Definition at line 130 of file AliEmcalContainer.h.
|
inline |
Definition at line 126 of file AliEmcalContainer.h.
Referenced by AliParticleContainer::SetParticlePhiLimits().
|
inline |
Definition at line 122 of file AliEmcalContainer.h.
|
inline |
Definition at line 110 of file AliEmcalContainer.h.
|
inline |
Definition at line 112 of file AliEmcalContainer.h.
|
protected |
whether or not it is a particle level object collection
Definition at line 139 of file AliEmcalContainer.h.
Referenced by AliClusterContainer::ApplyClusterCuts(), AliParticleContainer::ApplyParticleCuts(), and SetBitMap().
|
protected |
if < 0 it will use a PID mass when available
!TClonesArray
Definition at line 151 of file AliEmcalContainer.h.
Referenced by AliParticleContainer::AcceptParticle(), GetArray(), AliClusterContainer::GetCluster(), GetNEntries(), AliParticleContainer::GetParticle(), AliTrackContainer::NextEvent(), SetArray(), and SortArray().
|
protected |
object name
Definition at line 136 of file AliEmcalContainer.h.
Referenced by GetArrayName(), GetIndexFromLabel(), SetArray(), and SetArrayName().
|
protected |
name of branch
Definition at line 137 of file AliEmcalContainer.h.
Referenced by AliClusterContainer::AliClusterContainer(), AliParticleContainer::AliParticleContainer(), AliTrackContainer::AliTrackContainer(), GetClassName(), SetArray(), AliParticleContainer::SetClassName(), AliClusterContainer::SetClassName(), and AliTrackContainer::SetClassName().
|
protected |
!current ID for automatic loops
Definition at line 152 of file AliEmcalContainer.h.
Referenced by AliParticleContainer::GetAcceptMomentum(), AliTrackContainer::GetAcceptMomentum(), AliParticleContainer::GetAcceptParticle(), AliTrackContainer::GetAcceptTrack(), GetCurrentID(), AliClusterContainer::GetLeadingCluster(), AliParticleContainer::GetLeadingParticle(), AliParticleContainer::GetMomentum(), AliTrackContainer::GetMomentum(), AliClusterContainer::GetNAcceptedClusters(), AliParticleContainer::GetNAcceptedParticles(), AliClusterContainer::GetNextAcceptCluster(), AliTrackContainer::GetNextAcceptMomentum(), AliParticleContainer::GetNextAcceptParticle(), AliTrackContainer::GetNextAcceptTrack(), AliClusterContainer::GetNextCluster(), AliTrackContainer::GetNextMomentum(), AliParticleContainer::GetNextParticle(), AliTrackContainer::GetNextTrack(), AliParticleContainer::GetParticle(), AliTrackContainer::GetTrack(), and ResetCurrentID().
|
protected |
name of the class in the TClonesArray
Definition at line 138 of file AliEmcalContainer.h.
Referenced by GetIsParticleLevel(), and SetIsParticleLevel().
|
protected |
!Label-Index map
Definition at line 153 of file AliEmcalContainer.h.
Referenced by GetIndexFromLabel(), and SetArray().
|
protected |
!Class of teh objects contained in the TClonesArray
Definition at line 156 of file AliEmcalContainer.h.
Referenced by AliTrackContainer::GetAcceptMomentum(), GetLoadedClass(), AliTrackContainer::GetMomentum(), AliTrackContainer::GetNextAcceptMomentum(), AliTrackContainer::GetNextMomentum(), AliTrackContainer::SetArray(), and SetArray().
|
protected |
maximum MC label
Definition at line 150 of file AliEmcalContainer.h.
Referenced by AliTrackContainer::AliTrackContainer(), AliParticleContainer::GetAcceptMomentum(), AliTrackContainer::GetAcceptMomentum(), AliParticleContainer::GetMomentum(), AliClusterContainer::GetMomentum(), AliTrackContainer::GetMomentum(), AliParticleContainer::GetNextAcceptMomentum(), AliTrackContainer::GetNextAcceptMomentum(), AliParticleContainer::GetNextMomentum(), AliTrackContainer::GetNextMomentum(), and SetMassHypothesis().
|
protected |
cut on particle pt
Definition at line 142 of file AliEmcalContainer.h.
Referenced by GetMaxE(), SetELimits(), and SetMaxE().
|
protected |
cut on particle eta
Definition at line 145 of file AliEmcalContainer.h.
Referenced by GetMaxEta(), and SetEtaLimits().
|
protected |
minimum MC label
Definition at line 149 of file AliEmcalContainer.h.
Referenced by AliClusterContainer::ApplyClusterCuts(), AliParticleContainer::ApplyParticleCuts(), AliClusterContainer::SetMaxMCLabel(), and SetMaxMCLabel().
|
protected |
cut on particle phi
Definition at line 147 of file AliEmcalContainer.h.
Referenced by GetMaxPhi(), and SetPhiLimits().
|
protected |
cut on particle pt
Definition at line 141 of file AliEmcalContainer.h.
Referenced by GetMaxPt(), SetMaxPt(), and SetPtLimits().
|
protected |
cut on particle energy
Definition at line 143 of file AliEmcalContainer.h.
Referenced by AliClusterContainer::GetClusUserDefEnergyCut(), GetMinE(), AliClusterContainer::SetClusUserDefEnergyCut(), SetELimits(), and SetMinE().
|
protected |
cut on particle energy
Definition at line 144 of file AliEmcalContainer.h.
Referenced by GetMinEta(), and SetEtaLimits().
|
protected |
cut on particle phi
Definition at line 148 of file AliEmcalContainer.h.
Referenced by AliClusterContainer::ApplyClusterCuts(), AliParticleContainer::ApplyParticleCuts(), AliClusterContainer::SetMinMCLabel(), and SetMinMCLabel().
|
protected |
cut on particle eta
Definition at line 146 of file AliEmcalContainer.h.
Referenced by GetMinPhi(), and SetPhiLimits().
|
protected |
bitmap mask
Definition at line 140 of file AliEmcalContainer.h.
Referenced by GetMinPt(), SetMinPt(), and SetPtLimits().
|
protected |
Definition at line 135 of file AliEmcalContainer.h.
|
protected |
!reject reason bit map for the last call to an accept object function
Definition at line 155 of file AliEmcalContainer.h.
Referenced by AliClusterContainer::ApplyClusterCuts(), AliParticleContainer::ApplyKinematicCuts(), AliParticleContainer::ApplyParticleCuts(), GetRejectionReason(), GetRejectionReasonBitPosition(), and TestRejectionReason().
|
protected |
!event vertex array
Definition at line 154 of file AliEmcalContainer.h.
Referenced by AliEmcalContainer(), AliClusterContainer::GetLeadingCluster(), AliClusterContainer::GetMomentum(), and SetArray().