![]() |
AliPhysics
4a7363b (4a7363b)
|
#include <AliFMDCorrELossFit.h>
Classes | |
struct | ELossFit |
Public Types | |
enum | { kHasShift = (1<<14), kIsGoodAsserted = (1<<15), kIsGood = (1<<16) } |
enum | { kDefaultQuality = 8 } |
Protected Member Functions | |
Int_t | GetRingIndex (UShort_t d, Char_t r) const |
TObjArray * | GetOrMakeRingArray (UShort_t d, Char_t r) |
void | UpdateStackHist (ELossFit *f, Bool_t rel, Int_t used, TH1 *hChi, TH1 *hN, TH1 *hC, TH1 *hDelta, TH1 *hXi, TH1 *hSigma, Int_t maxN, TH1 **hA) const |
Protected Attributes | |
TObjArray | fRings |
TAxis | fEtaAxis |
Double_t | fLowCut |
TArrayI | fCache |
Object holding the Energy loss fit 'correction'
These are generated from Monte-Carlo or real ESDs.
Definition at line 38 of file AliFMDCorrELossFit.h.
anonymous enum |
Flags set on the correction object
Enumerator | |
---|---|
kHasShift |
Bit set if we use the delta shift |
kIsGoodAsserted |
Bit set if badness was asserted |
kIsGood |
Bit set if the correction object is bad |
Definition at line 44 of file AliFMDCorrELossFit.h.
anonymous enum |
Default least quality to use
Enumerator | |
---|---|
kDefaultQuality |
Definition at line 61 of file AliFMDCorrELossFit.h.
AliFMDCorrELossFit::AliFMDCorrELossFit | ( | ) |
Default constructor
Definition at line 745 of file AliFMDCorrELossFit.cxx.
Referenced by AliFMDCorrELossFit::ELossFit::IsSortable().
AliFMDCorrELossFit::AliFMDCorrELossFit | ( | const AliFMDCorrELossFit & | o | ) |
Copy constructor
o | Object to copy from |
Definition at line 763 of file AliFMDCorrELossFit.cxx.
|
virtual |
Destructor
Definition at line 782 of file AliFMDCorrELossFit.cxx.
Referenced by AliFMDCorrELossFit::ELossFit::IsSortable().
void AliFMDCorrELossFit::Browse | ( | TBrowser * | b | ) |
void AliFMDCorrELossFit::CacheBins | ( | UShort_t | minQuality = kDefaultQuality | ) | const |
Definition at line 817 of file AliFMDCorrELossFit.cxx.
Referenced by AliFMDDensityCalculator::CacheMaxWeights(), CorrDrawer::DrawIt(), FindFit(), GetLowCut(), MultCutDrawer::Init(), and AliForwardQATask::PreData().
void AliFMDCorrELossFit::Draw | ( | Option_t * | option = "" | ) |
Draw this object
option | Options. Possible values are
|
Definition at line 1489 of file AliFMDCorrELossFit.cxx.
Referenced by CorrDrawer::DrawIt().
Find the eta bin corresponding to the given eta
eta | Eta value |
Definition at line 889 of file AliFMDCorrELossFit.cxx.
Referenced by FindFit(), GetFit(), GetLowCut(), AliFMDDensityCalculator::GetMaxWeight(), AliFMDMultCuts::GetMultCut(), and SetFit().
AliFMDCorrELossFit::ELossFit * AliFMDCorrELossFit::FindFit | ( | UShort_t | d, |
Char_t | r, | ||
Double_t | eta, | ||
UShort_t | minQ | ||
) | const |
Find the fit corresponding to the specified parameters. This uses the cache map of good fits for the look-up. For un-cached look-up see GetFit.
d | Detector |
r | Ring |
eta | Eta value |
minQ | Minimum quality |
Definition at line 1119 of file AliFMDCorrELossFit.cxx.
Referenced by AliFMDDensityCalculator::FindMaxWeight(), GetAvgXiSigmaCut(), GetLowCut(), GetMpvCut(), GetProbabilityCut(), GetStacks(), GetXiCut(), GetXiSigmaCut(), and AliFMDDensityCalculator::NParticles().
AliFMDCorrELossFit::ELossFit * AliFMDCorrELossFit::FindFit | ( | UShort_t | d, |
Char_t | r, | ||
Int_t | etabin, | ||
UShort_t | minQ | ||
) | const |
Find the fit corresponding to the specified parameters. This uses the cache map of good fits for the look-up. For un-cached look-up see GetFit.
d | Detector |
r | Ring |
etabin | Eta bin (1 based) |
minQ | Minimum quality |
Definition at line 1080 of file AliFMDCorrELossFit.cxx.
Double_t AliFMDCorrELossFit::GetAvgXiSigmaCut | ( | UShort_t | d, |
Char_t | r, | ||
Int_t | etaBin, | ||
Double_t | f | ||
) | const |
Get average Xi and sigma width cut, like \( \Delta - f\left(\frac{\xi/\delta^2_{\xi}+\sigma/\delta^2_{\sigma}}{1/\delta^2_{\xi}+1/\delta^2_{\sigma}})\)
d | Detector |
r | Ring |
etaBin | Eta bin (1-based) |
f | scalar |
Definition at line 1228 of file AliFMDCorrELossFit.cxx.
Referenced by AliFMDMultCuts::GetMultCut().
|
inline |
Get the eta axis used
Definition at line 570 of file AliFMDCorrELossFit.h.
Referenced by AliFMDDensityCalculator::CacheMaxWeights(), AliFMDSharingFilter::SetupForData(), and Trending2ELoss().
AliFMDCorrELossFit::ELossFit * AliFMDCorrELossFit::GetFit | ( | UShort_t | d, |
Char_t | r, | ||
Double_t | eta | ||
) | const |
Find the fit corresponding to the specified parameters. Note, the a cache-map of good fits isn't used for this look-up. To use the cache, use FindFit.
d | Detector |
r | Ring |
eta | Eta value |
Definition at line 1061 of file AliFMDCorrELossFit.cxx.
Referenced by GetLowCut().
AliFMDCorrELossFit::ELossFit * AliFMDCorrELossFit::GetFit | ( | UShort_t | d, |
Char_t | r, | ||
Int_t | etabin | ||
) | const |
Find the fit corresponding to the specified parameters. Note, the a cache-map of good fits isn't used for this look-up. To use the cache, use FindFit.
d | Detector |
r | Ring |
etabin | Eta bin (1 based) |
Definition at line 1038 of file AliFMDCorrELossFit.cxx.
|
inline |
Get the low cut used when fitting
Definition at line 582 of file AliFMDCorrELossFit.h.
Referenced by AliFMDMultCuts::GetMultCut().
Get MPV fraction cut, like \( f \Delta\)
f | Fraction |
Definition at line 1194 of file AliFMDCorrELossFit.cxx.
Referenced by AliFMDMultCuts::GetMultCut().
Get the ring array corresponding to the specified ring
d | Detector |
r | Ring |
Definition at line 1168 of file AliFMDCorrELossFit.cxx.
Referenced by IsFolder(), and SetFit().
Double_t AliFMDCorrELossFit::GetProbabilityCut | ( | UShort_t | d, |
Char_t | r, | ||
Int_t | etaBin, | ||
Double_t | f | ||
) | const |
Find the x value that corresponds to a (normalized) probability of low or less. That is, we can use this to say: "Give me the x value under which it is unlikely that a particle gave a signal".
d | Detector |
r | Ring |
etaBin | Eta bin (1-based) |
f | scalar |
Definition at line 1239 of file AliFMDCorrELossFit.cxx.
Referenced by GetLowCut(), and AliFMDMultCuts::GetMultCut().
Get the ring array corresponding to the specified ring
d | Detector |
r | Ring |
Definition at line 1150 of file AliFMDCorrELossFit.cxx.
Referenced by CorrDrawer::DrawIt(), FindFit(), GetFit(), and GetLowCut().
Calculate the index of a ring.
d | Detector |
r | Ring |
Definition at line 1138 of file AliFMDCorrELossFit.cxx.
Referenced by GetOrMakeRingArray(), GetRingArray(), and IsFolder().
TList * AliFMDCorrELossFit::GetStacks | ( | Bool_t | err, |
Bool_t | rel, | ||
Bool_t | good, | ||
UShort_t | maxN = 5 |
||
) | const |
Get a list of THStack - one for each parameter.
If err is true, then error bars are set too. If rel is true, then the relative error (rather than the absolute value) is filled into the histograms. If good is true, then we use the cache-map of good fits rather than all fits.
err | Show errors |
rel | Show relative errors |
good | Only show good fits |
maxN | Maximum weight to use |
Definition at line 1345 of file AliFMDCorrELossFit.cxx.
Referenced by CompELossFits(), Draw(), and IsFolder().
Get Xi width cut, like \( \Delta - f\xi\)
d | Detector |
r | Ring |
etaBin | Eta bin (1-based) |
f | scalar |
Definition at line 1206 of file AliFMDCorrELossFit.cxx.
Referenced by AliFMDMultCuts::GetMultCut().
Get Xi and sigma width cut, like \( \Delta - f(\xi+\sigma)\)
d | Detector |
r | Ring |
etaBin | Eta bin (1-based) |
f | scalar |
Definition at line 1217 of file AliFMDCorrELossFit.cxx.
Referenced by AliFMDMultCuts::GetMultCut().
|
inline |
Signal that this is a folder
Definition at line 776 of file AliFMDCorrELossFit.h.
Bool_t AliFMDCorrELossFit::IsGood | ( | Bool_t | verbose = true , |
Double_t | minRate = .7 , |
||
Int_t | maxGap = 3 , |
||
Int_t | minInner = 25 , |
||
Int_t | minOuter = 15 , |
||
Int_t | minQuality = kDefaultQuality |
||
) |
Calculate and return the overall quality of this correction object. The quality is either good or bad. The quality of the object is determined as, for each ring
verbose | Wether to print information |
minRate | Least success rate |
maxGap | Maximum gap to allow |
minInner | Least number of attempted fits in inners |
minOuter | Least number of attempted fits in outers |
minQuality | Least quality for good fits |
Definition at line 1251 of file AliFMDCorrELossFit.cxx.
Referenced by GetLowCut(), AliFMDEnergyFitter::MakeCorrectionsObject(), and Trending2ELoss().
AliFMDCorrELossFit & AliFMDCorrELossFit::operator= | ( | const AliFMDCorrELossFit & | o | ) |
Assignment operator
o | Object to assign from |
Definition at line 792 of file AliFMDCorrELossFit.cxx.
void AliFMDCorrELossFit::Print | ( | Option_t * | option = "R" | ) | const |
Print this object.
option | Options
|
Definition at line 1591 of file AliFMDCorrELossFit.cxx.
Referenced by AliFMDDensityCalculator::CacheMaxWeights(), and CorrDrawer::DrawIt().
|
inline |
Set the eta axis to use
axis | Eta axis |
Definition at line 873 of file AliFMDCorrELossFit.h.
Referenced by AliFMDCorrELossFit::ELossFit::IsSortable(), AliFMDEnergyFitter::MakeCorrectionsObject(), operator=(), MakeELossFit::Run(), and Trending2ELoss().
Set the eta axis to use
nBins | Number of bins |
min | Minimum \( \eta\) |
max | maximum \( \eta\) |
Definition at line 867 of file AliFMDCorrELossFit.h.
Bool_t AliFMDCorrELossFit::SetFit | ( | UShort_t | d, |
Char_t | r, | ||
Double_t | eta, | ||
Int_t | quality, | ||
const TF1 & | f | ||
) |
Set the fit parameters from a function
Definition at line 1016 of file AliFMDCorrELossFit.cxx.
Referenced by AliFMDEnergyFitter::RingHistos::FindBestFits(), AliFMDCorrELossFit::ELossFit::IsSortable(), MakeELossFit::Run(), SetFit(), and Trending2ELoss().
Set the fit parameters from a function
d | Detector |
r | Ring |
eta | Eta |
f | ELoss fit result - note, the object will take ownership |
Definition at line 941 of file AliFMDCorrELossFit.cxx.
Set the fit parameters from a function
d | Detector |
r | Ring |
etaBin | Eta (bin number, 1->nBins) |
f | ELoss fit result - note, the object will take ownership |
Definition at line 913 of file AliFMDCorrELossFit.cxx.
Bool_t AliFMDCorrELossFit::SetFit | ( | UShort_t | d, |
Char_t | r, | ||
Double_t | eta, | ||
Int_t | quality, | ||
UShort_t | n, | ||
Double_t | chi2, | ||
UShort_t | nu, | ||
Double_t | c, | ||
Double_t | ec, | ||
Double_t | delta, | ||
Double_t | edelta, | ||
Double_t | xi, | ||
Double_t | exi, | ||
Double_t | sigma, | ||
Double_t | esigma, | ||
Double_t | sigman, | ||
Double_t | esigman, | ||
Double_t * | a, | ||
Double_t * | ea | ||
) |
Set the fit parameters from a function
d | Detector number |
r | Ring identifier |
eta | Eta value |
quality | Quality flag |
n | \( N\) - Number of fitted peaks |
chi2 | \( \chi^2 \) |
nu | \( \nu \) - number degrees of freedom |
c | \( C\) - scale constant |
ec | \( \delta C\) - error on \( C\) |
delta | \( \Delta\) - most probable value |
edelta | \( \delta\Delta\) - error on \(\Delta\) |
xi | \( \xi\) - Landau width |
exi | \( \delta\xi\) - error on \(\xi\) |
sigma | \( \sigma\) - Gaussian width |
esigma | \( \delta\sigma\) - error on \(\sigma\) |
sigman | \( \sigma_n\) - Noise width |
esigman | \( \delta\sigma_n\) - error on \(\sigma_n\) |
a | Array of \( N-1\) weights \( a_i\) for \( i=2,\ldots\) |
ea | Array of \( N-1\) errors on weights \( a_i\) for \( i=2,\ldots\) |
Definition at line 963 of file AliFMDCorrELossFit.cxx.
|
inline |
Set the low cut used when fitting
cut | Cut value |
Definition at line 576 of file AliFMDCorrELossFit.h.
Referenced by AliFMDEnergyFitter::MakeCorrectionsObject(), and Trending2ELoss().
|
protected |
Fill fit values into stack histograms
f | Fit |
rel | If true, fill in relative errors |
used | The bin begin used for this fit |
hChi | \(\chi^2/\nu\) histogram |
hN | \( N_{a}\) - number of components - histogram |
hC | \( C\) - prefactor - histogram |
hDelta | \( \Delta_p\) - most-probably value - histogram |
hXi | \( \xi\) - Landau 'width' - histogram |
hSigma | \( \sigma\) - Gaussian smear - histogram |
maxN | \( N_{a,max}\) Largest possible \( N\) |
hA | \( a_{i}, i=\{2,..,N_{a,max}\}\) - histogram |
Definition at line 1450 of file AliFMDCorrELossFit.cxx.
Referenced by GetStacks(), and IsFolder().
|
mutableprotected |
Definition at line 860 of file AliFMDCorrELossFit.h.
Referenced by CacheBins(), FindFit(), operator=(), and Print().
|
protected |
Definition at line 858 of file AliFMDCorrELossFit.h.
Referenced by AliFMDCorrELossFit(), Browse(), CacheBins(), FindEtaBin(), FindFit(), GetEtaAxis(), GetFit(), GetStacks(), IsGood(), operator=(), Print(), SetEtaAxis(), and SetFit().
|
protected |
Definition at line 859 of file AliFMDCorrELossFit.h.
Referenced by GetLowCut(), operator=(), Print(), and SetLowCut().
|
protected |
Definition at line 857 of file AliFMDCorrELossFit.h.
Referenced by AliFMDCorrELossFit(), Browse(), CacheBins(), Draw(), GetOrMakeRingArray(), GetRingArray(), GetStacks(), IsGood(), operator=(), Print(), and ~AliFMDCorrELossFit().