![]() |
AliPhysics
75b74d3 (75b74d3)
|
Container structure for EMCAL clusters. More...
#include <AliClusterContainer.h>
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) |
virtual Bool_t | AcceptObject (const TObject *obj) |
virtual Bool_t | AcceptCluster (Int_t i) |
virtual Bool_t | AcceptCluster (const AliVCluster *vp) |
virtual Bool_t | ApplyClusterCuts (const AliVCluster *clus) |
AliVCluster * | GetAcceptCluster (Int_t i) |
AliVCluster * | GetAcceptClusterWithLabel (Int_t lab) |
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) |
Bool_t | GetMomentum (TLorentzVector &mom, const AliVCluster *clus) |
Bool_t | GetMomentum (TLorentzVector &mom, Int_t i) |
Bool_t | GetAcceptMomentum (TLorentzVector &mom, Int_t i) |
Bool_t | GetNextMomentum (TLorentzVector &mom) |
Bool_t | GetNextAcceptMomentum (TLorentzVector &mom) |
AliVCluster * | GetNextAcceptCluster () |
AliVCluster * | GetNextCluster () |
Int_t | GetNClusters () const |
Int_t | GetNAcceptedClusters () |
void | SetClassName (const char *clname) |
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 |
![]() | |
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 |
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) |
Protected Attributes | |
Double_t | fClusTimeCutLow |
Double_t | fClusTimeCutUp |
low time cut for clusters More... | |
Bool_t | fExoticCut |
up time cut for clusters More... | |
Double_t | fUserDefEnergyCut [AliVCluster::kLastUserDefEnergy+1] |
reject clusters marked as "exotic" More... | |
Int_t | fDefaultClusterEnergy |
cut on the energy of the cluster after higher level corrections (see AliVCluster.h) More... | |
![]() | |
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 | |
AliClusterContainer (const AliClusterContainer &obj) | |
default cluster energy: -1 for clus->E(); otherwise clus->GetUserDefEnergy(fDefaultClusterEnergy) More... | |
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 23 of file AliClusterContainer.h.
typedef enum AliVCluster::VCluUserDefEnergy_t AliClusterContainer::VCluUserDefEnergy_t |
Definition at line 25 of file AliClusterContainer.h.
AliClusterContainer::AliClusterContainer | ( | ) |
Default constructor.
Definition at line 30 of file AliClusterContainer.cxx.
AliClusterContainer::AliClusterContainer | ( | const char * | name | ) |
Standard constructor.
name | Name of the array connected to this container |
Definition at line 48 of file AliClusterContainer.cxx.
|
inlinevirtual |
Definition at line 29 of file AliClusterContainer.h.
|
private |
default cluster energy: -1 for clus->E(); otherwise clus->GetUserDefEnergy(fDefaultClusterEnergy)
|
virtual |
Definition at line 289 of file AliClusterContainer.cxx.
Referenced by AliAnalysisTaskEmcal::AcceptCluster(), AcceptObject(), GetAcceptCluster(), and AliEmcalClusterMaker::Run().
|
virtual |
Definition at line 300 of file AliClusterContainer.cxx.
|
inlinevirtual |
Implements AliEmcalContainer.
Definition at line 31 of file AliClusterContainer.h.
|
inlinevirtual |
Implements AliEmcalContainer.
Definition at line 32 of file AliClusterContainer.h.
|
virtual |
Return true if cluster is accepted.
clus |
Definition at line 316 of file AliClusterContainer.cxx.
Referenced by AcceptCluster().
AliVCluster * AliClusterContainer::GetAcceptCluster | ( | Int_t | i | ) |
Return pointer to cluster if cluster is accepted
i |
Definition at line 120 of file AliClusterContainer.cxx.
Referenced by AliAnalysisTaskEmcal::GetAcceptClusterFromArray(), GetAcceptClusterWithLabel(), GetAcceptMomentum(), and GetNextAcceptCluster().
AliVCluster * AliClusterContainer::GetAcceptClusterWithLabel | ( | Int_t | lab | ) |
Get particle with label lab in array
lab |
Definition at line 149 of file AliClusterContainer.cxx.
|
virtual |
Get momentum of the i^th particle in array
mom | |
i |
Implements AliEmcalContainer.
Definition at line 272 of file AliClusterContainer.cxx.
|
inline |
Definition at line 40 of file AliClusterContainer.h.
AliVCluster * AliClusterContainer::GetCluster | ( | Int_t | i | ) | const |
Get i^th cluster in array
i |
Definition at line 107 of file AliClusterContainer.cxx.
Referenced by AcceptCluster(), AliHadCorrTask::ApplyHadCorrAllTracks(), AliHadCorrTask::ApplyHadCorrOneTrack(), AliAnalysisTaskEmcalSample::CheckClusTrackMatching(), AliHadCorrTask::DoMatchedTracksLoop(), AliAnalysisTaskEmcalTriggerPatchClusterMatch::FillHistograms(), GetAcceptCluster(), GetClusterWithLabel(), GetMomentum(), and GetNextCluster().
AliVCluster * AliClusterContainer::GetClusterWithLabel | ( | Int_t | lab | ) | const |
Get particle with label lab in array
lab |
Definition at line 138 of file AliClusterContainer.cxx.
Double_t AliClusterContainer::GetClusUserDefEnergyCut | ( | Int_t | t | ) | const |
Definition at line 385 of file AliClusterContainer.cxx.
Referenced by GetTitle().
|
inline |
Definition at line 68 of file AliClusterContainer.h.
Referenced by 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 67 of file AliClusterContainer.cxx.
Referenced by AliAnalysisTaskEmcalTriggerPatchClusterMatch::ExtractMainPatch().
Bool_t AliClusterContainer::GetMomentum | ( | TLorentzVector & | mom, |
const AliVCluster * | vc, | ||
Double_t | mass | ||
) |
Definition at line 189 of file AliClusterContainer.cxx.
Referenced by AcceptCluster(), GetAcceptMomentum(), GetMomentum(), GetNextAcceptMomentum(), and GetNextMomentum().
Bool_t AliClusterContainer::GetMomentum | ( | TLorentzVector & | mom, |
const AliVCluster * | clus | ||
) |
Definition at line 224 of file AliClusterContainer.cxx.
|
virtual |
Get momentum of the i^th particle in array
mom | |
i |
Implements AliEmcalContainer.
Definition at line 249 of file AliClusterContainer.cxx.
Int_t AliClusterContainer::GetNAcceptedClusters | ( | ) |
|
inline |
Definition at line 52 of file AliClusterContainer.h.
Referenced by AliAnalysisTaskEmcalTriggerPatchClusterMatch::FillHistograms().
AliVCluster * AliClusterContainer::GetNextAcceptCluster | ( | ) |
Get next accepted cluster
Definition at line 159 of file AliClusterContainer.cxx.
Referenced by AliAnalysisTaskEmcalSample::CheckClusTrackMatching(), AliAnalysisTaskEmcalSample::FillHistograms(), AliEmcalClusTrackMatcherTask::GenerateEmcalParticles(), GetLeadingCluster(), GetNAcceptedClusters(), GetNextAcceptMomentum(), and AliHadCorrTask::Run().
|
virtual |
Get momentum of the next accepted particle in array
mom |
Implements AliEmcalContainer.
Definition at line 283 of file AliClusterContainer.cxx.
AliVCluster * AliClusterContainer::GetNextCluster | ( | ) |
Get next cluster
Definition at line 176 of file AliClusterContainer.cxx.
Referenced by GetNextMomentum(), and AliEmcalClusterMaker::Run().
|
virtual |
Get momentum of the next particle in array
mom |
Implements AliEmcalContainer.
Definition at line 260 of file AliClusterContainer.cxx.
const char * AliClusterContainer::GetTitle | ( | ) | const |
Definition at line 417 of file AliClusterContainer.cxx.
|
private |
void AliClusterContainer::SetClassName | ( | const char * | clname | ) |
Set the class name
clname |
Definition at line 410 of file AliClusterContainer.cxx.
Referenced by AliHadCorrTask::ExecOnce(), and AliAnalysisTaskEmcalSample::UserCreateOutputObjects().
|
inline |
Definition at line 38 of file AliClusterContainer.h.
|
inline |
Definition at line 65 of file AliClusterContainer.h.
|
inline |
Definition at line 64 of file AliClusterContainer.h.
|
inline |
Definition at line 39 of file AliClusterContainer.h.
Referenced by AliAnalysisTaskEmcal::SetClusPtCut().
|
inline |
Definition at line 55 of file AliClusterContainer.h.
Referenced by AliAnalysisTaskEmcal::SetClusTimeCut().
void AliClusterContainer::SetClusUserDefEnergyCut | ( | Int_t | t, |
Double_t | cut | ||
) |
Definition at line 395 of file AliClusterContainer.cxx.
Referenced by SetClusHadCorrEnergyCut(), and SetClusNonLinCorrEnergyCut().
|
inline |
Definition at line 66 of file AliClusterContainer.h.
|
inline |
Definition at line 59 of file AliClusterContainer.h.
|
inline |
Definition at line 57 of file AliClusterContainer.h.
Referenced by SetMCLabelRange().
|
inline |
Definition at line 58 of file AliClusterContainer.h.
|
inline |
Definition at line 56 of file AliClusterContainer.h.
Referenced by SetMCLabelRange().
|
protected |
Definition at line 74 of file AliClusterContainer.h.
Referenced by ApplyClusterCuts(), and SetClusTimeCut().
|
protected |
low time cut for clusters
Definition at line 75 of file AliClusterContainer.h.
Referenced by ApplyClusterCuts(), and SetClusTimeCut().
|
protected |
cut on the energy of the cluster after higher level corrections (see AliVCluster.h)
Definition at line 78 of file AliClusterContainer.h.
Referenced by GetDefaultClusterEnergy(), GetMomentum(), and SetDefaultClusterEnergy().
|
protected |
up time cut for clusters
Definition at line 76 of file AliClusterContainer.h.
Referenced by ApplyClusterCuts(), and SetExoticCut().
|
protected |
reject clusters marked as "exotic"
Definition at line 77 of file AliClusterContainer.h.
Referenced by AliClusterContainer(), ApplyClusterCuts(), GetClusUserDefEnergyCut(), and SetClusUserDefEnergyCut().