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

#include <AliFMDESDFixer.h>

Inheritance diagram for AliFMDESDFixer:

Public Member Functions

 AliFMDESDFixer ()
 
 AliFMDESDFixer (const char *name)
 
const char * GetName () const
 
void CreateOutputObjects (TList *l)
 
void Fix (AliESDFMD &esd, const TVector3 &ip)
 
void Print (Option_t *option="") const
 
Noise suppression fix
void SetRecoNoiseFactor (Int_t f)
 
void SetMaxNoiseCorrection (Double_t x)
 
Int_t GetRecoNoiseFactor () const
 
Bool_t IsUseNoiseCorrection () const
 
Int_t FindTargetNoiseFactor (const AliESDFMD &esd, Bool_t check=true) const
 
Recalculations
void SetRecalculateEta (Bool_t use)
 
Special treatmeant of invalid signals
void SetInvalidIsEmpty (Bool_t flag)
 
Dead strip handling
void AddDead (UShort_t d, Char_t r, UShort_t s, UShort_t t)
 
void AddDeadRegion (UShort_t d, Char_t r, UShort_t s1, UShort_t s2, UShort_t t1, UShort_t t2)
 
void AddDead (const Char_t *script)
 

Protected Member Functions

 AliFMDESDFixer (const AliFMDESDFixer &)
 
AliFMDESDFixeroperator= (const AliFMDESDFixer &)
 

Worker functions

Int_t fRecoFactor
 
Double_t fMaxNoiseCorr
 
Bool_t fRecalculateEta
 
TBits fXtraDead
 
Bool_t fHasXtraDead
 
Bool_t fInvalidIsEmpty
 
TH1fNoiseChange
 
TH1fEtaChange
 
TH1fDeadChange
 
virtual Bool_t IsDead (UShort_t d, Char_t r, UShort_t s, UShort_t t) const
 
Bool_t CheckDead (UShort_t d, Char_t r, UShort_t s, UShort_t t, Double_t &m)
 
void RecalculateEta (UShort_t d, Char_t r, UShort_t s, UShort_t t, const TVector3 &ip, Double_t &mult, Double_t &eta, Double_t &cosTheta)
 
Bool_t NoiseCorrect (Int_t f, Double_t c, Double_t cosTheta, Double_t &mult)
 
 ClassDef (AliFMDESDFixer, 1)
 

Detailed Description

Class to fix up an ESD object for various small issues.

Input:
  • AliESDFMD object - from reconstruction
  • Ip z coordinate - from reconstruction
  • Reco noise factor - Assumed noise factor used in reconstruction
Output:
Corrections used
Histograms
  • Change in \(\Delta\) due to noise correction
  • Number of channels declared dead
  • Change in \(\eta\)

Definition at line 32 of file AliFMDESDFixer.h.

Constructor & Destructor Documentation

AliFMDESDFixer::AliFMDESDFixer ( )

Default CTOR - for ROOT I/O - do not use

Definition at line 21 of file AliFMDESDFixer.cxx.

AliFMDESDFixer::AliFMDESDFixer ( const char *  name)

User CTOR

Parameters
nameDummy argument

Definition at line 35 of file AliFMDESDFixer.cxx.

AliFMDESDFixer::AliFMDESDFixer ( const AliFMDESDFixer o)
protected

Definition at line 50 of file AliFMDESDFixer.cxx.

Member Function Documentation

void AliFMDESDFixer::AddDead ( UShort_t  d,
Char_t  r,
UShort_t  s,
UShort_t  t 
)

Add a dead strip

Parameters
dDetector
rRing
sSector
tStrip

Definition at line 135 of file AliFMDESDFixer.cxx.

Referenced by AddDeadRegion(), AddTaskFMDELoss(), and AddTaskForwardMult().

void AliFMDESDFixer::AddDead ( const Char_t script)

Add dead strips from a script. The script is supposed to accept a pointer to this object (AliFMDSharingFilter) and then call AddDead or AddDeadRegion as needed.

void deadstrips(AliFMDSharingFilter* filter)
{
filter->AddDead(...);
// ... and so on
}
Parameters
scriptThe script to read dead strips from.

Definition at line 173 of file AliFMDESDFixer.cxx.

void AliFMDESDFixer::AddDeadRegion ( UShort_t  d,
Char_t  r,
UShort_t  s1,
UShort_t  s2,
UShort_t  t1,
UShort_t  t2 
)

Add a dead region in a detector ring

Parameters
dDetector
rRing
s1First sector (inclusive)
s2Last sector (inclusive)
t1First strip (inclusive)
t2Last strip (inclusive)

Definition at line 161 of file AliFMDESDFixer.cxx.

Referenced by elossFitConfig(), and ForwardAODConfig().

Bool_t AliFMDESDFixer::CheckDead ( UShort_t  d,
Char_t  r,
UShort_t  s,
UShort_t  t,
Double_t m 
)
protected

Possibly raise a strip from the dead or kill it

Parameters
dDetector
rRing
sSector
tStrip
mMultiplicity
Returns
true if this was killed

Definition at line 299 of file AliFMDESDFixer.cxx.

Referenced by Fix().

AliFMDESDFixer::ClassDef ( AliFMDESDFixer  ,
 
)
protected
void AliFMDESDFixer::CreateOutputObjects ( TList l)

Create output objects

Definition at line 84 of file AliFMDESDFixer.cxx.

Referenced by AliForwardQATask::Book(), AliFMDEnergyFitterTask::Book(), and AliForwardMultiplicityBase::Book().

Int_t AliFMDESDFixer::FindTargetNoiseFactor ( const AliESDFMD esd,
Bool_t  check = true 
) const

Find the target noise factor

Parameters
esdESD object.
checkIf true, also check for correction object
Returns
Needed noise factor, or 0 or less if no correction is needed

Definition at line 200 of file AliFMDESDFixer.cxx.

Referenced by Fix(), AliForwardMultiplicityTask::PreCorrections(), and AliFMDEnergyFitterTask::PreCorrections().

void AliFMDESDFixer::Fix ( AliESDFMD esd,
const TVector3 &  ip 
)

Fix the ESD object

Parameters
esdESD object
ipIP coordinates

Definition at line 247 of file AliFMDESDFixer.cxx.

Referenced by AliForwardMultiplicityTask::Event(), AliForwardMCMultiplicityTask::Event(), AliForwardQATask::Event(), and AliFMDEnergyFitterTask::Event().

const char* AliFMDESDFixer::GetName ( ) const
inline

Get name of object

Returns
Always the same

Definition at line 51 of file AliFMDESDFixer.h.

Referenced by CreateOutputObjects().

Int_t AliFMDESDFixer::GetRecoNoiseFactor ( ) const
inline

Get the factor assumed in reconstruction pass

Returns
factor assumed in reconstruction pass

Definition at line 82 of file AliFMDESDFixer.h.

Bool_t AliFMDESDFixer::IsDead ( UShort_t  d,
Char_t  r,
UShort_t  s,
UShort_t  t 
) const
protectedvirtual

Check if a strip is marked as dead

Parameters
dDetector
rRing
sSector
tStrip
Returns
true if dead

Definition at line 192 of file AliFMDESDFixer.cxx.

Referenced by CheckDead().

Bool_t AliFMDESDFixer::IsUseNoiseCorrection ( ) const
inline

Check if we're using the noise correction.

Returns
true if fRecoFactor < 4

Definition at line 88 of file AliFMDESDFixer.h.

Referenced by AliFMDEnergyFitterTask::Book(), and FindTargetNoiseFactor().

Bool_t AliFMDESDFixer::NoiseCorrect ( Int_t  f,
Double_t  c,
Double_t  cosTheta,
Double_t mult 
)
protected

Correct for noise suppression

Parameters
fFactor to apply
cCorrection
cosThetaCosine to theta
multIn/Out multiplity
Returns
true if signal is good, otherwise false

Definition at line 345 of file AliFMDESDFixer.cxx.

Referenced by Fix().

AliFMDESDFixer & AliFMDESDFixer::operator= ( const AliFMDESDFixer o)
protected

Definition at line 65 of file AliFMDESDFixer.cxx.

void AliFMDESDFixer::Print ( Option_t option = "") const
void AliFMDESDFixer::RecalculateEta ( UShort_t  d,
Char_t  r,
UShort_t  s,
UShort_t  t,
const TVector3 &  ip,
Double_t mult,
Double_t eta,
Double_t cosTheta 
)
protected

Re-calculate eta and correct the multiplicity accordingly

Parameters
dDetector
rRing
sSector
tStrip
ipIp coordinates
multIn/out multiplicity
etaIn/out eta
cosThetaOn return, the cosine of theta or null

Definition at line 315 of file AliFMDESDFixer.cxx.

Referenced by Fix().

void AliFMDESDFixer::SetInvalidIsEmpty ( Bool_t  flag)
inline

Set whether to consider invalid multiplicities as null (or empty) signal.

Parameters
flagIf true, count invalids as empty

Definition at line 124 of file AliFMDESDFixer.h.

Referenced by ForwardAODConfig(), and TunedConfig().

void AliFMDESDFixer::SetMaxNoiseCorrection ( Double_t  x)
inline

Definition at line 76 of file AliFMDESDFixer.h.

Referenced by elossFitConfig(), ForwardAODConfig(), and TunedConfig().

void AliFMDESDFixer::SetRecalculateEta ( Bool_t  use)
inline

In case of a displaced vertices recalculate \(\eta\) and angle correction

Parameters
userecalculate or not

Definition at line 111 of file AliFMDESDFixer.h.

Referenced by ForwardAODConfig(), and TunedConfig().

void AliFMDESDFixer::SetRecoNoiseFactor ( Int_t  f)
inline

Set the factor assumed to be used in the reconstruction. If this is set way high (>=4) then this corrector will effectively be disabled.

Parameters
f

Definition at line 75 of file AliFMDESDFixer.h.

Referenced by AddTaskFMDELoss(), AliForwardMCMultiplicityTask::Book(), ForwardAODConfig(), AliForwardMultiplicityTask::PreCorrections(), AliFMDEnergyFitterTask::PreCorrections(), and TunedConfig().

Member Data Documentation

TH1* AliFMDESDFixer::fDeadChange
protected

Definition at line 237 of file AliFMDESDFixer.h.

Referenced by CreateOutputObjects(), Fix(), and operator=().

TH1* AliFMDESDFixer::fEtaChange
protected

Definition at line 236 of file AliFMDESDFixer.h.

Referenced by CreateOutputObjects(), operator=(), and RecalculateEta().

Bool_t AliFMDESDFixer::fHasXtraDead
protected

Definition at line 233 of file AliFMDESDFixer.h.

Referenced by CreateOutputObjects(), Fix(), operator=(), and Print().

Bool_t AliFMDESDFixer::fInvalidIsEmpty
protected
Double_t AliFMDESDFixer::fMaxNoiseCorr
protected

Definition at line 230 of file AliFMDESDFixer.h.

Referenced by NoiseCorrect(), operator=(), Print(), and SetMaxNoiseCorrection().

TH1* AliFMDESDFixer::fNoiseChange
protected

Definition at line 235 of file AliFMDESDFixer.h.

Referenced by CreateOutputObjects(), NoiseCorrect(), and operator=().

Bool_t AliFMDESDFixer::fRecalculateEta
protected

Definition at line 231 of file AliFMDESDFixer.h.

Referenced by CreateOutputObjects(), Fix(), operator=(), Print(), and SetRecalculateEta().

Int_t AliFMDESDFixer::fRecoFactor
protected
TBits AliFMDESDFixer::fXtraDead
protected

Definition at line 232 of file AliFMDESDFixer.h.

Referenced by AddDead(), CreateOutputObjects(), IsDead(), operator=(), and Print().


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