![]() |
AliPhysics
6b290e4 (6b290e4)
|
#include <AliFMDEnergyFitter.h>
Classes | |
struct | RingHistos |
Public Types | |
enum | { kC = AliLandauGaus::kC, kDelta = AliLandauGaus::kDelta, kXi = AliLandauGaus::kXi, kSigma = AliLandauGaus::kSigma, kSigmaN = AliLandauGaus::kSigmaN, kN = AliLandauGaus::kN, kA = AliLandauGaus::kA } |
enum | EResidualMethod { kNoResiduals = 0, kResidualDifference, kResidualScaledDifference, kResidualSquareDifference } |
enum | FMDRingBits { kFMD1I =0x01, kFMD1 =kFMD1I, kFMD2I =0x02, kFMD2O =0x04, kFMD2 =kFMD2I|kFMD2O, kFMD3I =0x08, kFMD3O =0x10, kFMD3 =kFMD3I|kFMD3O } |
Protected Member Functions | |
AliFMDEnergyFitter (const AliFMDEnergyFitter &o) | |
AliFMDEnergyFitter & | operator= (const AliFMDEnergyFitter &o) |
virtual RingHistos * | CreateRingHistos (UShort_t d, Char_t r) const |
RingHistos * | GetRingHistos (UShort_t d, Char_t r) const |
ClassDef (AliFMDEnergyFitter, 8) | |
Static Protected Member Functions | |
static Bool_t | CheckSkip (UShort_t d, Char_t r, UShort_t skips) |
Class to fit the energy distribution.
Definition at line 49 of file AliFMDEnergyFitter.h.
anonymous enum |
Enumeration of parameters
Definition at line 55 of file AliFMDEnergyFitter.h.
Enumeration of residual methods
Definition at line 75 of file AliFMDEnergyFitter.h.
FMD ring bits for skipping
Enumerator | |
---|---|
kFMD1I |
FMD1i |
kFMD1 |
All of FMD1 |
kFMD2I |
FMD2i |
kFMD2O |
FMD2o |
kFMD2 |
All of FMD2 |
kFMD3I |
FMD3i |
kFMD3O |
FMD3o |
kFMD3 |
All of FMD3 |
Definition at line 92 of file AliFMDEnergyFitter.h.
|
virtual |
Destructor
Definition at line 98 of file AliFMDEnergyFitter.cxx.
AliFMDEnergyFitter::AliFMDEnergyFitter | ( | ) |
Default Constructor - do not use
Definition at line 32 of file AliFMDEnergyFitter.cxx.
AliFMDEnergyFitter::AliFMDEnergyFitter | ( | const char * | title | ) |
Constructor
title | Title of object - not significant |
Definition at line 62 of file AliFMDEnergyFitter.cxx.
|
protected |
Copy constructor
o | Object to copy from |
|
virtual |
Fitter the input AliESDFMD object
input | Input |
cent | Event centrality (or < 0 if not valid) |
empty | Whether the event is 'empty' |
Definition at line 303 of file AliFMDEnergyFitter.cxx.
Referenced by AliFMDEnergyFitterTask::Event(), and AliForwardQATask::Event().
Check if the detector d, ring r is listed in the skips bit mask. If the detector/ring is in the mask, return true.
That is, use case is
d | Detector |
r | Ring |
skips | Mask of detector/rings to skip |
Definition at line 538 of file AliFMDEnergyFitter.cxx.
Referenced by Fit(), and MakeCorrectionsObject().
|
protected |
|
virtual |
Define the output histograms. These are put in a sub list of the passed list. The histograms are merged before the parent task calls AliAnalysisTaskSE::Terminate
dir | Directory to add to |
Reimplemented in AliFMDMCHitEnergyFitter, and AliFMDMCTrackInspector.
Definition at line 161 of file AliFMDEnergyFitter.cxx.
Referenced by AliForwardQATask::Book(), AliFMDEnergyFitterTask::Book(), AliFMDMCTrackInspector::CreateOutputObjects(), and AliFMDMCHitEnergyFitter::CreateOutputObjects().
|
protectedvirtual |
Reimplemented in AliFMDMCTrackInspector, and AliFMDMCHitEnergyFitter.
Definition at line 109 of file AliFMDEnergyFitter.cxx.
Referenced by Init().
|
virtual |
Scale the histograms to the total number of events
dir | Where the histograms are |
Definition at line 367 of file AliFMDEnergyFitter.cxx.
Referenced by AliFMDEnergyFitterTask::Finalize(), AliForwardQATask::Finalize(), AliFMDMCTrackInspectorTask::Finalize(), AliFMDMCHitEnergyFitterTask::Finalize(), and RerunTrackELoss().
|
inline |
Definition at line 171 of file AliFMDEnergyFitter.h.
|
protected |
Get the ring histogram container
d | Detector |
r | Ring |
Definition at line 116 of file AliFMDEnergyFitter.cxx.
Referenced by Accumulate(), AliFMDMCHitEnergyFitter::AccumulateHits(), AliFMDMCTrackInspector::PostEvent(), and AliFMDMCHitEnergyFitter::PostEvent().
void AliFMDEnergyFitter::Init | ( | ) |
Definition at line 141 of file AliFMDEnergyFitter.cxx.
Referenced by Fit(), RerunTrackELoss(), AliForwardQATask::Setup(), AliFMDEnergyFitterTask::Setup(), AliFMDMCTrackInspectorTask::Setup(), and AliFMDMCHitEnergyFitterTask::Setup().
void AliFMDEnergyFitter::MakeCorrectionsObject | ( | TList * | dir | ) |
Generate the corrections object
dir | List to analyse |
Definition at line 436 of file AliFMDEnergyFitter.cxx.
Referenced by Fit().
|
protected |
void AliFMDEnergyFitter::Print | ( | Option_t * | option = "" | ) | const |
Print information
option | Not used |
Definition at line 561 of file AliFMDEnergyFitter.cxx.
Referenced by AliFMDEnergyFitterTask::Print(), AliFMDMCTrackInspectorTask::Print(), AliFMDMCHitEnergyFitterTask::Print(), AliForwardQATask::Print(), and RerunTrackELoss().
Bool_t AliFMDEnergyFitter::ReadParameters | ( | const TCollection * | list | ) |
Read the parameters from a list - used when re-running the code
list | Input list |
Definition at line 497 of file AliFMDEnergyFitter.cxx.
Referenced by RerunTrackELoss().
Set the centrality bins. E.g.,
nBins | Size of bins |
bins | Bin limits. |
Definition at line 290 of file AliFMDEnergyFitter.cxx.
Referenced by SetupForData().
void AliFMDEnergyFitter::SetDebug | ( | Int_t | dbg = 1 | ) |
Set the debug level. The higher the value the more output
dbg | Debug level |
Definition at line 468 of file AliFMDEnergyFitter.cxx.
Referenced by RerunTrackELoss(), AliFMDMCTrackInspectorTask::SetDebug(), AliFMDMCHitEnergyFitterTask::SetDebug(), AliFMDEnergyFitterTask::SetDebug(), and AliForwardQATask::SetDebug().
|
inline |
Whether or not to enable fitting of the final merged result. Note, fitting takes quite a while and one should be careful not to do this needlessly
doFit | Whether to do the fits or not |
Definition at line 185 of file AliFMDEnergyFitter.h.
Referenced by AddTaskFMDMCHit(), AddTaskFMDMCTracks(), AddTaskForwardQA(), AliForwardQATask::AliForwardQATask(), elossFitConfig(), and RerunTrackELoss().
|
inline |
Set whether to make the corrections object on the output. Note, fits should be enable for this to have any effect.
doMake | If true (false is default), do make the corrections object. |
Definition at line 192 of file AliFMDEnergyFitter.h.
Referenced by AddTaskForwardQA(), AliForwardQATask::AliForwardQATask(), elossFitConfig(), and RerunTrackELoss().
void AliFMDEnergyFitter::SetEnableDeltaShift | ( | Bool_t | use = true | ) |
Whether to enable the extra shift in the MPV from \( \sigma/\xi\)
use | If true, enable extra shift \(\delta\Delta_p(\sigma/\xi)\) |
Definition at line 296 of file AliFMDEnergyFitter.cxx.
Referenced by RerunTrackELoss().
Set the eta axis to use. This will force the code to use this eta axis definition - irrespective of whatever axis is passed to the Init member function. Therefore, this member function can be used to force another eta axis than one found in the correction objects.
nBins | Number of bins |
etaMin | Minimum of the eta axis |
etaMax | Maximum of the eta axis |
Definition at line 272 of file AliFMDEnergyFitter.cxx.
Referenced by AddTaskFMDMCHit(), AddTaskFMDMCTracks(), AddTaskForwardQA(), elossFitConfig(), RerunTrackELoss(), SetEtaAxis(), and SetupForData().
void AliFMDEnergyFitter::SetEtaAxis | ( | const TAxis & | etaAxis | ) |
Set the eta axis to use. This will force the code to use this eta axis definition - irrespective of whatever axis is passed to the Init member function. Therefore, this member function can be used to force another eta axis than one found in the correction objects.
etaAxis | Eta axis to use |
Definition at line 256 of file AliFMDEnergyFitter.cxx.
|
inline |
Set the number of bins to subtract
n |
Definition at line 177 of file AliFMDEnergyFitter.h.
Referenced by AddTaskFMDMCHit(), AddTaskFMDMCTracks(), AddTaskForwardQA(), AliForwardQATask::AliForwardQATask(), elossFitConfig(), and RerunTrackELoss().
|
inline |
Set the low cut used for energy
lowCut | Low cut |
Definition at line 170 of file AliFMDEnergyFitter.h.
Referenced by AddTaskFMDELoss(), AddTaskFMDMCHit(), AddTaskFMDMCTracks(), AddTaskForwardQA(), AliForwardQATask::AliForwardQATask(), elossFitConfig(), and RerunTrackELoss().
|
inline |
Set the maximum \( \chi^2/\nu\)
c | Maximum \( \chi^2/\nu\) |
Definition at line 229 of file AliFMDEnergyFitter.h.
|
inline |
Set maximum energy loss to consider
x | Maximum energy loss to consider |
Definition at line 211 of file AliFMDEnergyFitter.h.
Referenced by AddTaskFMDMCHit(), AddTaskFMDMCTracks(), AddTaskForwardQA(), elossFitConfig(), and RerunTrackELoss().
|
inline |
Set the maximum relative error
e | Maximum relative error |
Definition at line 223 of file AliFMDEnergyFitter.h.
|
inline |
Set the minimum number of entries each histogram must have before we try to fit our response function to it
n | Minimum number of entries |
Definition at line 205 of file AliFMDEnergyFitter.h.
Referenced by AddTaskFMDMCHit(), AddTaskFMDMCTracks(), AddTaskForwardQA(), AliForwardQATask::AliForwardQATask(), elossFitConfig(), and RerunTrackELoss().
|
inline |
|
inline |
Set number of energy loss bins
x | Number of energy loss bins |
Definition at line 217 of file AliFMDEnergyFitter.h.
Referenced by AddTaskFMDMCHit(), AddTaskFMDMCTracks(), AddTaskForwardQA(), elossFitConfig(), and RerunTrackELoss().
|
inline |
Set how many particles we will try to fit at most to the data
n | Max number of particle to try to fit |
Definition at line 198 of file AliFMDEnergyFitter.h.
Referenced by AddTaskFMDMCHit(), AddTaskFMDMCTracks(), AddTaskForwardQA(), AliForwardQATask::AliForwardQATask(), elossFitConfig(), and RerunTrackELoss().
|
inline |
Set the regularization cut \(c_{R}\). If a \(\Delta\) distribution has more entries \( N_{dist}\) than \(c_{R}\), then we modify the errors of the the distribution with the factor
\[ \sqrt{N_{dist}/c_{R}} \]
to keep the \(\chi^2/\nu\) within resonable limits.
The large residuals \(chi_i^2=(h_i - f(x_i))^2/\delta_i^2\) (see also SetStoreResiduals) comes about on the boundary between the \(N\) and \(N+1\) particle contributions, and seems to fall off for larger \(N\). This may indicate that there's a component in the distributions that the function
\[ f(\Delta;\Delta_p,\xi,\sigma,\mathbf{a}) = \sum_i=1^{n} a_i\int d\Delta' L(\Delta;\Delta',\xi) G(\Delta';\Delta_p,\sigma) \]
does not capture.
cut |
Definition at line 285 of file AliFMDEnergyFitter.h.
Referenced by AddTaskForwardQA(), elossFitConfig(), and RerunTrackELoss().
|
inline |
Definition at line 289 of file AliFMDEnergyFitter.h.
|
inline |
Set whether to make residuals, and in that case how.
where \(h_i, x_i, \delta_i\) is the bin content, bin center, and bin error for bin \(i\) respectively, and \( f\) is the fitted function.
x | Residual method |
Definition at line 255 of file AliFMDEnergyFitter.h.
Referenced by elossFitConfig(), and RerunTrackELoss().
Initialise the task
etaAxis | The eta axis to use. Note, that if the eta axis has already been set (using SetEtaAxis), then this parameter will be ignored |
sys | Collision system identifier. If set, then it will define how many MIP peaks we will fit. For pp we do 3, for pA, Ap, and AA we do 5. |
Definition at line 220 of file AliFMDEnergyFitter.cxx.
Referenced by AliForwardQATask::PreData(), AliFMDEnergyFitterTask::PreData(), AliFMDMCTrackInspectorTask::PreData(), and AliFMDMCHitEnergyFitterTask::PreData().
|
inline |
Set wheter to use increasing bin sizes
x | Wheter to use increasing bin sizes |
Definition at line 241 of file AliFMDEnergyFitter.h.
Referenced by AddTaskFMDMCHit(), AddTaskFMDMCTracks(), AddTaskForwardQA(), AliForwardQATask::AliForwardQATask(), and elossFitConfig().
|
protected |
Definition at line 742 of file AliFMDEnergyFitter.h.
Referenced by Accumulate(), AliFMDEnergyFitter(), SetCentralityAxis(), and SetupForData().
|
protected |
Definition at line 749 of file AliFMDEnergyFitter.h.
Referenced by Accumulate(), AliFMDMCHitEnergyFitter::AccumulateHits(), AliFMDMCTrackInspector::CreateOutputObjects(), AliFMDMCHitEnergyFitter::CreateOutputObjects(), CreateOutputObjects(), AliFMDEnergyFitter::RingHistos::CreateOutputObjects(), AliFMDMCTrackInspector::Event(), AliFMDMCHitEnergyFitter::Event(), AliFMDEnergyFitter::RingHistos::Fill(), AliFMDEnergyFitter::RingHistos::FindBestFit(), AliFMDEnergyFitter::RingHistos::FindBestFits(), Fit(), AliFMDEnergyFitter::RingHistos::FitHist(), AliFMDEnergyFitter::RingHistos::FitSlices(), Init(), MakeCorrectionsObject(), AliFMDMCTrackInspector::PostEvent(), AliFMDMCHitEnergyFitter::PostEvent(), AliFMDMCTrackInspector::PreEvent(), AliFMDMCHitEnergyFitter::PreEvent(), SetDebug(), SetupForData(), AliFMDEnergyFitter::RingHistos::SetupForData(), ~AliFMDEnergyFitter(), and AliFMDEnergyFitter::RingHistos::~RingHistos().
|
protected |
Definition at line 739 of file AliFMDEnergyFitter.h.
Referenced by AliFMDMCHitEnergyFitter::AliFMDMCHitEnergyFitter(), AliFMDMCTrackInspector::AliFMDMCTrackInspector(), CreateOutputObjects(), Fit(), Print(), ReadParameters(), and SetDoFits().
|
protected |
Definition at line 740 of file AliFMDEnergyFitter.h.
Referenced by AliFMDMCHitEnergyFitter::AliFMDMCHitEnergyFitter(), AliFMDMCTrackInspector::AliFMDMCTrackInspector(), CreateOutputObjects(), Fit(), Print(), ReadParameters(), and SetDoMakeObject().
|
protected |
Definition at line 741 of file AliFMDEnergyFitter.h.
Referenced by AliFMDEnergyFitter(), CreateOutputObjects(), MakeCorrectionsObject(), ReadParameters(), SetEtaAxis(), and SetupForData().
|
protected |
Definition at line 738 of file AliFMDEnergyFitter.h.
Referenced by CreateOutputObjects(), Fit(), Print(), ReadParameters(), and SetFitRangeBinWidth().
|
protected |
Definition at line 735 of file AliFMDEnergyFitter.h.
Referenced by CreateOutputObjects(), Fit(), GetLowCut(), MakeCorrectionsObject(), Print(), ReadParameters(), and SetLowCut().
|
protected |
Definition at line 747 of file AliFMDEnergyFitter.h.
Referenced by CreateOutputObjects(), Fit(), Print(), ReadParameters(), and SetMaxChi2PerNDF().
|
protected |
Definition at line 743 of file AliFMDEnergyFitter.h.
Referenced by CreateOutputObjects(), Print(), ReadParameters(), SetMaxE(), and SetupForData().
|
protected |
Definition at line 746 of file AliFMDEnergyFitter.h.
Referenced by CreateOutputObjects(), Fit(), Print(), ReadParameters(), and SetMaxRelativeParameterError().
|
protected |
Definition at line 737 of file AliFMDEnergyFitter.h.
Referenced by CreateOutputObjects(), Fit(), Print(), ReadParameters(), and SetMinEntries().
|
protected |
Definition at line 748 of file AliFMDEnergyFitter.h.
Referenced by CreateOutputObjects(), Fit(), Print(), ReadParameters(), and SetMinWeight().
|
protected |
Definition at line 744 of file AliFMDEnergyFitter.h.
Referenced by CreateOutputObjects(), Print(), ReadParameters(), SetNEbins(), and SetupForData().
|
protected |
Definition at line 736 of file AliFMDEnergyFitter.h.
Referenced by CreateOutputObjects(), Fit(), Print(), ReadParameters(), SetNParticles(), and SetupForData().
|
protected |
Definition at line 752 of file AliFMDEnergyFitter.h.
Referenced by CreateOutputObjects(), Fit(), Print(), ReadParameters(), and SetRegularizationCut().
|
protected |
Definition at line 750 of file AliFMDEnergyFitter.h.
Referenced by AliFMDMCHitEnergyFitter::AliFMDMCHitEnergyFitter(), AliFMDMCTrackInspector::AliFMDMCTrackInspector(), Fit(), Print(), and SetStoreResiduals().
|
protected |
Definition at line 734 of file AliFMDEnergyFitter.h.
Referenced by AliFMDEnergyFitter(), AliFMDMCTrackInspector::CreateOutputObjects(), CreateOutputObjects(), Fit(), GetRingHistos(), Init(), MakeCorrectionsObject(), SetDebug(), and SetupForData().
|
protected |
Definition at line 751 of file AliFMDEnergyFitter.h.
Referenced by Fit(), MakeCorrectionsObject(), and SetSkips().
|
protected |
Definition at line 745 of file AliFMDEnergyFitter.h.
Referenced by AliFMDMCHitEnergyFitter::AliFMDMCHitEnergyFitter(), AliFMDMCTrackInspector::AliFMDMCTrackInspector(), CreateOutputObjects(), Print(), ReadParameters(), SetupForData(), and SetUseIncreasingBins().