AliPhysics  a4b41ad (a4b41ad)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliIsolationCut Class Reference

Class with utils to perform Isolation Cuts. More...

#include <AliIsolationCut.h>

Inheritance diagram for AliIsolationCut:

Public Types

enum  type {
  kPtThresIC, kSumPtIC, kPtFracIC, kSumPtFracIC,
  kSumDensityIC, kSumBkgSubIC
}
 
enum  partInCone { kNeutralAndCharged =0, kOnlyNeutral =1, kOnlyCharged =2 }
 

Public Member Functions

 AliIsolationCut ()
 Default constructor. Initialize parameters. More...
 
virtual ~AliIsolationCut ()
 Virtual destructor. More...
 
void InitParameters ()
 
TString GetICParametersList ()
 
Float_t GetCellDensity (AliAODPWG4ParticleCorrelation *pCandidate, AliCaloTrackReader *reader) const
 Get good cell density (number of active cells over all cells in cone). More...
 
void MakeIsolationCut (TObjArray *plCTS, TObjArray *plNe, AliCaloTrackReader *reader, AliCaloPID *pid, Bool_t bFillAOD, AliAODPWG4ParticleCorrelation *pCandidate, TString aodObjArrayName, Int_t &n, Int_t &nfrac, Float_t &ptSum, Float_t &ptLead, Bool_t &isolated)
 
void Print (const Option_t *opt) const
 Print some relevant parameters set for the analysis. More...
 
Float_t Radius (Float_t etaCandidate, Float_t phiCandidate, Float_t eta, Float_t phi) const
 
Float_t CalculateExcessAreaFraction (Float_t excess) const
 
void CalculateUEBandClusterNormalization (AliCaloTrackReader *reader, Float_t etaC, Float_t phiC, Float_t phiUEptsumCluster, Float_t etaUEptsumCluster, Float_t &phiUEptsumClusterNorm, Float_t &etaUEptsumClusterNorm, Float_t &excessFracEta, Float_t &excessFracPhi) const
 Get normalization of cluster background band. More...
 
void CalculateUEBandTrackNormalization (AliCaloTrackReader *reader, Float_t etaC, Float_t phiC, Float_t phiUEptsumTrack, Float_t etaUEptsumTrack, Float_t &phiUEptsumTrackNorm, Float_t &etaUEptsumTrackNorm, Float_t &excessFracEta, Float_t &excessFracPhi) const
 Get normalization of track background band. More...
 
void GetCoeffNormBadCell (AliAODPWG4ParticleCorrelation *pCandidate, AliCaloTrackReader *reader, Float_t &coneBadCellsCoeff, Float_t &etaBandBadCellsCoeff, Float_t &phiBandBadCellsCoeff)
 Get good cell density (number of active cells over all cells in cone). More...
 
Float_t GetConeSize () const
 
Float_t GetPtThreshold () const
 
Float_t GetPtThresholdMax () const
 
Float_t GetSumPtThreshold () const
 
Float_t GetSumPtThresholdMax () const
 
Float_t GetPtFraction () const
 
Int_t GetICMethod () const
 
Int_t GetParticleTypeInCone () const
 
Int_t GetDebug () const
 
Bool_t GetFracIsThresh () const
 
Float_t GetMinDistToTrigger () const
 
void SetConeSize (Float_t r)
 
void SetPtThreshold (Float_t pt)
 
void SetPtThresholdMax (Float_t pt)
 
void SetSumPtThreshold (Float_t s)
 
void SetSumPtThresholdMax (Float_t s)
 
void SetPtFraction (Float_t pt)
 
void SetICMethod (Int_t i)
 
void SetParticleTypeInCone (Int_t i)
 
void SetDebug (Int_t d)
 
void SetFracIsThresh (Bool_t f)
 
void SetTrackMatchedClusterRejectionInCone (Bool_t tm)
 
void SetMinDistToTrigger (Float_t md)
 

Private Member Functions

 AliIsolationCut (const AliIsolationCut &g)
 Copy constructor not implemented. More...
 
AliIsolationCutoperator= (const AliIsolationCut &g)
 Assignment operator not implemented. More...
 

Private Attributes

Float_t fConeSize
 Size of the isolation cone. More...
 
Float_t fPtThreshold
 Minimum pt of the particles in the cone or sum in cone (UE pt mean in the forward region cone) More...
 
Float_t fPtThresholdMax
 Maximum pt of the particles outside the cone (needed to fit shower distribution isolated/non-isolated particles) More...
 
Float_t fSumPtThreshold
 Minimum of sum pt of the particles in the cone (UE sum in the forward region cone) More...
 
Float_t fSumPtThresholdMax
 Maximum of sum pt of the particles in the cone (UE sum in the forward region cone) More...
 
Float_t fPtFraction
 Fraction of the momentum of particles in cone or sum in cone. More...
 
Int_t fICMethod
 Isolation cut method to be used: kPtIC, kSumPtIC, kPtFracIC, kSumPtFracIC. More...
 
Int_t fPartInCone
 Type of particles inside cone: kNeutralAndCharged, kOnlyNeutral, kOnlyCharged. More...
 
Int_t fDebug
 Debug level. More...
 
Bool_t fFracIsThresh
 Use threshold instead of fraction when pt leading is small. More...
 
Bool_t fIsTMClusterInConeRejected
 Enable to remove the Track matching removal of clusters in cone sum pt calculation in case of kNeutralAndCharged analysis. More...
 
Float_t fDistMinToTrigger
 Minimal distance between isolation candidate particle and particles in cone to count them for this isolation. More...
 
TLorentzVector fMomentum
 ! Momentum of cluster, temporal object. More...
 
TVector3 fTrackVector
 ! Track moment, temporal object. More...
 

Detailed Description

Class with utils to perform Isolation Cuts.

Class containing methods for the isolation cut. An AOD candidate (AliAODPWG4ParticleCorrelation type) is passed. Look in a cone around the candidate and study the hadronic activity inside to decide if the candidate is isolated

More information can be found in this twiki.

Author
Gustavo Conesa Balbastre Gusta.nosp@m.vo.C.nosp@m.onesa.nosp@m..Bal.nosp@m.bastr.nosp@m.e@ce.nosp@m.rn.ch, LPSC-IN2P3-CNRS

Definition at line 30 of file AliIsolationCut.h.

Member Enumeration Documentation

Enumerator
kNeutralAndCharged 
kOnlyNeutral 
kOnlyCharged 

Definition at line 43 of file AliIsolationCut.h.

Enumerator
kPtThresIC 
kSumPtIC 
kPtFracIC 
kSumPtFracIC 
kSumDensityIC 
kSumBkgSubIC 

Definition at line 41 of file AliIsolationCut.h.

Constructor & Destructor Documentation

AliIsolationCut::AliIsolationCut ( )

Default constructor. Initialize parameters.

Definition at line 42 of file AliIsolationCut.cxx.

virtual AliIsolationCut::~AliIsolationCut ( )
inlinevirtual

Virtual destructor.

Definition at line 37 of file AliIsolationCut.h.

AliIsolationCut::AliIsolationCut ( const AliIsolationCut g)
private

Copy constructor not implemented.

Member Function Documentation

Float_t AliIsolationCut::CalculateExcessAreaFraction ( Float_t  excess) const

If isolation cone are is outside a detector, calculate the area in excess.

Parameters
excesscone size minus acceptance of detector.
Returns
Area of a circunference segment 1/2 R^2 (angle-sin(angle)), angle = 2*ACos((R-excess)/R).

Definition at line 150 of file AliIsolationCut.cxx.

Referenced by AliAnaParticleIsolation::CalculateNormalizeUEBandPerUnitArea(), CalculateUEBandClusterNormalization(), and CalculateUEBandTrackNormalization().

void AliIsolationCut::CalculateUEBandClusterNormalization ( AliCaloTrackReader reader,
Float_t  etaC,
Float_t  phiC,
Float_t  phiUEptsumCluster,
Float_t  etaUEptsumCluster,
Float_t phiUEptsumClusterNorm,
Float_t etaUEptsumClusterNorm,
Float_t excessFracEta,
Float_t excessFracPhi 
) const

Get normalization of cluster background band.

Definition at line 65 of file AliIsolationCut.cxx.

Referenced by AliAnaParticleIsolation::CalculateNormalizeUEBandPerUnitArea(), and MakeIsolationCut().

void AliIsolationCut::CalculateUEBandTrackNormalization ( AliCaloTrackReader reader,
Float_t  etaC,
Float_t  phiC,
Float_t  phiUEptsumTrack,
Float_t  etaUEptsumTrack,
Float_t phiUEptsumTrackNorm,
Float_t etaUEptsumTrackNorm,
Float_t excessFracEta,
Float_t excessFracPhi 
) const

Get normalization of track background band.

Definition at line 105 of file AliIsolationCut.cxx.

Referenced by AliAnaParticleIsolation::CalculateNormalizeUEBandPerUnitArea(), and MakeIsolationCut().

Float_t AliIsolationCut::GetCellDensity ( AliAODPWG4ParticleCorrelation *  pCandidate,
AliCaloTrackReader reader 
) const

Get good cell density (number of active cells over all cells in cone).

Definition at line 170 of file AliIsolationCut.cxx.

Referenced by MakeIsolationCut(), and AliAnaParticleIsolation::MakeSeveralICAnalysis().

void AliIsolationCut::GetCoeffNormBadCell ( AliAODPWG4ParticleCorrelation *  pCandidate,
AliCaloTrackReader reader,
Float_t coneBadCellsCoeff,
Float_t etaBandBadCellsCoeff,
Float_t phiBandBadCellsCoeff 
)

Get good cell density (number of active cells over all cells in cone).

Definition at line 253 of file AliIsolationCut.cxx.

Int_t AliIsolationCut::GetDebug ( ) const
inline

Definition at line 95 of file AliIsolationCut.h.

Referenced by AliAnaCaloTrackCorrBaseClass::InitDebug().

Bool_t AliIsolationCut::GetFracIsThresh ( ) const
inline

Definition at line 96 of file AliIsolationCut.h.

Int_t AliIsolationCut::GetICMethod ( ) const
inline
TString AliIsolationCut::GetICParametersList ( )

Definition at line 350 of file AliIsolationCut.cxx.

Referenced by AliAnaParticleIsolation::GetAnalysisCuts().

Float_t AliIsolationCut::GetMinDistToTrigger ( ) const
inline

Definition at line 97 of file AliIsolationCut.h.

Float_t AliIsolationCut::GetPtFraction ( ) const
inline

Definition at line 92 of file AliIsolationCut.h.

Referenced by AliAnaParticleIsolation::MakeSeveralICAnalysis().

Float_t AliIsolationCut::GetPtThresholdMax ( ) const
inline

Definition at line 89 of file AliIsolationCut.h.

Float_t AliIsolationCut::GetSumPtThreshold ( ) const
inline
Float_t AliIsolationCut::GetSumPtThresholdMax ( ) const
inline

Definition at line 91 of file AliIsolationCut.h.

void AliIsolationCut::InitParameters ( )

Definition at line 381 of file AliIsolationCut.cxx.

Referenced by AliIsolationCut().

void AliIsolationCut::MakeIsolationCut ( TObjArray plCTS,
TObjArray plNe,
AliCaloTrackReader reader,
AliCaloPID pid,
Bool_t  bFillAOD,
AliAODPWG4ParticleCorrelation *  pCandidate,
TString  aodArrayRefName,
Int_t n,
Int_t nfrac,
Float_t coneptsum,
Float_t ptLead,
Bool_t isolated 
)

Declare a candidate particle isolated depending on the cluster or track particle multiplicity and/or momentum.

Parameters
plCTSList of tracks.
plNeList of clusters.
readerpointer to AliCaloTrackReader. Needed to access event info.
pidpointer to AliCaloPID. Needed to reject matched clusters in isolation cone.
bFillAODIndicate if particles in cone must be added to AOD particle object.
pCandidateKinematics and + of candidate particle for isolation.
aodArrayRefNameName of array where list of tracks/clusters in cone is stored.
nnumber of tracks/clusters above threshold in cone, output.
nfrac1 if fraction pT cluster-track / pT trigger in cone avobe threshold, output.
coneptsumtotal momentum energy in cone (track+cluster), output.
ptLeadmomentum of leading cluster or track in cone, output.
isolatedfinal bool with decission on isolation of candidate particle.

Definition at line 413 of file AliIsolationCut.cxx.

Referenced by AliAnaParticleIsolation::MakeAnalysisFillAOD(), AliAnaParticleIsolation::MakeAnalysisFillHistograms(), AliAnaParticleHadronCorrelation::MakeChargedMixCorrelation(), and AliAnaParticleIsolation::MakeSeveralICAnalysis().

AliIsolationCut& AliIsolationCut::operator= ( const AliIsolationCut g)
private

Assignment operator not implemented.

void AliIsolationCut::Print ( const Option_t opt) const

Print some relevant parameters set for the analysis.

Definition at line 884 of file AliIsolationCut.cxx.

Referenced by AddTaskCaloTrackCorrM(), and ConfigureIsolationAnalysis().

Float_t AliIsolationCut::Radius ( Float_t  etaC,
Float_t  phiC,
Float_t  eta,
Float_t  phi 
) const

Calculate the distance to trigger from any particle.

Parameters
etaCpseudorapidity of candidate particle.
phiCazimuthal angle of candidate particle.
etapseudorapidity of track/cluster to be considered in cone.
phiazimuthal angle of track/cluster to be considered in cone.

Definition at line 909 of file AliIsolationCut.cxx.

Referenced by AliAnaParticleIsolation::CalculateCaloSignalInCone(), AliAnaParticleIsolation::CalculateCaloUEBand(), AliAnaParticleIsolation::CalculateTrackSignalInCone(), AliAnaParticleIsolation::CalculateTrackUEBand(), AliAnaParticleIsolation::FillAcceptanceHistograms(), GetCellDensity(), GetCoeffNormBadCell(), AliAnaGeneratorKine::GetPartonsAndJets(), AliAnaGeneratorKine::IsLeadingAndIsolated(), AliAnaPi0EbE::MakeInvMassInCalorimeter(), MakeIsolationCut(), and AliAnaParticleIsolation::MakeSeveralICAnalysis().

void AliIsolationCut::SetDebug ( Int_t  d)
inline
void AliIsolationCut::SetFracIsThresh ( Bool_t  f)
inline

Definition at line 108 of file AliIsolationCut.h.

void AliIsolationCut::SetICMethod ( Int_t  i)
inline
void AliIsolationCut::SetMinDistToTrigger ( Float_t  md)
inline

Definition at line 110 of file AliIsolationCut.h.

void AliIsolationCut::SetParticleTypeInCone ( Int_t  i)
inline
void AliIsolationCut::SetPtThresholdMax ( Float_t  pt)
inline

Definition at line 101 of file AliIsolationCut.h.

Referenced by ConfigureIsolationAnalysis().

void AliIsolationCut::SetSumPtThresholdMax ( Float_t  s)
inline

Definition at line 103 of file AliIsolationCut.h.

void AliIsolationCut::SetTrackMatchedClusterRejectionInCone ( Bool_t  tm)
inline

Definition at line 109 of file AliIsolationCut.h.

Referenced by ConfigureIsolationAnalysis().

Member Data Documentation

Int_t AliIsolationCut::fDebug
private

Debug level.

Definition at line 130 of file AliIsolationCut.h.

Referenced by GetDebug(), and SetDebug().

Float_t AliIsolationCut::fDistMinToTrigger
private

Minimal distance between isolation candidate particle and particles in cone to count them for this isolation.

Definition at line 136 of file AliIsolationCut.h.

Referenced by GetICParametersList(), GetMinDistToTrigger(), InitParameters(), MakeIsolationCut(), Print(), and SetMinDistToTrigger().

Bool_t AliIsolationCut::fFracIsThresh
private

Use threshold instead of fraction when pt leading is small.

Definition at line 132 of file AliIsolationCut.h.

Referenced by GetFracIsThresh(), GetICParametersList(), InitParameters(), MakeIsolationCut(), Print(), and SetFracIsThresh().

Int_t AliIsolationCut::fICMethod
private

Isolation cut method to be used: kPtIC, kSumPtIC, kPtFracIC, kSumPtFracIC.

Definition at line 126 of file AliIsolationCut.h.

Referenced by GetICMethod(), GetICParametersList(), InitParameters(), MakeIsolationCut(), Print(), and SetICMethod().

Bool_t AliIsolationCut::fIsTMClusterInConeRejected
private

Enable to remove the Track matching removal of clusters in cone sum pt calculation in case of kNeutralAndCharged analysis.

Definition at line 134 of file AliIsolationCut.h.

Referenced by MakeIsolationCut(), and SetTrackMatchedClusterRejectionInCone().

TLorentzVector AliIsolationCut::fMomentum
private

! Momentum of cluster, temporal object.

Definition at line 138 of file AliIsolationCut.h.

Referenced by MakeIsolationCut().

Int_t AliIsolationCut::fPartInCone
private

Type of particles inside cone: kNeutralAndCharged, kOnlyNeutral, kOnlyCharged.

Definition at line 128 of file AliIsolationCut.h.

Referenced by GetICParametersList(), GetParticleTypeInCone(), InitParameters(), MakeIsolationCut(), Print(), and SetParticleTypeInCone().

Float_t AliIsolationCut::fPtFraction
private

Fraction of the momentum of particles in cone or sum in cone.

Definition at line 124 of file AliIsolationCut.h.

Referenced by GetICParametersList(), GetPtFraction(), InitParameters(), MakeIsolationCut(), Print(), and SetPtFraction().

Float_t AliIsolationCut::fPtThreshold
private

Minimum pt of the particles in the cone or sum in cone (UE pt mean in the forward region cone)

Definition at line 116 of file AliIsolationCut.h.

Referenced by GetICParametersList(), GetPtThreshold(), InitParameters(), MakeIsolationCut(), Print(), and SetPtThreshold().

Float_t AliIsolationCut::fPtThresholdMax
private

Maximum pt of the particles outside the cone (needed to fit shower distribution isolated/non-isolated particles)

Definition at line 118 of file AliIsolationCut.h.

Referenced by GetICParametersList(), GetPtThresholdMax(), InitParameters(), MakeIsolationCut(), Print(), and SetPtThresholdMax().

Float_t AliIsolationCut::fSumPtThreshold
private

Minimum of sum pt of the particles in the cone (UE sum in the forward region cone)

Definition at line 120 of file AliIsolationCut.h.

Referenced by GetICParametersList(), GetSumPtThreshold(), InitParameters(), MakeIsolationCut(), Print(), and SetSumPtThreshold().

Float_t AliIsolationCut::fSumPtThresholdMax
private

Maximum of sum pt of the particles in the cone (UE sum in the forward region cone)

Definition at line 122 of file AliIsolationCut.h.

Referenced by GetICParametersList(), GetSumPtThresholdMax(), InitParameters(), MakeIsolationCut(), Print(), and SetSumPtThresholdMax().

TVector3 AliIsolationCut::fTrackVector
private

! Track moment, temporal object.

Definition at line 140 of file AliIsolationCut.h.

Referenced by MakeIsolationCut().


The documentation for this class was generated from the following files: