AliPhysics  5403132 (5403132)
AliFMDHistCollector::VtxBin Struct Reference

#include <AliFMDHistCollector.h>

Inheritance diagram for AliFMDHistCollector::VtxBin:

Public Member Functions

 VtxBin (Int_t index=0, Double_t minIpZ=999, Double_t maxIpZ=-999, Int_t nCut=0)
 
 VtxBin (const VtxBin &o)
 
VtxBinoperator= (const VtxBin &o)
 
const Char_tGetName () const
 
void SetupForData (TH2 *coverage, UShort_t skip, FiducialMethod fiducial, Double_t cut, TList *l, const TAxis &etaAxis, Bool_t doHitMap, Bool_t storeSecMap)
 
Bool_t Collect (const AliForwardUtil::Histos &hists, AliForwardUtil::Histos &sums, TH2D &out, TH2D *sumRings, TH1D *skipped, Double_t cent, MergeMethod m, UShort_t skips, TList *byCent, Bool_t eta2phi, Bool_t add)
 
Int_t GetOverlap (UShort_t d, Char_t r, Int_t bin) const
 
void GetFirstAndLast (UShort_t d, UShort_t r, Int_t &first, Int_t &last) const
 
void GetFirstAndLast (Int_t idx, Int_t &first, Int_t &last) const
 
Int_t GetFirst (Int_t idx) const
 
Int_t GetLast (Int_t idx) const
 
Int_t GetFirst (UShort_t d, Char_t r) const
 
Int_t GetLast (UShort_t d, Char_t r) const
 

Public Attributes

Int_t fIndex
 
Double_t fLow
 
Double_t fHigh
 
AliForwardUtil::HistosfHitMap
 
TArrayI fFirstBin
 
TArrayI fLastBin
 
Int_t fNCutBins
 

Detailed Description

Structure to hold per-vertex bin cache of per-ring histograms

Definition at line 324 of file AliFMDHistCollector.h.

Constructor & Destructor Documentation

AliFMDHistCollector::VtxBin::VtxBin ( Int_t  index = 0,
Double_t  minIpZ = 999,
Double_t  maxIpZ = -999,
Int_t  nCut = 0 
)

Constructor

Parameters
indexIndex number
minIpZLeast \(IP_{z}\)
maxIpZLargest \(IP_{z}\)
nCutCut on n

Definition at line 579 of file AliFMDHistCollector.cxx.

AliFMDHistCollector::VtxBin::VtxBin ( const VtxBin o)

Copy constructor

Parameters
oObject to copy from

Definition at line 591 of file AliFMDHistCollector.cxx.

Member Function Documentation

Bool_t AliFMDHistCollector::VtxBin::Collect ( const AliForwardUtil::Histos hists,
AliForwardUtil::Histos sums,
TH2D out,
TH2D sumRings,
TH1D skipped,
Double_t  cent,
MergeMethod  m,
UShort_t  skips,
TList byCent,
Bool_t  eta2phi,
Bool_t  add 
)

Process one event in this vertex bin

Parameters
histsHistograms
sumsSum histograms
outPer-event output histogram
sumRingsSum per ring
skippedHistogram of skipped rings
centEvent centrality
mMerging method
skipsWhich rings to skip
byCentList (or null) of per centrality sums
eta2phiCopy eta coverage to phi acceptance
addIf true, add to internal caches
Returns
true on success

Definition at line 767 of file AliFMDHistCollector.cxx.

Referenced by AliFMDHistCollector::Collect().

Int_t AliFMDHistCollector::VtxBin::GetFirst ( Int_t  idx) const

Get the first \(\eta\) bin

Parameters
idxRing index (0-4)
Returns
bin number

Definition at line 737 of file AliFMDHistCollector.cxx.

Referenced by GetFirstAndLast(), and GetOverlap().

Int_t AliFMDHistCollector::VtxBin::GetFirst ( UShort_t  d,
Char_t  r 
) const
inline

Get the first \(\eta\) bin

Parameters
dDetector
rRing
Returns
bin number

Definition at line 460 of file AliFMDHistCollector.h.

Referenced by GetFirst().

void AliFMDHistCollector::VtxBin::GetFirstAndLast ( UShort_t  d,
UShort_t  r,
Int_t first,
Int_t last 
) const
inline

Get the first and last \(\eta\) bin for a detector

Parameters
dCurrent detector
rCurrent ring
firstOn return, the first \(\eta\) bin
lastOn return, the last \(\eta\) bin

Definition at line 424 of file AliFMDHistCollector.h.

Referenced by Collect(), GetFirst(), GetLast(), and AliFMDHistCollector::Print().

void AliFMDHistCollector::VtxBin::GetFirstAndLast ( Int_t  idx,
Int_t first,
Int_t last 
) const

Get the first and last \(\eta\) bin for a detector

Parameters
idxCurrent ring index
firstOn return, the first \(\eta\) bin
lastOn return, the last \(\eta\) bin

Definition at line 716 of file AliFMDHistCollector.cxx.

Int_t AliFMDHistCollector::VtxBin::GetLast ( Int_t  idx) const

Get the last \(\eta\) bin

Parameters
idxRing index (0-4)
Returns
bin number

Definition at line 745 of file AliFMDHistCollector.cxx.

Referenced by GetFirstAndLast(), and GetOverlap().

Int_t AliFMDHistCollector::VtxBin::GetLast ( UShort_t  d,
Char_t  r 
) const
inline

Get the last \(\eta\) bin

Parameters
dDetector
rRing
Returns
bin number

Definition at line 469 of file AliFMDHistCollector.h.

Referenced by GetLast().

const Char_t * AliFMDHistCollector::VtxBin::GetName ( ) const

Override to give name based on cuts

Returns
Name

Definition at line 618 of file AliFMDHistCollector.cxx.

Referenced by SetupForData().

Int_t AliFMDHistCollector::VtxBin::GetOverlap ( UShort_t  d,
Char_t  r,
Int_t  bin 
) const

Check if there's an overlap between detector d, ring r and some other ring for the given \(\eta\) bin. If so, return the ring index. If not, return -1.

Parameters
dCurrent detector
rCurrent ring
binCurrent \(\eta\) bin
Returns
Index of overlapping ring, or -1

Definition at line 967 of file AliFMDHistCollector.cxx.

Referenced by Collect().

AliFMDHistCollector::VtxBin & AliFMDHistCollector::VtxBin::operator= ( const VtxBin o)

Assignment operator

Parameters
oObject to assign from
Returns
Reference to this object

Definition at line 604 of file AliFMDHistCollector.cxx.

void AliFMDHistCollector::VtxBin::SetupForData ( TH2 coverage,
UShort_t  skip,
FiducialMethod  fiducial,
Double_t  cut,
TList l,
const TAxis etaAxis,
Bool_t  doHitMap,
Bool_t  storeSecMap 
)

Set up for data

Parameters
coverageDiagnostics histogram to be filled
skipSkip flags
fiducialFiducial cut method
cutFiducial cut
lParent output list
etaAxis\(\eta\) axis used
doHitMapIf true, also do a per-ring sum
storeSecMapIf true, store used secondary map

Definition at line 626 of file AliFMDHistCollector.cxx.

Referenced by AliFMDHistCollector::SetupForData().

Member Data Documentation

TArrayI AliFMDHistCollector::VtxBin::fFirstBin

Definition at line 475 of file AliFMDHistCollector.h.

Referenced by GetFirstAndLast(), operator=(), and SetupForData().

Double_t AliFMDHistCollector::VtxBin::fHigh

Definition at line 473 of file AliFMDHistCollector.h.

Referenced by GetName(), operator=(), and AliFMDHistCollector::Print().

AliForwardUtil::Histos* AliFMDHistCollector::VtxBin::fHitMap

Definition at line 474 of file AliFMDHistCollector.h.

Referenced by Collect(), operator=(), and SetupForData().

Int_t AliFMDHistCollector::VtxBin::fIndex

Definition at line 471 of file AliFMDHistCollector.h.

Referenced by operator=(), and SetupForData().

TArrayI AliFMDHistCollector::VtxBin::fLastBin

Definition at line 476 of file AliFMDHistCollector.h.

Referenced by GetFirstAndLast(), operator=(), and SetupForData().

Double_t AliFMDHistCollector::VtxBin::fLow

Definition at line 472 of file AliFMDHistCollector.h.

Referenced by GetName(), operator=(), and AliFMDHistCollector::Print().

Int_t AliFMDHistCollector::VtxBin::fNCutBins

Definition at line 477 of file AliFMDHistCollector.h.

Referenced by GetFirstAndLast(), operator=(), and SetupForData().


The documentation for this struct was generated from the following files: