![]() |
AliPhysics
e34b7ac (e34b7ac)
|
#include <AliFMDDensityCalculator.h>
Classes | |
struct | RingHistos |
Public Types | |
enum | { kPhiNoCorrect, kPhiCorrectNch, kPhiCorrectELoss } |
Static Public Attributes | |
static const char * | fgkFolderName |
Protected Member Functions | |
Int_t | FindMaxWeight (const AliFMDCorrELossFit *cor, UShort_t d, Char_t r, Int_t iEta) const |
Int_t | FindMaxWeight (const AliFMDCorrELossFit *cor, UShort_t d, Char_t r, Double_t iEta) const |
void | CacheMaxWeights (const TAxis &axis) |
Int_t | GetMaxWeight (UShort_t d, Char_t r, Int_t iEta) const |
Int_t | GetMaxWeight (UShort_t d, Char_t r, Float_t eta) const |
virtual Float_t | NParticles (Float_t mult, UShort_t d, Char_t r, Float_t eta, Bool_t lowFlux) const |
virtual Float_t | Correction (UShort_t d, Char_t r, UShort_t t, Float_t eta, Bool_t lowFlux) const |
virtual Float_t | AcceptanceCorrection (Char_t r, UShort_t t) const |
virtual TH1D * | GenerateAcceptanceCorrection (Char_t r) const |
virtual Bool_t | CheckOutlier (Double_t eloss, Double_t poisson, Double_t cut=0.5) const |
RingHistos * | GetRingHistos (UShort_t d, Char_t r) const |
ClassDef (AliFMDDensityCalculator, 14) | |
This class calculates the inclusive charged particle density in each for the 5 FMD rings.
Definition at line 47 of file AliFMDDensityCalculator.h.
anonymous enum |
How to correct for the missing phi coverage at the corners of the sensors
Enumerator | |
---|---|
kPhiNoCorrect |
No correction |
kPhiCorrectNch |
Correct the calculated number charged particles |
kPhiCorrectELoss |
Correct the energy loss |
Definition at line 55 of file AliFMDDensityCalculator.h.
AliFMDDensityCalculator::AliFMDDensityCalculator | ( | ) |
Constructor
AliFMDDensityCalculator::AliFMDDensityCalculator | ( | const char * | name | ) |
Constructor
name | Name of object |
Definition at line 71 of file AliFMDDensityCalculator.cxx.
AliFMDDensityCalculator::AliFMDDensityCalculator | ( | const AliFMDDensityCalculator & | o | ) |
Copy constructor
o | Object to copy from |
Definition at line 138 of file AliFMDDensityCalculator.cxx.
|
virtual |
Destructor
Definition at line 182 of file AliFMDDensityCalculator.cxx.
|
protectedvirtual |
Get the acceptance correction for strip t in an ring of type r
r | Ring type ('I' or 'O') |
t | Strip number |
Definition at line 1018 of file AliFMDDensityCalculator.cxx.
Referenced by Calculate(), and Correction().
|
protected |
Find the max weights and cache them
axis | Default \(\eta\) axis from parent task |
Definition at line 713 of file AliFMDDensityCalculator.cxx.
Referenced by SetupForData().
|
virtual |
Do the calculations
fmd | AliESDFMD object (possibly) corrected for sharing |
hists | Histogram cache |
lowFlux | Low flux flag. |
cent | Centrality |
ip | Coordinates of interaction point |
Definition at line 354 of file AliFMDDensityCalculator.cxx.
Referenced by AliForwardMultiplicityTask::Event(), AliForwardMCMultiplicityTask::Event(), and AliForwardQATask::Event().
|
protectedvirtual |
Check if, for a given region, whether this is an outlier
The condition for an outlier event are
\[ |N_{ch}^{Poisson} - N_{ch}^{\Delta}| / N_{ch}^{\Delta} > c \]
eloss | \( N_{ch}^{\Delta}\) - number of charged particles |
poisson | \( N_{ch}^{Poisson}\) - number of charged particles |
cut | \( c\) - the cut |
Definition at line 650 of file AliFMDDensityCalculator.cxx.
Referenced by Calculate().
|
protected |
|
protectedvirtual |
Get the inverse correction factor. This consist of
d | Detector |
r | Ring |
t | Strip |
eta | Pseudo-rapidity |
lowFlux | Low-flux flag |
Definition at line 890 of file AliFMDDensityCalculator.cxx.
Referenced by AliFMDMCDensityCalculator::CalculateMC().
|
virtual |
Output diagnostic histograms to directory
dir | List to write in |
Reimplemented in AliFMDMCDensityCalculator.
Definition at line 1083 of file AliFMDDensityCalculator.cxx.
Referenced by AliForwardQATask::Book(), AliForwardMultiplicityBase::Book(), and AliFMDMCDensityCalculator::CreateOutputObjects().
|
protected |
Find the max weight to use for FMDdr in eta bin iEta
cor | Correction |
d | Detector |
r | Ring |
iEta | Eta bin |
Definition at line 660 of file AliFMDDensityCalculator.cxx.
Referenced by CacheMaxWeights().
|
protected |
Find the max weight to use for FMDdr in eta eta
cor | Correction |
d | Detector |
r | Ring |
iEta | iEta |
Definition at line 686 of file AliFMDDensityCalculator.cxx.
Generate the acceptance corrections
r | Ring to generate for |
Definition at line 939 of file AliFMDDensityCalculator.cxx.
Referenced by AliFMDDensityCalculator().
|
inline |
Get the cuts used
Definition at line 254 of file AliFMDDensityCalculator.h.
Referenced by AliForwardQATask::PreData().
Find the (cached) maximum weight for FMDdr in \(\eta\) bin iEta
d | Detector |
r | Ring |
iEta | Eta bin |
Definition at line 773 of file AliFMDDensityCalculator.cxx.
Referenced by GetMaxWeight(), and NParticles().
Find the (cached) maximum weight for FMDdr iat \(\eta\)
d | Detector |
r | Ring |
eta | Eta bin |
Definition at line 813 of file AliFMDDensityCalculator.cxx.
|
inline |
Set the minimum quality of the energy loss fits
Definition at line 241 of file AliFMDDensityCalculator.h.
Double_t AliFMDDensityCalculator::GetMultCut | ( | UShort_t | d, |
Char_t | r, | ||
Double_t | eta, | ||
Bool_t | errors = true |
||
) | const |
Get the multiplicity cut. If the user has set fMultCut (via SetMultCut) then that value is used. If not, then the lower value of the fit range for the enery loss fits is returned.
d | Detector |
r | Ring |
eta | Psuedo-rapidity |
errors | Factor in errors |
Definition at line 326 of file AliFMDDensityCalculator.cxx.
Referenced by Calculate().
Double_t AliFMDDensityCalculator::GetMultCut | ( | UShort_t | d, |
Char_t | r, | ||
Int_t | ieta, | ||
Bool_t | errors = true |
||
) | const |
Get the multiplicity cut. If the user has set fMultCut (via SetMultCut) then that value is used. If not, then the lower value of the fit range for the enery loss fits is returned.
d | Detector |
r | Ring |
ieta | Psuedo-rapidity bin |
errors | Factor in errors |
Definition at line 309 of file AliFMDDensityCalculator.cxx.
|
protected |
Get the ring histogram container
d | Detector |
r | Ring |
Definition at line 264 of file AliFMDDensityCalculator.cxx.
Referenced by Calculate().
|
protectedvirtual |
Get the number of particles corresponding to the signal mult
mult | Signal |
d | Detector |
r | Ring |
eta | Pseudo-rapidity |
lowFlux | Low-flux flag |
Definition at line 835 of file AliFMDDensityCalculator.cxx.
Referenced by Calculate().
AliFMDDensityCalculator & AliFMDDensityCalculator::operator= | ( | const AliFMDDensityCalculator & | o | ) |
Assignement operator
o | Object to assign from |
Definition at line 193 of file AliFMDDensityCalculator.cxx.
Referenced by AliFMDMCDensityCalculator::operator=().
void AliFMDDensityCalculator::Print | ( | Option_t * | option = "" | ) | const |
Print information
option | Print options
|
Definition at line 1170 of file AliFMDDensityCalculator.cxx.
Referenced by AliForwardMultiplicityBase::Print(), and AliForwardQATask::Print().
|
inline |
Set the cuts to use
c | Cuts to use |
Definition at line 260 of file AliFMDDensityCalculator.h.
Referenced by AddTaskForwardQA(), ForwardAODConfig(), and TunedConfig().
|
inline |
Set the debug level. The higher the value the more output
dbg | Debug level |
Definition at line 136 of file AliFMDDensityCalculator.h.
Referenced by AliForwardQATask::SetDebug(), and AliForwardMultiplicityBase::SetDebug().
|
inline |
Definition at line 137 of file AliFMDDensityCalculator.h.
Set the luming factors used in the Poisson method
eta | Must be 1 or larger |
phi | Must be 1 or larger |
Definition at line 184 of file AliFMDDensityCalculator.h.
Referenced by AddTaskForwardQA(), ForwardAODConfig(), and TunedConfig().
|
inline |
Set the maximum ratio of outlier bins to the total number of bins with data.
ratio | Maximum ratio (number between 0 and 1) |
Definition at line 200 of file AliFMDDensityCalculator.h.
Referenced by AddTaskForwardQA(), ForwardAODConfig(), and TunedConfig().
|
inline |
Maximum particle weight to use
m |
Definition at line 143 of file AliFMDDensityCalculator.h.
Referenced by AddTaskForwardQA(), ForwardAODConfig(), and TunedConfig().
|
inline |
Set the minimum quality of the energy loss fits
cut | Cut value |
Definition at line 193 of file AliFMDDensityCalculator.h.
Referenced by AddTaskForwardQA(), ForwardAODConfig(), and TunedConfig().
|
inline |
Set the maximum relative diviation between \(N_{ch}^{Poisson}\) and \(N_{ch}^{\Delta}\)
cut | Relative cut (number between 0 and 1) |
Definition at line 207 of file AliFMDDensityCalculator.h.
Referenced by ForwardAODConfig(), and TunedConfig().
|
inline |
In case of a displaced vertices recalculate eta and angle correction
use | recalculate or not |
Definition at line 165 of file AliFMDDensityCalculator.h.
Referenced by ForwardAODConfig(), and TunedConfig().
|
virtual |
Initialize this sub-algorithm
etaAxis | Not used |
Reimplemented in AliFMDMCDensityCalculator.
Definition at line 242 of file AliFMDDensityCalculator.cxx.
Referenced by AliForwardQATask::PreData(), AliForwardMultiplicityBase::PreData(), and AliFMDMCDensityCalculator::SetupForData().
|
inline |
Set whether to use the phi acceptance correction.
How the phi acceptance is used depends on the value passed.
u | If >0, use the phi acceptance (default is false) |
Definition at line 177 of file AliFMDDensityCalculator.h.
Referenced by AddTaskForwardQA(), ForwardAODConfig(), and TunedConfig().
|
inline |
Set whether to use poisson statistics to estimate the number of particles that has hit within a region. If this is true, then the average charge particle density is given by
\[ \lambda = -\log\left(\frac{N_e}{N_t}\right) \]
where $N_e$ is the number of strips within the region that has no hits over threshold, and $N_t$ is the total number of strips in the region/
u | Whether to use poisson statistics to estimate the number of particles that has hit within a region. |
Definition at line 158 of file AliFMDDensityCalculator.h.
Referenced by AddTaskForwardQA(), ForwardAODConfig(), and TunedConfig().
|
virtual |
Scale the histograms to the total number of events
dir | where to put the output |
output | Output list |
nEvents | Number of events |
Definition at line 1036 of file AliFMDDensityCalculator.cxx.
Referenced by AliForwardQATask::Finalize(), and AliForwardMultiplicityBase::Finalize().
|
protected |
Definition at line 479 of file AliFMDDensityCalculator.h.
Referenced by AcceptanceCorrection(), AliFMDDensityCalculator(), CreateOutputObjects(), and operator=().
|
protected |
Definition at line 480 of file AliFMDDensityCalculator.h.
Referenced by AcceptanceCorrection(), AliFMDDensityCalculator(), CreateOutputObjects(), and operator=().
|
protected |
Definition at line 494 of file AliFMDDensityCalculator.h.
Referenced by Calculate(), operator=(), and SetupForData().
|
protected |
Definition at line 475 of file AliFMDDensityCalculator.h.
Referenced by AliFMDDensityCalculator(), Calculate(), and CreateOutputObjects().
|
protected |
Definition at line 491 of file AliFMDDensityCalculator.h.
Referenced by CacheMaxWeights(), CreateOutputObjects(), GetCuts(), operator=(), Print(), and SetCuts().
|
protected |
Definition at line 490 of file AliFMDDensityCalculator.h.
Referenced by AliFMDDensityCalculator(), CacheMaxWeights(), Calculate(), Correction(), CreateOutputObjects(), FindMaxWeight(), GenerateAcceptanceCorrection(), NParticles(), operator=(), SetDebug(), SetupForData(), Terminate(), and ~AliFMDDensityCalculator().
|
protected |
Definition at line 495 of file AliFMDDensityCalculator.h.
Referenced by Calculate(), CreateOutputObjects(), operator=(), and SetDoTiming().
|
protected |
Definition at line 488 of file AliFMDDensityCalculator.h.
Referenced by CreateOutputObjects(), operator=(), Print(), and SetLumping().
|
protected |
Definition at line 481 of file AliFMDDensityCalculator.h.
Referenced by CacheMaxWeights(), GetMaxWeight(), operator=(), and Print().
|
protected |
Definition at line 482 of file AliFMDDensityCalculator.h.
Referenced by CacheMaxWeights(), GetMaxWeight(), operator=(), and Print().
|
protected |
Definition at line 483 of file AliFMDDensityCalculator.h.
Referenced by CacheMaxWeights(), GetMaxWeight(), operator=(), and Print().
|
protected |
Definition at line 484 of file AliFMDDensityCalculator.h.
Referenced by CacheMaxWeights(), GetMaxWeight(), operator=(), and Print().
|
protected |
Definition at line 485 of file AliFMDDensityCalculator.h.
Referenced by CacheMaxWeights(), GetMaxWeight(), operator=(), and Print().
|
static |
Folder name
Definition at line 66 of file AliFMDDensityCalculator.h.
|
protected |
Definition at line 496 of file AliFMDDensityCalculator.h.
Referenced by Calculate(), CreateOutputObjects(), and operator=().
|
protected |
Definition at line 487 of file AliFMDDensityCalculator.h.
Referenced by AliFMDDensityCalculator(), CacheMaxWeights(), CreateOutputObjects(), GetMultCut(), and operator=().
|
protected |
Definition at line 497 of file AliFMDDensityCalculator.h.
Referenced by Calculate(), CreateOutputObjects(), operator=(), and SetMaxOutliers().
|
protected |
Definition at line 476 of file AliFMDDensityCalculator.h.
Referenced by CreateOutputObjects(), FindMaxWeight(), NParticles(), operator=(), Print(), and SetMaxParticles().
|
protected |
Definition at line 486 of file AliFMDDensityCalculator.h.
Referenced by AliFMDDensityCalculator(), CacheMaxWeights(), CreateOutputObjects(), and operator=().
|
protected |
Definition at line 493 of file AliFMDDensityCalculator.h.
Referenced by CacheMaxWeights(), CreateOutputObjects(), GetMinQuality(), NParticles(), operator=(), Print(), and SetMinQuality().
|
protected |
Definition at line 498 of file AliFMDDensityCalculator.h.
Referenced by Calculate(), CreateOutputObjects(), operator=(), and SetOutlierCut().
|
protected |
Definition at line 489 of file AliFMDDensityCalculator.h.
Referenced by CreateOutputObjects(), operator=(), Print(), and SetLumping().
|
protected |
Definition at line 492 of file AliFMDDensityCalculator.h.
Referenced by Calculate(), CreateOutputObjects(), operator=(), Print(), and SetRecalculatePhi().
|
protected |
Definition at line 472 of file AliFMDDensityCalculator.h.
Referenced by AliFMDDensityCalculator(), Calculate(), CreateOutputObjects(), GetRingHistos(), operator=(), SetupForData(), and Terminate().
|
protected |
Definition at line 473 of file AliFMDDensityCalculator.h.
Referenced by AliFMDDensityCalculator(), CreateOutputObjects(), and NParticles().
|
protected |
Definition at line 478 of file AliFMDDensityCalculator.h.
Referenced by Calculate(), Correction(), CreateOutputObjects(), operator=(), Print(), and SetUsePhiAcceptance().
|
protected |
Definition at line 477 of file AliFMDDensityCalculator.h.
Referenced by Calculate(), CreateOutputObjects(), operator=(), Print(), and SetUsePoisson().
|
protected |
Definition at line 474 of file AliFMDDensityCalculator.h.
Referenced by AliFMDDensityCalculator(), CreateOutputObjects(), and NParticles().