![]() |
AliPhysics
8dc8609 (8dc8609)
|
#include <AliFMDMultCuts.h>
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) | |
AliFMDMultCuts & | operator= (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 |
Cuts used when calculating the multiplicity.
We can define our cuts in four ways (in order of priorty)
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.
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.
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.
method | Cut method |
fmd1i | Value for FMD1i |
fmd2i | Value for FMD2i (if < 0, use fmd1i) |
fmd2o | Value for FMD2o (if < 0, use fmd1i) |
fmd3i | Value for FMD3i (if < 0, use fmd1i) |
fmd3o | Value for FMD3o (if < 0, use fmd1i) |
Definition at line 26 of file AliFMDMultCuts.cxx.
AliFMDMultCuts::AliFMDMultCuts | ( | const AliFMDMultCuts & | o | ) |
|
protected |
Set the cut for specified method.
what | What to set |
method | Cut method |
fmd1i | Value for FMD1i |
fmd2i | Value for FMD2i (if < 0, use fmd1i) |
fmd2o | Value for FMD2o (if < 0, use fmd1i) |
fmd3i | Value for FMD3i (if < 0, use fmd1i) |
fmd3o | Value for FMD3o (if < 0, use fmd1i) |
Definition at line 84 of file AliFMDMultCuts.cxx.
Referenced by 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.
h | Histogram to fill |
Definition at line 271 of file AliFMDMultCuts.cxx.
Referenced by AliFMDDensityCalculator::CacheMaxWeights(), and AliFMDSharingFilter::SetupForData().
Get the cut parameter for a specific ring
d | Detector |
r | Ring |
Definition at line 112 of file AliFMDMultCuts.cxx.
Referenced by GetMultCut(), and Print().
|
inline |
Return methid Id
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
Definition at line 219 of file AliFMDMultCuts.cxx.
Referenced by Print().
Get the multiplicity cuts for a specific ring and pseudo-rapidity
d | Detector |
r | Ring |
eta | pseudo-rapidity |
errors | Get error on cut |
Definition at line 198 of file AliFMDMultCuts.cxx.
Referenced by FillHistogram().
Get the multiplicity cuts for a specific ring and pseudo-rapidity bin
d | Detector |
r | Ring |
etabin | pseudo-rapidity bin |
errors | Get error on cut |
Definition at line 127 of file AliFMDMultCuts.cxx.
Read in cuts stored in file
l | List to read from |
name | Name of possible sub-list |
Definition at line 317 of file AliFMDMultCuts.cxx.
helper function to translate a method into a string
method | Method identifier |
latex | IF true, format for TLatex |
Definition at line 226 of file AliFMDMultCuts.cxx.
Referenced by MultCutDrawer::DrawMethodLegend(), and GetMethodString().
AliFMDMultCuts & AliFMDMultCuts::operator= | ( | const AliFMDMultCuts & | o | ) |
Assignment operator
o | Object to asing from |
Definition at line 47 of file AliFMDMultCuts.cxx.
void AliFMDMultCuts::Output | ( | TList * | l, |
const char * | name = 0 |
||
) | const |
Define outputs
l | List to add to |
name | Name |
Definition at line 297 of file AliFMDMultCuts.cxx.
Referenced by AliFMDDensityCalculator::CreateOutputObjects(), and AliFMDSharingFilter::CreateOutputObjects().
void AliFMDMultCuts::Print | ( | Option_t * | option = "" | ) | const |
Print information
option | Not used |
Definition at line 367 of file AliFMDMultCuts.cxx.
Referenced by AliFMDSharingFilter::Print(), and AliFMDDensityCalculator::Print().
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.
method | Method to use |
fmd1i | Value for FMD1i |
fmd2i | Value for FMD2i (if < 0, use fmd1i) |
fmd2o | Value for FMD2o (if < 0, use fmd1i) |
fmd3i | Value for FMD3i (if < 0, use fmd1i) |
fmd3o | Value for FMD3o (if < 0, use fmd1i) |
Definition at line 63 of file AliFMDMultCuts.cxx.
Referenced by AliFMDMultCuts(), AliFMDSharingFilter::AliFMDSharingFilter(), and DepSet().
void AliFMDMultCuts::SetIncludeSigma | ( | Bool_t | in | ) |
Set wether to includle the Gaussian sigma in cut calculation
in | If true, use Gaussian variance |
Definition at line 98 of file AliFMDMultCuts.cxx.
|
inline |
Set the faction of most probable value
frac | Fraction |
Definition at line 140 of file AliFMDMultCuts.h.
|
inline |
Set the cuts
fmd1i | Value for FMD1i |
fmd2i | Value for FMD2i (if < 0, use fmd1i) |
fmd2o | Value for FMD2o (if < 0, use fmd1i) |
fmd3i | Value for FMD3i (if < 0, use fmd1i) |
fmd3o | Value for FMD3o (if < 0, use fmd1i) |
Definition at line 125 of file AliFMDMultCuts.h.
Referenced by AliForwardQATask::PreData().
|
inline |
Set the number times the Landau width
nXi | Number of widths |
Definition at line 151 of file AliFMDMultCuts.h.
|
inline |
Set probability cut. See AliFMDCorrELossFit::ELossFit::FindProbabilityCut
cut | Cut value |
Definition at line 168 of file AliFMDMultCuts.h.
|
static |
Helper function to translate a string into a method identifier
str | String |
Definition at line 249 of file AliFMDMultCuts.cxx.
Referenced by MultCutDrawer::CutStack(), MultCutDrawer::DrawMethodLegend(), and MultCutDrawer::DrawValueLegend().
|
protected |
Definition at line 283 of file AliFMDMultCuts.h.
Referenced by AliFMDMultCuts(), GetCutParam(), Input(), operator=(), Output(), Reset(), and Set().
|
protected |
Definition at line 284 of file AliFMDMultCuts.h.
Referenced by GetMethod(), GetMethodString(), GetMultCut(), Input(), operator=(), Output(), Reset(), Set(), and SetIncludeSigma().