![]() |
AliRoot Core
3dc7879 (3dc7879)
|
Base class for calorimeter cluster data handling. More...
#include <AliAODCluster.h>
Public Member Functions | |
AliAODCluster () | |
AliAODCluster (Int_t id, UInt_t nLabel, Int_t *label, Double_t energy, Double_t x[3], Double_t pid[13], Char_t ttype=kUndef, UInt_t selectInfo=0) | |
AliAODCluster (Int_t id, UInt_t nLabel, Int_t *label, Float_t energy, Float_t x[3], Float_t pid[13], Char_t ttype=kUndef, UInt_t selectInfo=0) | |
virtual | ~AliAODCluster () |
AliAODCluster (const AliAODCluster &clus) | |
AliAODCluster & | operator= (const AliAODCluster &clus) |
void | Clear (const Option_t *) |
Double_t | Chi2 () const |
Double_t | E () const |
UShort_t | GetMostProbablePID () const |
const Double_t * | GetPID () const |
Int_t | GetID () const |
Int_t | GetLabel () const |
Int_t | GetLabelAt (UInt_t i) const |
Int_t * | GetLabels () const |
UInt_t | GetNLabels () const |
Bool_t | TestFilterBit (UInt_t filterBit) const |
Char_t | GetType () const |
void | GetPosition (Float_t *x) const |
Bool_t | IsEMCAL () const |
Bool_t | IsPHOS () const |
void | Print (const Option_t *opt="") const |
void | SetE (Double32_t energy) |
void | SetID (Int_t id) |
void | SetType (Char_t ttype) |
void | SetLabel (Int_t *label, UInt_t size) |
void | SetChi2 (Double_t chi2) |
void | SetPosition (Float_t *x) |
void | SetPositionAt (Float_t x, Int_t i) |
void | SetPIDAt (Float_t x, Int_t i) |
void | SetPID (const Float_t *pid) |
template<class T > | |
void | SetPIDFromESD (const T *pid) |
void | RemoveLabel () |
Double_t | GetMCEnergyFraction () const |
void | SetMCEnergyFraction (Double_t e) |
void | SetClusterMCEdepFractionFromEdepArray (Float_t *array) |
void | SetClusterMCEdepFraction (UShort_t *array) |
UShort_t * | GetClusterMCEdepFraction () const |
Float_t | GetClusterMCEdepFraction (Int_t mcIndex) const |
![]() | |
AliVCluster () | |
virtual | ~AliVCluster () |
AliVCluster (const AliVCluster &clus) | |
AliVCluster & | operator= (const AliVCluster &source) |
void | Clear (const Option_t *) |
virtual void | SetE (Double_t) |
virtual void | SetDispersion (Double_t) |
virtual Double_t | GetDispersion () const |
virtual void | SetM20 (Double_t) |
virtual Double_t | GetM20 () const |
virtual void | SetM02 (Double_t) |
virtual Double_t | GetM02 () const |
virtual void | SetNExMax (UChar_t) |
virtual UChar_t | GetNExMax () const |
virtual void | SetTOF (Double_t) |
virtual Double_t | GetTOF () const |
virtual void | SetEmcCpvDistance (Double_t) |
virtual Double_t | GetEmcCpvDistance () const |
virtual void | SetTrackDistance (Double_t, Double_t) |
virtual Double_t | GetTrackDx (void) const |
virtual Double_t | GetTrackDz (void) const |
virtual void | SetDistanceToBadChannel (Double_t) |
virtual Double_t | GetDistanceToBadChannel () const |
virtual void | SetNCells (Int_t) |
virtual Int_t | GetNCells () const |
virtual void | SetCellsAbsId (UShort_t *) |
virtual UShort_t * | GetCellsAbsId () |
virtual void | SetCellsAmplitudeFraction (Double32_t *) |
virtual Double_t * | GetCellsAmplitudeFraction () |
virtual Int_t | GetCellAbsId (Int_t) const |
virtual Double_t | GetCellAmplitudeFraction (Int_t) const |
virtual void | SetCellsMCEdepFractionMap (UInt_t *) |
virtual UInt_t * | GetCellsMCEdepFractionMap () const |
virtual void | GetCellMCEdepFractionArray (Int_t, Float_t *) const |
virtual UInt_t | PackMCEdepFraction (Float_t *) const |
virtual Int_t | GetNTracksMatched () const |
virtual TObject * | GetTrackMatched (Int_t) const |
Only for AODs. More... | |
virtual Int_t | GetTrackMatchedIndex (Int_t=0) const |
Only for ESDs. More... | |
virtual Double_t | GetCoreEnergy () const |
virtual void | SetCoreEnergy (Double_t) |
virtual Bool_t | GetIsExotic () const |
virtual void | SetIsExotic (Bool_t) |
virtual Double_t | GetUserDefEnergy (VCluUserDefEnergy_t) const |
virtual void | SetUserDefEnergy (VCluUserDefEnergy_t, Double_t) |
virtual Double_t | GetUserDefEnergy (Int_t i) const |
virtual void | SetUserDefEnergy (Int_t i, Double_t v) |
Double_t | GetNonLinCorrEnergy () const |
void | SetNonLinCorrEnergy (Double_t e) |
Double_t | GetHadCorrEnergy () const |
void | SetHadCorrEnergy (Double_t e) |
virtual void | GetMomentum (TLorentzVector &, const Double_t *) const |
virtual void | GetMomentum (TLorentzVector &, const Double_t *, VCluUserDefEnergy_t) const |
Private Attributes | |
Double32_t | fEnergy |
Cluster energy. More... | |
Double32_t | fPosition [3] |
Position of the cluster. More... | |
Double32_t | fChi2 |
Chi2 of unfolding fit (probably not necessary for PMD). More... | |
Double32_t | fPID [13] |
Pointer to PID object, array with bayesian probability weights. More... | |
Int_t | fID |
Unique cluster ID, points back to the ESD cluster. More... | |
Int_t | fNLabel |
Number of original MC particles generating this cluster. More... | |
Int_t * | fLabel |
Particle label array, points back to MC particles that generated the cluster. More... | |
UInt_t | fFilterMap |
Filter information, one bit per set of cuts. More... | |
Char_t | fType |
cluster type More... | |
Double_t | fMCEnergyFraction |
! MC energy (embedding) More... | |
UShort_t * | fClusterMCEdepFraction |
Array with fraction of deposited energy per MC particle contributing to the cluster. More... | |
Additional Inherited Members | |
![]() | |
enum | VClu_t { kUndef = -2, kPHOSNeutral, kPHOSCharged, kEMCALClusterv1, kPMDNeutral, kPMDCharged } |
Define the type of clusters for the different calorimeters. More... | |
enum | VCluPID_t { kElectron = 0, kMuon = 1, kPion = 2, kKaon = 3, kProton = 4, kPhoton = 5, kPi0 = 6, kNeutron = 7, kKaon0 = 8, kEleCon = 9, kUnknown = 10, kCharged = 11, kNeutral = 12 } |
Define the PID types. More... | |
enum | VCluUserDefEnergy_t { kNonLinCorr = 0, kHadCorr = 1, kUserDefEnergy1 = 2, kUserDefEnergy2 = 3, kLastUserDefEnergy = 4 } |
Define the correction types. More... | |
Base class for calorimeter cluster data handling.
Base class to access calorimeter (EMCAL, PHOS, PMD, FMD) cluster data
Definition at line 19 of file AliAODCluster.h.
AliAODCluster::AliAODCluster | ( | ) |
Default constructor.
Definition at line 26 of file AliAODCluster.cxx.
AliAODCluster::AliAODCluster | ( | Int_t | id, |
UInt_t | nLabel, | ||
Int_t * | label, | ||
Double_t | energy, | ||
Double_t | x[3], | ||
Double_t | pid[13], | ||
Char_t | ttype = kUndef , |
||
UInt_t | selectInfo = 0 |
||
) |
Constructor.
Definition at line 47 of file AliAODCluster.cxx.
AliAODCluster::AliAODCluster | ( | Int_t | id, |
UInt_t | nLabel, | ||
Int_t * | label, | ||
Float_t | energy, | ||
Float_t | x[3], | ||
Float_t | pid[13], | ||
Char_t | ttype = kUndef , |
||
UInt_t | selectInfo = 0 |
||
) |
Constructor.
Definition at line 78 of file AliAODCluster.cxx.
|
virtual |
Destructor
Definition at line 109 of file AliAODCluster.cxx.
AliAODCluster::AliAODCluster | ( | const AliAODCluster & | clus | ) |
Copy constructor.
Definition at line 127 of file AliAODCluster.cxx.
|
inlinevirtual |
Reimplemented from AliVCluster.
Definition at line 47 of file AliAODCluster.h.
Referenced by Print().
void AliAODCluster::Clear | ( | const Option_t * | ) |
Clear
Definition at line 118 of file AliAODCluster.cxx.
|
inlinevirtual |
Reimplemented from AliVCluster.
Definition at line 49 of file AliAODCluster.h.
Referenced by AliAODCaloCluster::GetMomentum(), AliAODCaloCluster::GetUserDefEnergy(), Print(), and AliAODCaloCluster::SetUserDefEnergy().
|
inlinevirtual |
Reimplemented from AliVCluster.
Definition at line 113 of file AliAODCluster.h.
|
virtual |
mcIndex | position of MC particle in array GetLabels() |
The parameter is stored as %, return the corresponding float.
Reimplemented from AliVCluster.
Definition at line 296 of file AliAODCluster.cxx.
|
inlinevirtual |
Reimplemented from AliVCluster.
Definition at line 56 of file AliAODCluster.h.
|
inlinevirtual |
Reimplemented from AliVCluster.
Definition at line 62 of file AliAODCluster.h.
|
virtual |
Get the label i of the possible fNLabel in the array fLabel
Reimplemented from AliVCluster.
Definition at line 246 of file AliAODCluster.cxx.
Referenced by GetLabel(), and AliAODHandler::StoreMCParticles().
|
inlinevirtual |
Reimplemented from AliVCluster.
Definition at line 66 of file AliAODCluster.h.
Referenced by AliAODHandler::StoreMCParticles().
|
inlinevirtual |
Reimplemented from AliVCluster.
Definition at line 108 of file AliAODCluster.h.
UShort_t AliAODCluster::GetMostProbablePID | ( | ) | const |
Definition at line 196 of file AliAODCluster.cxx.
Referenced by E().
|
inlinevirtual |
Reimplemented from AliVCluster.
Definition at line 67 of file AliAODCluster.h.
Referenced by AliAODHandler::StoreMCParticles().
|
inlinevirtual |
Reimplemented from AliVCluster.
Definition at line 55 of file AliAODCluster.h.
Referenced by Print().
|
inlinevirtual |
Reimplemented from AliVCluster.
Definition at line 73 of file AliAODCluster.h.
Referenced by AliAODCaloCluster::GetMomentum().
|
inlinevirtual |
Reimplemented from AliVCluster.
Definition at line 71 of file AliAODCluster.h.
Referenced by Print().
|
inlinevirtual |
Reimplemented from AliVCluster.
Definition at line 76 of file AliAODCluster.h.
Referenced by AliAnalysisTaskSE::Exec(), and AliAODEvent::GetEMCALClusters().
|
inlinevirtual |
Reimplemented from AliVCluster.
Definition at line 79 of file AliAODCluster.h.
Referenced by AliAnalysisTaskSE::Exec(), and AliAODEvent::GetPHOSClusters().
AliAODCluster & AliAODCluster::operator= | ( | const AliAODCluster & | clus | ) |
Assignment operator.
Definition at line 150 of file AliAODCluster.cxx.
Referenced by AliAODPmdCluster::operator=(), AliAODFmdCluster::operator=(), and AliAODCaloCluster::operator=().
void AliAODCluster::Print | ( | const Option_t * | opt = "" | ) | const |
Prints information about AliAODCluster.
Definition at line 276 of file AliAODCluster.cxx.
Referenced by IsPHOS().
void AliAODCluster::RemoveLabel | ( | ) |
Delete MC arrays, used in destructor and Clear() and SetLabel() methods
Definition at line 259 of file AliAODCluster.cxx.
Referenced by Clear(), AliAODCaloCluster::Clear(), SetLabel(), SetPIDFromESD(), and ~AliAODCluster().
|
inlinevirtual |
Reimplemented from AliVCluster.
Definition at line 91 of file AliAODCluster.h.
|
virtual |
Set the array with the fraction of deposited energy in cluster by a given primary particle. Each entry of the array corresponds to the same entry in GetLabels().
The fraction must already be in % with respect the cluster energy, store a value between 0 and 100
Execute after setting of fLable and fNLabel
array | array of fraction of energy deposition / cluster energy |
Reimplemented from AliVCluster.
Definition at line 337 of file AliAODCluster.cxx.
Referenced by AliAODCluster(), AliAnalysisTaskESDfilter::ConvertCaloClusters(), operator=(), and SetMCEnergyFraction().
|
virtual |
Set the array with the fraction of deposited energy in cluster by a given primary particle. Each entry of the array corresponds to the same entry in GetLabels(). Set the fraction in % with respect the cluster energy, store a value between 0 and 100
Not sure this method is usable for AODs
array | energy deposition array |
Reimplemented from AliVCluster.
Definition at line 312 of file AliAODCluster.cxx.
Referenced by SetMCEnergyFraction().
|
inline |
Definition at line 87 of file AliAODCluster.h.
Referenced by AliEMCALAfterBurnerUF::RecPoints2Clusters().
|
inlinevirtual |
Reimplemented from AliVCluster.
Definition at line 88 of file AliAODCluster.h.
|
virtual |
Set the array with MC particle labels and number of labels.
Reimplemented from AliVCluster.
Definition at line 223 of file AliAODCluster.cxx.
Referenced by AliAODCluster(), operator=(), and SetType().
|
inlinevirtual |
Reimplemented from AliVCluster.
Definition at line 109 of file AliAODCluster.h.
|
inlinevirtual |
Reimplemented from AliVCluster.
Definition at line 99 of file AliAODCluster.h.
Referenced by AliAODCluster().
|
inlinevirtual |
Reimplemented from AliVCluster.
Definition at line 97 of file AliAODCluster.h.
Referenced by AliAODCluster().
|
inline |
Definition at line 102 of file AliAODCluster.h.
Referenced by AliAnalysisTaskESDfilter::ConvertCaloClusters().
|
virtual |
Set cluster global position.
Reimplemented from AliVCluster.
Definition at line 179 of file AliAODCluster.cxx.
Referenced by AliAODCluster(), AliEMCALAfterBurnerUF::RecPoints2Clusters(), and SetChi2().
|
inlinevirtual |
Reimplemented from AliVCluster.
Definition at line 94 of file AliAODCluster.h.
Referenced by AliAODCluster().
|
inlinevirtual |
Reimplemented from AliVCluster.
Definition at line 89 of file AliAODCluster.h.
Referenced by AliEMCALAfterBurnerUF::RecPoints2Clusters().
|
inline |
Definition at line 69 of file AliAODCluster.h.
|
private |
Chi2 of unfolding fit (probably not necessary for PMD).
Definition at line 122 of file AliAODCluster.h.
Referenced by Chi2(), operator=(), and SetChi2().
|
private |
Array with fraction of deposited energy per MC particle contributing to the cluster.
Definition at line 141 of file AliAODCluster.h.
Referenced by AliAODCluster(), GetClusterMCEdepFraction(), operator=(), RemoveLabel(), SetClusterMCEdepFraction(), and SetClusterMCEdepFractionFromEdepArray().
|
private |
Cluster energy.
Definition at line 118 of file AliAODCluster.h.
Referenced by E(), operator=(), and SetE().
|
private |
Filter information, one bit per set of cuts.
Definition at line 134 of file AliAODCluster.h.
Referenced by operator=(), and TestFilterBit().
|
private |
Unique cluster ID, points back to the ESD cluster.
Definition at line 127 of file AliAODCluster.h.
Referenced by GetID(), operator=(), and SetID().
|
private |
Particle label array, points back to MC particles that generated the cluster.
Definition at line 132 of file AliAODCluster.h.
Referenced by AliAODCluster(), GetLabel(), GetLabelAt(), GetLabels(), operator=(), RemoveLabel(), and SetLabel().
|
private |
! MC energy (embedding)
Definition at line 138 of file AliAODCluster.h.
Referenced by GetMCEnergyFraction(), operator=(), and SetMCEnergyFraction().
|
private |
Number of original MC particles generating this cluster.
Definition at line 129 of file AliAODCluster.h.
Referenced by AliAODCluster(), GetClusterMCEdepFraction(), GetLabel(), GetLabelAt(), GetNLabels(), operator=(), RemoveLabel(), SetClusterMCEdepFraction(), SetClusterMCEdepFractionFromEdepArray(), and SetLabel().
|
private |
Pointer to PID object, array with bayesian probability weights.
Definition at line 125 of file AliAODCluster.h.
Referenced by AliAODCluster(), GetMostProbablePID(), GetPID(), operator=(), SetPID(), SetPIDAt(), and SetPIDFromESD().
|
private |
Position of the cluster.
Definition at line 120 of file AliAODCluster.h.
Referenced by AliAODCluster(), GetPosition(), operator=(), SetPosition(), and SetPositionAt().
|
private |
cluster type
Definition at line 136 of file AliAODCluster.h.
Referenced by GetType(), IsEMCAL(), IsPHOS(), operator=(), and SetType().