![]() |
AliPhysics
8bb951a (8bb951a)
|
Container structure for EMCAL clusters. More...
#include <AliClusterContainer.h>
Classes | |
class | accept_iterator |
stl iterator over accepted clusters More... | |
class | all_iterator |
stl iterator over all clusters More... | |
Public Types | |
typedef enum AliVCluster::VCluUserDefEnergy_t | VCluUserDefEnergy_t |
![]() | |
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 | |
AliClusterContainer () | |
AliClusterContainer (const char *name) | |
virtual | ~AliClusterContainer () |
virtual Bool_t | AcceptObject (Int_t i, UInt_t &rejectionReason) const |
virtual Bool_t | AcceptObject (const TObject *obj, UInt_t &rejectionReason) const |
virtual Bool_t | AcceptCluster (Int_t i, UInt_t &rejectionReason) const |
virtual Bool_t | AcceptCluster (const AliVCluster *vp, UInt_t &rejectionReason) const |
virtual Bool_t | ApplyClusterCuts (const AliVCluster *clus, UInt_t &rejectionReason) const |
AliVCluster * | GetAcceptCluster (Int_t i) const |
AliVCluster * | GetAcceptClusterWithLabel (Int_t lab) const |
void | SetClusECut (Double_t cut) |
void | SetClusPtCut (Double_t cut) |
Double_t | GetClusPtCut () const |
AliVCluster * | GetCluster (Int_t i) const |
AliVCluster * | GetClusterWithLabel (Int_t lab) const |
AliVCluster * | GetLeadingCluster (const char *opt="") |
Bool_t | GetMomentum (TLorentzVector &mom, const AliVCluster *vc, Double_t mass) const |
Bool_t | GetMomentum (TLorentzVector &mom, const AliVCluster *clus) const |
Bool_t | GetMomentum (TLorentzVector &mom, Int_t i) const |
Bool_t | GetAcceptMomentum (TLorentzVector &mom, Int_t i) const |
Bool_t | GetNextMomentum (TLorentzVector &mom) |
Bool_t | GetNextAcceptMomentum (TLorentzVector &mom) |
AliVCluster * | GetNextAcceptCluster () |
AliVCluster * | GetNextCluster () |
Int_t | GetNClusters () const |
Int_t | GetNAcceptedClusters () const |
void | SetClusTimeCut (Double_t min, Double_t max) |
void | SetMinMCLabel (Int_t s) |
void | SetMaxMCLabel (Int_t s) |
void | SetMCLabelRange (Int_t min, Int_t max) |
void | SetExoticCut (Bool_t e) |
void | SetClusUserDefEnergyCut (Int_t t, Double_t cut) |
Double_t | GetClusUserDefEnergyCut (Int_t t) const |
void | SetClusNonLinCorrEnergyCut (Double_t cut) |
void | SetClusHadCorrEnergyCut (Double_t cut) |
void | SetDefaultClusterEnergy (Int_t d) |
Int_t | GetDefaultClusterEnergy () const |
const char * | GetTitle () const |
accept_iterator | accept_begin () const |
accept_iterator | accept_end () const |
accept_iterator | accept_rbegin () const |
accept_iterator | accept_rend () const |
all_iterator | begin () const |
all_iterator | end () const |
all_iterator | rbegin () const |
all_iterator | rend () const |
![]() | |
AliEmcalContainer () | |
AliEmcalContainer (const char *name) | |
virtual | ~AliEmcalContainer () |
TObject * | operator[] (int index) const |
virtual Bool_t | ApplyKinematicCuts (const AliTLorentzVector &mom, UInt_t &rejectionReason) const |
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 |
Int_t | GetNAcceptEntries () const |
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 () |
UShort_t | GetRejectionReasonBitPosition (UInt_t rejectionReason) 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) |
void | SetClassName (const char *clname) |
const char * | GetName () const |
void | SetName (const char *n) |
const AliEmcalIterableContainer | all () const |
const AliEmcalIterableContainer | accepted () const |
Protected Attributes | |
Double_t | fClusTimeCutLow |
low time cut for clusters More... | |
Double_t | fClusTimeCutUp |
up time cut for clusters More... | |
Bool_t | fExoticCut |
reject clusters marked as "exotic" More... | |
Double_t | fUserDefEnergyCut [AliVCluster::kLastUserDefEnergy+1] |
cut on the energy of the cluster after higher level corrections (see AliVCluster.h) More... | |
Int_t | fDefaultClusterEnergy |
default cluster energy: -1 for clus->E(); otherwise clus->GetUserDefEnergy(fDefaultClusterEnergy) More... | |
![]() | |
TString | fName |
object name More... | |
TString | fClArrayName |
name of branch More... | |
TString | fBaseClassName |
name of the base class that this container can handle More... | |
Bool_t | fIsParticleLevel |
whether or not it is a particle level object collection More... | |
UInt_t | fBitMap |
bitmap mask More... | |
Double_t | fMinPt |
Min. cut on particle \( p_{t} \). More... | |
Double_t | fMaxPt |
Max. cut on particle \( p_{t} \). More... | |
Double_t | fMaxE |
Min. cut on particle energy. More... | |
Double_t | fMinE |
Max. cut on particle energy. More... | |
Double_t | fMinEta |
Min. cut on particle \( \eta \). More... | |
Double_t | fMaxEta |
Max. cut on particle \( \eta \). More... | |
Double_t | fMinPhi |
Min. cut on particle \( \phi \). More... | |
Double_t | fMaxPhi |
Max. cut on particle \( \phi \). More... | |
Int_t | fMinMCLabel |
minimum MC label More... | |
Int_t | fMaxMCLabel |
maximum MC label More... | |
Double_t | fMassHypothesis |
if < 0 it will use a PID mass when available More... | |
TClonesArray * | fClArray |
! Pointer to array in input event More... | |
Int_t | fCurrentID |
! current ID for automatic loops More... | |
AliNamedArrayI * | fLabelMap |
! Label-Index map More... | |
Double_t | fVertex [3] |
! event vertex array More... | |
TClass * | fLoadedClass |
! Class of the objects contained in the TClonesArray More... | |
Private Member Functions | |
AliClusterContainer (const AliClusterContainer &obj) | |
AliClusterContainer & | operator= (const AliClusterContainer &other) |
Additional Inherited Members | |
![]() | |
static Bool_t | SamePart (const AliVParticle *part1, const AliVParticle *part2, Double_t dist=1.e-4) |
Container structure for EMCAL clusters.
Container with name, TClonesArray and cuts for calo clusters
Definition at line 25 of file AliClusterContainer.h.
typedef enum AliVCluster::VCluUserDefEnergy_t AliClusterContainer::VCluUserDefEnergy_t |
Definition at line 27 of file AliClusterContainer.h.
AliClusterContainer::AliClusterContainer | ( | ) |
Default constructor.
Definition at line 33 of file AliClusterContainer.cxx.
AliClusterContainer::AliClusterContainer | ( | const char * | name | ) |
Standard constructor.
name | Name of the array connected to this container |
Definition at line 52 of file AliClusterContainer.cxx.
|
inlinevirtual |
Definition at line 145 of file AliClusterContainer.h.
|
private |
AliClusterContainer::accept_iterator AliClusterContainer::accept_begin | ( | ) | const |
Create standard (forward) iterator over accepted clusters in the container, for the beginning of the iteration.
Definition at line 464 of file AliClusterContainer.cxx.
Referenced by TestClusterContainerIterator().
AliClusterContainer::accept_iterator AliClusterContainer::accept_end | ( | ) | const |
Create standard (forward) iterator over accepted clusters in the container, marking the end of the iteration.
Definition at line 473 of file AliClusterContainer.cxx.
Referenced by TestClusterContainerIterator().
AliClusterContainer::accept_iterator AliClusterContainer::accept_rbegin | ( | ) | const |
Create standard (forward) iterator over accepted clusters in the container, for the beginning of the iteration.
Definition at line 482 of file AliClusterContainer.cxx.
AliClusterContainer::accept_iterator AliClusterContainer::accept_rend | ( | ) | const |
Create reverse (backward) iterator over accepted clusters in the container, marking the end of the iteration.
Definition at line 491 of file AliClusterContainer.cxx.
|
virtual |
Definition at line 295 of file AliClusterContainer.cxx.
Referenced by AliClusterContainer::accept_iterator::accept_iterator(), AliAnalysisTaskEmcal::AcceptCluster(), AcceptObject(), AliAnalysisTaskEmcalJetQA::DoClusterLoop(), GetAcceptCluster(), GetNAcceptedClusters(), AliEmcalClusterMaker::Run(), and TestClusterContainerIterator().
|
virtual |
Definition at line 306 of file AliClusterContainer.cxx.
|
inlinevirtual |
Implements AliEmcalContainer.
Definition at line 147 of file AliClusterContainer.h.
|
inlinevirtual |
Implements AliEmcalContainer.
Definition at line 148 of file AliClusterContainer.h.
|
virtual |
Return true if cluster is accepted.
clus |
Definition at line 322 of file AliClusterContainer.cxx.
Referenced by AcceptCluster().
AliClusterContainer::all_iterator AliClusterContainer::begin | ( | ) | const |
Create standard (forward) iterator over all clusters in the container, for the beginning of the iteration.
Definition at line 428 of file AliClusterContainer.cxx.
Referenced by TestClusterContainerIterator().
AliClusterContainer::all_iterator AliClusterContainer::end | ( | ) | const |
Create standard (forward) iterator over all clusters in the container, marking the end of the iteration.
Definition at line 437 of file AliClusterContainer.cxx.
Referenced by TestClusterContainerIterator().
AliVCluster * AliClusterContainer::GetAcceptCluster | ( | Int_t | i | ) | const |
Return pointer to cluster if cluster is accepted
i |
Definition at line 125 of file AliClusterContainer.cxx.
Referenced by AliAnalysisTaskPi0Hadron::DoClusterLoop(), AliAnalysisTaskEmcal::GetAcceptClusterFromArray(), GetAcceptClusterWithLabel(), GetAcceptMomentum(), and GetNextAcceptCluster().
AliVCluster * AliClusterContainer::GetAcceptClusterWithLabel | ( | Int_t | lab | ) | const |
Get particle with label lab in array
lab |
Definition at line 155 of file AliClusterContainer.cxx.
|
virtual |
Get momentum of the i^th particle in array
mom | |
i |
Implements AliEmcalContainer.
Definition at line 278 of file AliClusterContainer.cxx.
|
inline |
Definition at line 156 of file AliClusterContainer.h.
AliVCluster * AliClusterContainer::GetCluster | ( | Int_t | i | ) | const |
Get i^th cluster in array
i |
Definition at line 112 of file AliClusterContainer.cxx.
Referenced by AcceptCluster(), AliHadCorrTask::ApplyHadCorrAllTracks(), AliHadCorrTask::ApplyHadCorrOneTrack(), AliAnalysisTaskEmcalSample::CheckClusTrackMatching(), AliAnalysisTaskEmcalJetSample::CheckClusTrackMatching(), AliAnalysisTaskJetJTJT::CheckClusTrackMatching(), AliAnalysisTaskEmcalJetHF::CheckClusTrackMatchingQA(), AliAnalysisTaskPi0Hadron::DoClusterLoop(), AliHadCorrTask::DoMatchedTracksLoop(), AliAnalysisTaskEmcalJetTriggerQA::FillHistograms(), AliAnalysisTaskEmcalTriggerPatchClusterMatch::FillHistograms(), AliAnalysisTaskEmcalTriggerPatchJetMatch::FillHistograms(), AliEmcalJetTask::FillJetConstituents(), AliAnalysisTaskJetV2::FillWeightedClusterHistograms(), GetAcceptCluster(), GetClusterWithLabel(), GetMomentum(), GetNAcceptedClusters(), GetNextCluster(), AliJetResponseMaker::GetSameCollectionsMatchingLevel(), AliAnalysisTaskEmcalJetFlavourTagExample::Run(), AliAnalysisTaskEmcalJetTriggerMatcher::Run(), AliAnalysisTaskEmcalJetHF::Run(), and TestClusterContainerIterator().
AliVCluster * AliClusterContainer::GetClusterWithLabel | ( | Int_t | lab | ) | const |
Get particle with label lab in array
lab |
Definition at line 144 of file AliClusterContainer.cxx.
Double_t AliClusterContainer::GetClusUserDefEnergyCut | ( | Int_t | t | ) | const |
Definition at line 384 of file AliClusterContainer.cxx.
Referenced by GetTitle().
|
inline |
Definition at line 183 of file AliClusterContainer.h.
Referenced by AliAnalysisTaskEmcalJetQA::DoClusterLoop(), AliAnalysisTaskEmcalJetSpectraQA::FillHistograms(), and GetTitle().
AliVCluster * AliClusterContainer::GetLeadingCluster | ( | const char * | opt = "" | ) |
Get the leading cluster; use e if "e" is contained in opt (otherwise et)
opt |
Definition at line 72 of file AliClusterContainer.cxx.
Referenced by AliAnalysisTaskEmcalTriggerPatchClusterMatch::ExtractMainPatch(), and AliAnalysisTaskEmcalTriggerPatchJetMatch::ExtractMainPatch().
Bool_t AliClusterContainer::GetMomentum | ( | TLorentzVector & | mom, |
const AliVCluster * | vc, | ||
Double_t | mass | ||
) | const |
Definition at line 195 of file AliClusterContainer.cxx.
Referenced by AcceptCluster(), AliEmcalJetTask::FillJetConstituents(), AliEmcalJetTask::FindJets(), GetAcceptMomentum(), GetMomentum(), GetNextAcceptMomentum(), GetNextMomentum(), and AliAnalysisTaskRhoAverage::Run().
Bool_t AliClusterContainer::GetMomentum | ( | TLorentzVector & | mom, |
const AliVCluster * | clus | ||
) | const |
Definition at line 230 of file AliClusterContainer.cxx.
|
virtual |
Get momentum of the i^th particle in array
mom | |
i |
Implements AliEmcalContainer.
Definition at line 255 of file AliClusterContainer.cxx.
Int_t AliClusterContainer::GetNAcceptedClusters | ( | ) | const |
Get number of accepted particles
Definition at line 373 of file AliClusterContainer.cxx.
Referenced by accept_end(), AliClusterContainer::accept_iterator::accept_iterator(), accept_rbegin(), AliAnalysisTaskPi0Hadron::DoClusterLoop(), AliAnalysisTaskRhoMassBase::FillHistograms(), AliAnalysisTaskRhoBase::FillHistograms(), AliAnalysisTaskEmcalJetCDF::ProcessJetContainer(), AliAnalysisTaskEmcalTmpSparseMaker::RetrieveEventObjects(), AliAnalysisTaskEmcalJetSparseMaker::RetrieveEventObjects(), and AliAnalysisTaskEmcalJetCDFUE::Run().
|
inline |
Definition at line 168 of file AliClusterContainer.h.
Referenced by AliAnalysisTaskPi0Hadron::DoClusterLoop(), end(), AliAnalysisTaskEmcalJetTriggerQA::FillHistograms(), AliAnalysisTaskEmcalTriggerPatchClusterMatch::FillHistograms(), AliAnalysisTaskEmcalTriggerPatchJetMatch::FillHistograms(), AliAnalysisTaskJetV2::FillWeightedClusterHistograms(), AliClusterContainer::all_iterator::operator*(), rbegin(), AliAnalysisTaskEmcalJetTriggerMatcher::Run(), and TestClusterContainerIterator().
AliVCluster * AliClusterContainer::GetNextAcceptCluster | ( | ) |
Get next accepted cluster
Definition at line 165 of file AliClusterContainer.cxx.
Referenced by AliAnalysisTaskJetV2::CalculateRandomCone(), AliAnalysisTaskEmcalSample::CheckClusTrackMatching(), AliAnalysisTaskEmcalJetSample::CheckClusTrackMatching(), AliAnalysisTaskJetJTJT::CheckClusTrackMatching(), AliJetConstituentTagCopier::DoClusterLoop(), AliAnalysisTaskEmcalSample::FillHistograms(), AliAnalysisTaskScale::FillHistograms(), AliAnalysisTaskEmcalJetSample::FillHistograms(), AliAnalysisTaskDcalDijetPerf::FillHistograms(), AliAnalysisTaskJetJTJT::FillHistograms(), AliAnalysisTaskEmcalTmpSparseMaker::FillSparseClus(), AliEmcalJetTask::FindJets(), AliEmcalClusTrackMatcherTask::GenerateEmcalParticles(), AliAnalysisTaskEmcalJetMassBkg::GetCone(), GetLeadingCluster(), GetNextAcceptMomentum(), AliAnalysisTaskDeltaPt::GetRandomCone(), AliAnalysisTaskRhoAverage::Run(), AliHadCorrTask::Run(), AliAnalysisTaskEmcalJetv2QA::Run(), AliAnalysisTaskEmcalJetFlavourTagExample::Run(), AliAnalysisTaskEmcalJetTriggerMatcher::Run(), and AliAnalysisTaskEmcalJetHF::Run().
|
virtual |
Get momentum of the next accepted particle in array
mom |
Implements AliEmcalContainer.
Definition at line 289 of file AliClusterContainer.cxx.
AliVCluster * AliClusterContainer::GetNextCluster | ( | ) |
Get next cluster
Definition at line 182 of file AliClusterContainer.cxx.
Referenced by AliAnalysisTaskEmcalJetQA::DoClusterLoop(), GetNextMomentum(), and AliEmcalClusterMaker::Run().
|
virtual |
Get momentum of the next particle in array
mom |
Implements AliEmcalContainer.
Definition at line 266 of file AliClusterContainer.cxx.
const char * AliClusterContainer::GetTitle | ( | ) | const |
Definition at line 404 of file AliClusterContainer.cxx.
Referenced by AliJetContainer::GenerateJetName().
|
private |
AliClusterContainer::all_iterator AliClusterContainer::rbegin | ( | ) | const |
Create standard (forward) iterator over all clusters in the container, for the beginning of the iteration.
Definition at line 446 of file AliClusterContainer.cxx.
AliClusterContainer::all_iterator AliClusterContainer::rend | ( | ) | const |
Create reverse (backward) iterator over all clusters in the container, marking the end of the iteration.
Definition at line 455 of file AliClusterContainer.cxx.
|
inline |
Definition at line 154 of file AliClusterContainer.h.
Referenced by AliEmcalJetTask::SetMinJetClusE().
|
inline |
Definition at line 180 of file AliClusterContainer.h.
|
inline |
Definition at line 179 of file AliClusterContainer.h.
|
inline |
Definition at line 155 of file AliClusterContainer.h.
Referenced by AliAnalysisTaskEmcal::SetClusPtCut(), and AliEmcalJetTask::SetMinJetClusPt().
|
inline |
Definition at line 170 of file AliClusterContainer.h.
Referenced by AliAnalysisTaskEmcal::SetClusTimeCut().
void AliClusterContainer::SetClusUserDefEnergyCut | ( | Int_t | t, |
Double_t | cut | ||
) |
Definition at line 394 of file AliClusterContainer.cxx.
Referenced by SetClusHadCorrEnergyCut(), and SetClusNonLinCorrEnergyCut().
|
inline |
Definition at line 181 of file AliClusterContainer.h.
|
inline |
Definition at line 174 of file AliClusterContainer.h.
|
inline |
Definition at line 172 of file AliClusterContainer.h.
Referenced by SetMCLabelRange().
|
inline |
Definition at line 173 of file AliClusterContainer.h.
|
inline |
Definition at line 171 of file AliClusterContainer.h.
Referenced by SetMCLabelRange().
|
protected |
low time cut for clusters
Definition at line 199 of file AliClusterContainer.h.
Referenced by ApplyClusterCuts(), and SetClusTimeCut().
|
protected |
up time cut for clusters
Definition at line 200 of file AliClusterContainer.h.
Referenced by ApplyClusterCuts(), and SetClusTimeCut().
|
protected |
default cluster energy: -1 for clus->E(); otherwise clus->GetUserDefEnergy(fDefaultClusterEnergy)
Definition at line 203 of file AliClusterContainer.h.
Referenced by GetDefaultClusterEnergy(), GetMomentum(), and SetDefaultClusterEnergy().
|
protected |
reject clusters marked as "exotic"
Definition at line 201 of file AliClusterContainer.h.
Referenced by ApplyClusterCuts(), and SetExoticCut().
|
protected |
cut on the energy of the cluster after higher level corrections (see AliVCluster.h)
Definition at line 202 of file AliClusterContainer.h.
Referenced by AliClusterContainer(), ApplyClusterCuts(), GetClusUserDefEnergyCut(), and SetClusUserDefEnergyCut().