AliPhysics  c7b8e89 (c7b8e89)
AliFMDMultCuts Class Reference

#include <AliFMDMultCuts.h>

Inheritance diagram for AliFMDMultCuts:

Public Types

enum  EMethod {
  kFixed, kMPVFraction, kFitRange, kLandauWidth,
  kLandauSigmaWidth, kProbability, kLandauSigmaAvg
}
 
enum  { kBad = 1024 }
 

Public Member Functions

 AliFMDMultCuts ()
 
 AliFMDMultCuts (EMethod method, Double_t fmd1i, Double_t fmd2i=-1, Double_t fmd2o=-1, Double_t fmd3i=-1, Double_t fmd3o=-1)
 
 AliFMDMultCuts (const AliFMDMultCuts &o)
 
AliFMDMultCutsoperator= (const AliFMDMultCuts &o)
 
void Reset ()
 
Double_t GetMultCut (UShort_t d, Char_t r, Double_t eta, Bool_t errors) const
 
Double_t GetMultCut (UShort_t d, Char_t r, Int_t etabin, Bool_t errors) const
 
void SetMultCuts (Double_t fmd1i, Double_t fmd2i=-1, Double_t fmd2o=-1, Double_t fmd3i=-1, Double_t fmd3o=-1)
 
void SetMPVFraction (Double_t frac=0)
 
void SetNXi (Double_t nXi)
 
void SetIncludeSigma (Bool_t in)
 
void SetProbability (Double_t cut=1e-5)
 
void Set (EMethod method, Double_t fmd1i, Double_t fmd2i=-1, Double_t fmd2o=-1, Double_t fmd3i=-1, Double_t fmd3o=-1)
 
void Print (Option_t *option="") const
 
void FillHistogram (TH2 *h) const
 
void Output (TList *l, const char *name=0) const
 
Bool_t Input (TList *l, const char *name)
 
EMethod GetMethod () const
 
const char * GetMethodString (Bool_t latex=false) const
 

Static Public Member Functions

static const char * Method2String (EMethod method, Bool_t latex)
 
static EMethod String2Method (const char *str)
 

Protected Member Functions

void DepSet (const char *what, EMethod method, Double_t fmd1i, Double_t fmd2i=-1, Double_t fmd2o=-1, Double_t fmd3i=-1, Double_t fmd3o=-1)
 
Double_t GetCutParam (UShort_t d, Char_t r) const
 

Protected Attributes

Double_t fCuts [5]
 
EMethod fMethod
 

Detailed Description

Cuts used when calculating the multiplicity.

We can define our cuts in four ways (in order of priorty)

  • Using a fixed value \( v\)- AliFMDMultCuts:: SetMultCuts
  • Using a fraction \( f\) of the most probably value ( \( \Delta_p\)) from the energy loss fits
  • Using some number \( n\) of widths ( \( \xi\)) below the most probable value ( \( \Delta_p\)) from the energy loss fits
  • Using some number \( n\) of widths ( \( \xi+\sigma\)) below the most probable value ( \( \Delta_p\)) from the energy loss fits
  • Using the \( x\) value for which \( P(x>p)\) given some cut value \( p\)
  • Using the lower fit range of the energy loss fits

The member function AliFMDMultCuts::Reset resets all cut values, meaning the lower bound on the fits will be used by default. This is useful to ensure a fresh start:

The member function AliFMDMultCuts::GetMethod will return the method identifier for the current method employed (AliFMDMultCuts::EMethod). Like wise will the method AliFMDMultCuts::GetMethodString give a human readable string of the current method employed.

Definition at line 38 of file AliFMDMultCuts.h.

Member Enumeration Documentation

anonymous enum
Enumerator
kBad 

Definition at line 50 of file AliFMDMultCuts.h.

Enumerator
kFixed 
kMPVFraction 
kFitRange 
kLandauWidth 
kLandauSigmaWidth 
kProbability 
kLandauSigmaAvg 

Definition at line 41 of file AliFMDMultCuts.h.

Constructor & Destructor Documentation

AliFMDMultCuts::AliFMDMultCuts ( )

CTOR

Definition at line 19 of file AliFMDMultCuts.cxx.

AliFMDMultCuts::AliFMDMultCuts ( EMethod  method,
Double_t  fmd1i,
Double_t  fmd2i = -1,
Double_t  fmd2o = -1,
Double_t  fmd3i = -1,
Double_t  fmd3o = -1 
)

Set the cut for specified method.

Parameters
methodCut method
fmd1iValue for FMD1i
fmd2iValue for FMD2i (if < 0, use fmd1i)
fmd2oValue for FMD2o (if < 0, use fmd1i)
fmd3iValue for FMD3i (if < 0, use fmd1i)
fmd3oValue for FMD3o (if < 0, use fmd1i)

Definition at line 26 of file AliFMDMultCuts.cxx.

AliFMDMultCuts::AliFMDMultCuts ( const AliFMDMultCuts o)

Copy CTOR

Parameters
oOject to copy from

Definition at line 39 of file AliFMDMultCuts.cxx.

Member Function Documentation

void AliFMDMultCuts::DepSet ( const char *  what,
EMethod  method,
Double_t  fmd1i,
Double_t  fmd2i = -1,
Double_t  fmd2o = -1,
Double_t  fmd3i = -1,
Double_t  fmd3o = -1 
)
protected

Set the cut for specified method.

Parameters
whatWhat to set
methodCut method
fmd1iValue for FMD1i
fmd2iValue for FMD2i (if < 0, use fmd1i)
fmd2oValue for FMD2o (if < 0, use fmd1i)
fmd3iValue for FMD3i (if < 0, use fmd1i)
fmd3oValue for FMD3o (if < 0, use fmd1i)

Definition at line 84 of file AliFMDMultCuts.cxx.

Referenced by GetMethod(), SetMPVFraction(), SetMultCuts(), SetNXi(), and SetProbability().

void AliFMDMultCuts::FillHistogram ( TH2 h) const

Fill a histogram with cut values. The histogram is assumed to have rings on the y axis, and \( \eta\) on the x axis.

Parameters
hHistogram to fill

Definition at line 271 of file AliFMDMultCuts.cxx.

Referenced by AliFMDDensityCalculator::CacheMaxWeights(), SetProbability(), and AliFMDSharingFilter::SetupForData().

Double_t AliFMDMultCuts::GetCutParam ( UShort_t  d,
Char_t  r 
) const
protected

Get the cut parameter for a specific ring

Parameters
dDetector
rRing
Returns
Cut parameter

Definition at line 112 of file AliFMDMultCuts.cxx.

Referenced by GetMethod(), GetMultCut(), and Print().

EMethod AliFMDMultCuts::GetMethod ( ) const
inline

Return methid Id

Returns
method number

Definition at line 230 of file AliFMDMultCuts.h.

Referenced by AliForwardQATask::PreData().

const char * AliFMDMultCuts::GetMethodString ( Bool_t  latex = false) const

Get a string descriping the method used

Returns
String

Definition at line 219 of file AliFMDMultCuts.cxx.

Referenced by GetMethod(), and Print().

Double_t AliFMDMultCuts::GetMultCut ( UShort_t  d,
Char_t  r,
Double_t  eta,
Bool_t  errors 
) const

Get the multiplicity cuts for a specific ring and pseudo-rapidity

Parameters
dDetector
rRing
etapseudo-rapidity
errorsGet error on cut
Returns
Cut value

Definition at line 198 of file AliFMDMultCuts.cxx.

Referenced by FillHistogram().

Double_t AliFMDMultCuts::GetMultCut ( UShort_t  d,
Char_t  r,
Int_t  etabin,
Bool_t  errors 
) const

Get the multiplicity cuts for a specific ring and pseudo-rapidity bin

Parameters
dDetector
rRing
etabinpseudo-rapidity bin
errorsGet error on cut
Returns
Cut value

Definition at line 127 of file AliFMDMultCuts.cxx.

Bool_t AliFMDMultCuts::Input ( TList l,
const char *  name 
)

Read in cuts stored in file

Parameters
lList to read from
nameName of possible sub-list
Returns
true on success

Definition at line 317 of file AliFMDMultCuts.cxx.

Referenced by SetProbability().

const char * AliFMDMultCuts::Method2String ( EMethod  method,
Bool_t  latex 
)
static

helper function to translate a method into a string

Parameters
methodMethod identifier
latexIF true, format for TLatex
Returns
String

Definition at line 226 of file AliFMDMultCuts.cxx.

Referenced by MultCutDrawer::DrawMethodLegend(), GetMethod(), and GetMethodString().

AliFMDMultCuts & AliFMDMultCuts::operator= ( const AliFMDMultCuts o)

Assignment operator

Parameters
oObject to asing from
Returns
Reference to this object

Definition at line 47 of file AliFMDMultCuts.cxx.

void AliFMDMultCuts::Output ( TList l,
const char *  name = 0 
) const

Define outputs

Parameters
lList to add to
nameName

Definition at line 297 of file AliFMDMultCuts.cxx.

Referenced by AliFMDDensityCalculator::CreateOutputObjects(), AliFMDSharingFilter::CreateOutputObjects(), and SetProbability().

void AliFMDMultCuts::Print ( Option_t option = "") const

Print information

Parameters
optionNot used

Definition at line 367 of file AliFMDMultCuts.cxx.

Referenced by AliFMDSharingFilter::Print(), AliFMDDensityCalculator::Print(), and SetProbability().

void AliFMDMultCuts::Reset ( )

Reset all cuts to default value.

Definition at line 56 of file AliFMDMultCuts.cxx.

Referenced by AliFMDMultCuts(), and Set().

void AliFMDMultCuts::Set ( EMethod  method,
Double_t  fmd1i,
Double_t  fmd2i = -1,
Double_t  fmd2o = -1,
Double_t  fmd3i = -1,
Double_t  fmd3o = -1 
)

Set the cut for specified method.

Note, that if method is kFixed, and only fmd1i is specified, then the outer rings cut value is increased by 20% relative to fmd1i.

Also note, that if method is kLandauWidth, and cut2 is larger than zero, then \(\sigma\) of the fits are included in the cut value.

Parameters
methodMethod to use
fmd1iValue for FMD1i
fmd2iValue for FMD2i (if < 0, use fmd1i)
fmd2oValue for FMD2o (if < 0, use fmd1i)
fmd3iValue for FMD3i (if < 0, use fmd1i)
fmd3oValue for FMD3o (if < 0, use fmd1i)

Definition at line 63 of file AliFMDMultCuts.cxx.

Referenced by AliFMDMultCuts(), AliFMDSharingFilter::AliFMDSharingFilter(), DepSet(), and SetProbability().

void AliFMDMultCuts::SetIncludeSigma ( Bool_t  in)

Set wether to includle the Gaussian sigma in cut calculation

Parameters
inIf true, use Gaussian variance
Deprecated:
Use AliFMDMultCuts::Set with kLandauSigmaWidth

Definition at line 98 of file AliFMDMultCuts.cxx.

Referenced by SetNXi().

void AliFMDMultCuts::SetMPVFraction ( Double_t  frac = 0)
inline

Set the faction of most probable value

Parameters
fracFraction
Deprecated:
Use AliFMDMultCuts::Set

Definition at line 140 of file AliFMDMultCuts.h.

void AliFMDMultCuts::SetMultCuts ( Double_t  fmd1i,
Double_t  fmd2i = -1,
Double_t  fmd2o = -1,
Double_t  fmd3i = -1,
Double_t  fmd3o = -1 
)
inline

Set the cuts

Parameters
fmd1iValue for FMD1i
fmd2iValue for FMD2i (if < 0, use fmd1i)
fmd2oValue for FMD2o (if < 0, use fmd1i)
fmd3iValue for FMD3i (if < 0, use fmd1i)
fmd3oValue for FMD3o (if < 0, use fmd1i)
Deprecated:
Use AliFMDMultCuts::Set

Definition at line 125 of file AliFMDMultCuts.h.

Referenced by AliForwardQATask::PreData().

void AliFMDMultCuts::SetNXi ( Double_t  nXi)
inline

Set the number times the Landau width

Parameters
nXiNumber of widths
Deprecated:
Use AliFMDMultCuts::Set

Definition at line 151 of file AliFMDMultCuts.h.

void AliFMDMultCuts::SetProbability ( Double_t  cut = 1e-5)
inline

Set probability cut. See AliFMDCorrELossFit::ELossFit::FindProbabilityCut

Parameters
cutCut value
Deprecated:
Use AliFMDMultCuts::Set

Definition at line 168 of file AliFMDMultCuts.h.

AliFMDMultCuts::EMethod AliFMDMultCuts::String2Method ( const char *  str)
static

Helper function to translate a string into a method identifier

Parameters
strString
Returns
Method identifier

Definition at line 249 of file AliFMDMultCuts.cxx.

Referenced by MultCutDrawer::CutStack(), MultCutDrawer::DrawMethodLegend(), MultCutDrawer::DrawValueLegend(), and GetMethod().

Member Data Documentation

Double_t AliFMDMultCuts::fCuts[5]
protected

Definition at line 283 of file AliFMDMultCuts.h.

Referenced by AliFMDMultCuts(), GetCutParam(), Input(), operator=(), Output(), Reset(), and Set().

EMethod AliFMDMultCuts::fMethod
protected

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