![]() |
AliPhysics
6bc8652 (6bc8652)
|
#include <AliFMDHistCollector.h>
Classes | |
struct | VtxBin |
Public Types | |
enum | MergeMethod { kStraightMean, kStraightMeanNoZero, kWeightedMean, kLeastError, kSum, kPreferInner, kPreferOuter } |
enum | FiducialMethod { kByCut, kDistance } |
enum | FMDRingBits { kFMD1I =0x01, kFMD1 =kFMD1I, kFMD2I =0x02, kFMD2O =0x04, kFMD2 =kFMD2I|kFMD2O, kFMD3I =0x08, kFMD3O =0x10, kFMD3 =kFMD3I|kFMD3O } |
Public Member Functions | |
AliFMDHistCollector () | |
AliFMDHistCollector (const char *title) | |
AliFMDHistCollector (const AliFMDHistCollector &o) | |
virtual | ~AliFMDHistCollector () |
AliFMDHistCollector & | operator= (const AliFMDHistCollector &) |
virtual void | SetupForData (const TAxis &vtxAxis, const TAxis &etaAxis) |
virtual Bool_t | Collect (const AliForwardUtil::Histos &hists, AliForwardUtil::Histos &sums, UShort_t vtxBin, TH2D &out, Double_t cent=-1.0, Bool_t eta2phi=false, Bool_t add=true) |
virtual void | CreateOutputObjects (TList *dir) |
void | SetMergeMethod (MergeMethod m) |
MergeMethod | GetMergeMethod () const |
void | SetFiducialMethod (FiducialMethod m) |
void | SetNCutBins (UInt_t n=2) |
void | SetCorrectionCut (Float_t cut=0.5) |
void | SetFMDRingsToSkip (UShort_t mask) |
void | SetMakeBGHitMaps (Bool_t use) |
void | SetMakeCentralitySums (Bool_t use) |
void | SetDebug (Int_t dbg=1) |
void | Print (Option_t *option="") const |
Protected Member Functions | |
VtxBin * | GetVtxBin (Int_t ivtx) |
const VtxBin * | GetVtxBin (Int_t ivtx) const |
ClassDef (AliFMDHistCollector, 6) | |
Static Protected Member Functions | |
static void | GetDetRing (Int_t idx, UShort_t &d, Char_t &r) |
static Int_t | GetIdx (UShort_t d, Char_t r) |
static Bool_t | CheckSkip (UShort_t d, Char_t r, UShort_t skips) |
static Bool_t | CheckCorrection (FiducialMethod m, Double_t cut, const TH2D *bg, Int_t ie, Int_t ip) |
static void | MergeBins (MergeMethod m, Double_t c, Double_t e, Double_t oc, Double_t oe, Double_t &rc, Double_t &re) |
Protected Attributes | |
Int_t | fNCutBins |
Float_t | fCorrectionCut |
Int_t | fDebug |
TList * | fList |
TH2D * | fSumRings |
TH2D * | fCoverage |
TH1D * | fSkipped |
MergeMethod | fMergeMethod |
FiducialMethod | fFiducialMethod |
UShort_t | fSkipFMDRings |
Bool_t | fBgAndHitMaps |
TObjArray * | fVtxList |
TList * | fByCent |
Per-vertex list. More... | |
Bool_t | fDoByCent |
This class collects the event histograms into single histograms, one for each ring in each vertex bin.
Definition at line 43 of file AliFMDHistCollector.h.
How to obtain the fiducial cuts
Definition at line 102 of file AliFMDHistCollector.h.
FMD ring bits for skipping
Enumerator | |
---|---|
kFMD1I | |
kFMD1 | |
kFMD2I | |
kFMD2O | |
kFMD2 | |
kFMD3I | |
kFMD3O | |
kFMD3 |
Definition at line 117 of file AliFMDHistCollector.h.
Methods to use when merging overlapping bins \(b_1\), \(b_2\) with content \(c_1\), \(c_2\), and errors \(e_1\), \(e_2\) into bin \( b\) with content \(c\) and error \(e\)
Definition at line 51 of file AliFMDHistCollector.h.
AliFMDHistCollector::AliFMDHistCollector | ( | ) |
Constructor
AliFMDHistCollector::AliFMDHistCollector | ( | const char * | title | ) |
AliFMDHistCollector::AliFMDHistCollector | ( | const AliFMDHistCollector & | o | ) |
Copy constructor
o | Object to copy from |
Definition at line 80 of file AliFMDHistCollector.cxx.
|
virtual |
Destructor
Definition at line 101 of file AliFMDHistCollector.cxx.
|
staticprotected |
Check the correction
m | Fiducial method used |
cut | Cut value |
bg | Secondary map |
ie | \(\eta\) bin |
ip | \(\varphi\) bin |
Definition at line 244 of file AliFMDHistCollector.cxx.
Referenced by AliFMDHistCollector::VtxBin::SetupForData().
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 295 of file AliFMDHistCollector.cxx.
Referenced by AliFMDHistCollector::VtxBin::Collect(), and AliFMDHistCollector::VtxBin::SetupForData().
|
protected |
|
virtual |
Do the calculations
hists | Cache of histograms |
sums | Cache to sum ring histograms in |
vtxBin | Vertex bin (1 based) |
out | Output histogram |
cent | Centrality |
eta2phi | Copy eta coverage to phi acceptance |
add | If true, add to internal caches |
Definition at line 467 of file AliFMDHistCollector.cxx.
Referenced by AliForwardMultiplicityTask::Event(), and AliForwardMCMultiplicityTask::Event().
|
virtual |
Output diagnostic histograms to directory
dir | List to write in |
Definition at line 277 of file AliFMDHistCollector.cxx.
Referenced by AliForwardMultiplicityBase::Book().
Get the detector and ring from the ring index
idx | Ring index |
d | On return, the detector or 0 in case of errors |
r | On return, the ring id or '0' in case of errors |
Definition at line 328 of file AliFMDHistCollector.cxx.
Referenced by Print(), SetupForData(), and AliFMDHistCollector::VtxBin::SetupForData().
Get the ring index from detector number and ring identifier
d | Detector |
r | Ring identifier |
Definition at line 306 of file AliFMDHistCollector.cxx.
Referenced by AliFMDHistCollector::VtxBin::GetFirst(), AliFMDHistCollector::VtxBin::GetFirstAndLast(), AliFMDHistCollector::VtxBin::GetLast(), and AliFMDHistCollector::VtxBin::GetOverlap().
|
inline |
Definition at line 196 of file AliFMDHistCollector.h.
|
protected |
Get a vertex bin
ivtx | Bin number (1-nVz) |
Definition at line 351 of file AliFMDHistCollector.cxx.
|
protected |
Get a vertex bin
ivtx | Bin number (1-nVz) |
Definition at line 362 of file AliFMDHistCollector.cxx.
|
staticprotected |
Merge bins accoring to set method
m | Merging method |
c | Current content |
e | Current error |
oc | Old content |
oe | Old error |
rc | On return, the new content |
re | On return, tne new error |
Definition at line 374 of file AliFMDHistCollector.cxx.
Referenced by AliFMDHistCollector::VtxBin::Collect().
AliFMDHistCollector & AliFMDHistCollector::operator= | ( | const AliFMDHistCollector & | o | ) |
Assignement operator
o | Object to assign from |
Definition at line 108 of file AliFMDHistCollector.cxx.
void AliFMDHistCollector::Print | ( | Option_t * | option = "" | ) | const |
Print information
option | Not used |
Definition at line 514 of file AliFMDHistCollector.cxx.
Referenced by AliForwardMultiplicityBase::Print().
|
inline |
Set the correction cut, that is, when bins in the secondary correction maps have a value lower than this cut, they are considered uncertain and not used
cut | Cut-off |
Definition at line 217 of file AliFMDHistCollector.h.
Referenced by ForwardAODConfig(), and TunedConfig().
|
inline |
Set the debug level. The higher the value the more output
dbg | Debug level |
Definition at line 242 of file AliFMDHistCollector.h.
Referenced by AliForwardMultiplicityBase::SetDebug().
|
inline |
Set the method for finding the fidicual area of the secondary maps
m | Method |
Definition at line 202 of file AliFMDHistCollector.h.
Referenced by ForwardAODConfig(), and TunedConfig().
|
inline |
Set FMD rings to skip. Argument should be kFirstRingToSkip|kSecondRingToSkip...
mask | bit pattern |
Definition at line 224 of file AliFMDHistCollector.h.
|
inline |
Set whether to make bg maps or not
use | make them |
Definition at line 230 of file AliFMDHistCollector.h.
Referenced by ForwardAODConfig(), and TunedConfig().
|
inline |
Set whether to make by-centrality sums for each ring
use | If true, make by-centrality sums |
Definition at line 236 of file AliFMDHistCollector.h.
Referenced by ForwardAODConfig(), and TunedConfig().
|
inline |
Set the merge method
m | Method |
Definition at line 195 of file AliFMDHistCollector.h.
Referenced by ForwardAODConfig(), and TunedConfig().
|
inline |
Set the number of extra bins (beyond the secondary map border) to cut away.
n | Number of bins |
Definition at line 209 of file AliFMDHistCollector.h.
Referenced by ForwardAODConfig(), and TunedConfig().
Intialise
vtxAxis | \( v_z\) axis |
etaAxis | \( \eta\) axis |
Definition at line 142 of file AliFMDHistCollector.cxx.
Referenced by AliForwardMultiplicityBase::PreData().
|
protected |
Definition at line 508 of file AliFMDHistCollector.h.
Referenced by operator=(), SetMakeBGHitMaps(), and SetupForData().
|
protected |
Per-vertex list.
Definition at line 510 of file AliFMDHistCollector.h.
Referenced by Collect(), operator=(), and SetupForData().
|
protected |
Definition at line 499 of file AliFMDHistCollector.h.
Referenced by operator=(), Print(), SetCorrectionCut(), and SetupForData().
|
protected |
Definition at line 503 of file AliFMDHistCollector.h.
Referenced by operator=(), and SetupForData().
|
protected |
Definition at line 500 of file AliFMDHistCollector.h.
Referenced by AliFMDHistCollector(), Collect(), CreateOutputObjects(), operator=(), SetDebug(), SetupForData(), and ~AliFMDHistCollector().
|
protected |
Definition at line 511 of file AliFMDHistCollector.h.
Referenced by operator=(), SetMakeCentralitySums(), and SetupForData().
|
protected |
Definition at line 506 of file AliFMDHistCollector.h.
Referenced by operator=(), Print(), SetFiducialMethod(), and SetupForData().
|
protected |
Definition at line 501 of file AliFMDHistCollector.h.
Referenced by CreateOutputObjects(), operator=(), and SetupForData().
|
protected |
Definition at line 505 of file AliFMDHistCollector.h.
Referenced by Collect(), GetMergeMethod(), operator=(), Print(), SetMergeMethod(), and SetupForData().
|
protected |
Definition at line 498 of file AliFMDHistCollector.h.
Referenced by AliFMDHistCollector::VtxBin::GetFirstAndLast(), operator=(), AliFMDHistCollector::VtxBin::operator=(), Print(), SetNCutBins(), SetupForData(), and AliFMDHistCollector::VtxBin::SetupForData().
|
protected |
Definition at line 507 of file AliFMDHistCollector.h.
Referenced by Collect(), operator=(), SetFMDRingsToSkip(), and SetupForData().
|
protected |
Definition at line 504 of file AliFMDHistCollector.h.
Referenced by Collect(), operator=(), and SetupForData().
|
protected |
Definition at line 502 of file AliFMDHistCollector.h.
Referenced by Collect(), operator=(), and SetupForData().
|
protected |
Definition at line 509 of file AliFMDHistCollector.h.
Referenced by GetVtxBin(), operator=(), Print(), and SetupForData().