![]() |
AliPhysics
f0111dc (f0111dc)
|
#include <AliAODForwardMult.h>
Protected Attributes | |
Bool_t | fIsMC |
TH2D | fHist |
UInt_t | fTriggers |
Float_t | fIpZ |
Float_t | fCentrality |
UShort_t | fNClusters |
Static Protected Attributes | |
static const Float_t | fgkInvalidIpZ = 1e6 |
Trigger information | |
UInt_t | GetTriggerBits () const |
void | SetTriggerMask (UInt_t trg) |
void | SetTriggerBits (UInt_t bits) |
Bool_t | IsTriggerBits (UInt_t bits) const |
Bool_t | IsTriggerOrBits (UInt_t bits) const |
Bool_t | HasTrigger () const |
static Bool_t | IsTriggerBits (UInt_t bits, UInt_t trg) |
static const Char_t * | GetTriggerString (UInt_t mask, const char *sep="&") |
static UInt_t | MakeTriggerMask (const char *what, const char *sep="&") |
General tests | |
Bool_t | CheckEvent (UInt_t triggerMask=kInel, Double_t vzMin=-10, Double_t vzMax=10, Double_t cMin=0, Double_t cMax=100, TH1 *hist=0, TH1 *status=0, UInt_t filterMask=kDefaultFilter) const |
Bool_t | FilterEvent (Double_t vzMin, Double_t vzMax, TH1 *hist, TH1 *status, UInt_t filterMask) const |
static void | FillTriggerHistogram (UInt_t triggerMask, UInt_t trg, TH1 *hist) |
static TH1I * | MakeTriggerHistogram (const char *name="triggers", UInt_t mask=0) |
static TH1I * | MakeStatusHistogram (const char *name="status") |
Class that contains the forward multiplicity data per event
This class contains a histogram of
\[ \frac{d^2N_{ch}}{d\eta d\phi}\quad, \]
as well as a trigger mask for each analysed event.
The eta acceptance of the event is stored in the underflow bins of the histogram. So to build the final histogram, one needs to correct for this acceptance (properly weighted by the events), and the vertex efficiency. This simply boils down to defining a 2D histogram and summing the event histograms in that histogram. One should of course also do proper book-keeping of the accepted event.
The above code will draw the final \( dN_{ch}/d\eta\) for the selected event class and vertex range
The histogram can be used as input for other kinds of analysis too, like flow, event-plane, centrality, and so on.
Definition at line 101 of file AliAODForwardMult.h.
AliAODForwardMult::AliAODForwardMult | ( | ) |
Default constructor
Used by ROOT I/O sub-system - do not use
Definition at line 33 of file AliAODForwardMult.cxx.
AliAODForwardMult::AliAODForwardMult | ( | Bool_t | isMC | ) |
Constructor
isMC | Whether this was from MC or not |
Definition at line 47 of file AliAODForwardMult.cxx.
|
inlinevirtual |
Destructor
Definition at line 243 of file AliAODForwardMult.h.
void AliAODForwardMult::Browse | ( | TBrowser * | b | ) |
browse this object
b | Browser |
Definition at line 194 of file AliAODForwardMult.cxx.
Referenced by GetName().
Bool_t AliAODForwardMult::CheckEvent | ( | UInt_t | triggerMask = kInel , |
Double_t | vzMin = -10 , |
||
Double_t | vzMax = 10 , |
||
Double_t | cMin = 0 , |
||
Double_t | cMax = 100 , |
||
TH1 * | hist = 0 , |
||
TH1 * | status = 0 , |
||
UInt_t | filterMask = kDefaultFilter |
||
) | const |
Check if event meets the passses requirements.
It returns true if all of the following is true
Note, for data with out a centrality estimate (e.g., pp), one must pass equal centrality cuts, or no data will be accepted. In other words, for pp data, always pass cMin=0, cMax=0
If a histogram is passed in the last parameter, then that histogram is filled with the trigger bits.
triggerMask | Trigger mask. All bits in this mask must be set (AND) |
vzMin | Minimum \( v_z\) (in centimeters) |
vzMax | Maximum \( v_z\) (in centimeters) |
cMin | Minimum centrality (in percent) |
cMax | Maximum centrality (in percent) |
hist | Histogram to fill |
status | Histogram to fill |
filterMask | Mask of trigger bits to filter on. If any bit in this mask is set, reject the event (OR) |
true
if the event meets the requirements Definition at line 495 of file AliAODForwardMult.cxx.
Referenced by AliBaseAODTask::CheckEvent(), AliBasedNdetaTask::CheckEvent(), AliBasedNdetaTask::CentralityBin::CheckEvent(), IsFolder(), and AliMCTruthdNdetaTask::CentralityBin::ProcessEvent().
void AliAODForwardMult::Clear | ( | Option_t * | option = "" | ) |
Clear all data
option | Passed on to TH2::Reset verbatim |
Definition at line 84 of file AliAODForwardMult.cxx.
Referenced by GetName(), AliForwardMultiplicityTask::PreEvent(), and AliForwardMCMultiplicityTask::PreEvent().
void AliAODForwardMult::FillEtaCoverage | ( | TH1 & | h | ) | const |
Get the \(\eta\) coverage. Note, the histogram is not resst by this function, thus allowing to accumulate in the passed histogram.
h | On return, the \(\eta\) coverage. |
Definition at line 121 of file AliAODForwardMult.cxx.
Referenced by GetPhiAcceptanceBin().
void AliAODForwardMult::FillPhiAcceptance | ( | TH1 & | h | ) | const |
Get the \(\varphi\) acceptance. Note, the histogram is not resst by this function, thus allowing to accumulate in the passed histogram.
h | On return, the \(\varphi\) acceptance. |
Definition at line 128 of file AliAODForwardMult.cxx.
Referenced by GetPhiAcceptanceBin().
Fill the trigger histogram previously made with MakeTriggerHistogram
triggerMask | Mask |
trg | Triggers |
hist | Histogram to fill |
Definition at line 404 of file AliAODForwardMult.cxx.
Referenced by CheckEvent(), IsFolder(), and AliFMDEventInspector::ReadTriggers().
Bool_t AliAODForwardMult::FilterEvent | ( | Double_t | vzMin, |
Double_t | vzMax, | ||
TH1 * | hist, | ||
TH1 * | status, | ||
UInt_t | filterMask | ||
) | const |
Check wether this event was vetoed.
vzMin | Least \(\mbox{IP}_{z}\) |
vzMax | Largest \(\mbox{IP}_{z}\) |
hist | Trigger histogram |
status | Status histogram |
filterMask | Filter mask. Interpreted as an OR pattern of bits we should filter out. |
Definition at line 440 of file AliAODForwardMult.cxx.
Referenced by CheckEvent(), and IsFolder().
|
inline |
Get the event centrality
Definition at line 391 of file AliAODForwardMult.h.
Referenced by AliForwardMultiplicityTask::Event(), AliForwardMCMultiplicityTask::Event(), AliBaseAODTask::GetCentrality(), AliForwardFlowTaskQC::GetCentrality(), and AliMCTruthdNdetaTask::CentralityBin::ProcessEvent().
TH1 * AliAODForwardMult::GetEtaCoverage | ( | ) | const |
Get the \(\eta\) coverage. User must manage return
Definition at line 99 of file AliAODForwardMult.cxx.
Referenced by FillEtaCoverage(), and GetPhiAcceptanceBin().
|
inline |
Get which bin the \(\eta\) coverage is stored in
Definition at line 271 of file AliAODForwardMult.h.
Referenced by GetEtaCoverage().
|
inline |
Get the \( d^2N_{ch}/d\eta d\phi\) histogram,
Definition at line 259 of file AliAODForwardMult.h.
Referenced by AliForwardMCFlowTaskQC::Analyze(), AliForwardFlowTaskQC::Analyze(), AliFMDEventPlaneTask::Event(), AliForwardMultiplicityTask::Event(), AliForwardMCMultiplicityTask::Event(), AliForwardMultDists::Event(), AliBaseMultTask::Event(), AliForwarddNdetaTask::GetHistogram(), AliForwardMultiplicityBase::InitMembers(), and AliForwardMultDists::PreData().
|
inline |
Get the \( d^2N_{ch}/d\eta d\phi\) histogram,
Definition at line 265 of file AliAODForwardMult.h.
|
inline |
Set the z coordinate of the interaction point
Definition at line 322 of file AliAODForwardMult.h.
Referenced by AliBasedNdetaTask::ApplyEmpiricalCorrection(), AliBasedNdetaTask::CentralityBin::CheckEvent(), AliFMDEventPlaneTask::Event(), AliForwardMultDists::Event(), AliBaseMultTask::Event(), AliBasedNdetaTask::Event(), AliBaseAODTask::GetIpZ(), and AliForwardFlowTaskQC::GetVertex().
|
inline |
Get the name of the object
Definition at line 679 of file AliAODForwardMult.h.
|
inline |
Get the number of SPD clusters seen in \( |\eta|<1\)
Definition at line 408 of file AliAODForwardMult.h.
TH1 * AliAODForwardMult::GetPhiAcceptance | ( | ) | const |
Get the \(\varphi\) acceptance. User must manage return
Definition at line 110 of file AliAODForwardMult.cxx.
Referenced by FillPhiAcceptance(), and GetPhiAcceptanceBin().
|
inline |
Get which bin the \(\varphi\) acceptance is stored in
Definition at line 277 of file AliAODForwardMult.h.
Referenced by GetPhiAcceptance().
UShort_t AliAODForwardMult::GetSNN | ( | ) | const |
Get the center of mass energy per nucleon pair (GeV)
Definition at line 170 of file AliAODForwardMult.cxx.
Referenced by GetIpZ(), Print(), and AliBaseAODTask::StoreInformation().
UShort_t AliAODForwardMult::GetSystem | ( | ) | const |
Get the collision system number
Definition at line 182 of file AliAODForwardMult.cxx.
Referenced by GetIpZ(), Print(), and AliBaseAODTask::StoreInformation().
|
inline |
Get the trigger bits
Definition at line 425 of file AliAODForwardMult.h.
Referenced by AliBasedNdetaTask::CentralityBin::CheckEvent().
Get a string correspondig to the trigger mask
mask | Trigger mask |
sep | Field separator |
Definition at line 224 of file AliAODForwardMult.cxx.
Referenced by Browse(), AliForwardQATask::Event(), AliBasedNdetaTask::Finalize(), HasTrigger(), MakeTriggerHistogram(), AliForwardMultiplicityBase::Print(), AliBaseAODTask::Print(), and Print().
|
inline |
Check if we have a valid centrality
Definition at line 397 of file AliAODForwardMult.h.
Referenced by AliForwardFlowTaskQC::GetCentrality().
Bool_t AliAODForwardMult::HasIpZ | ( | ) | const |
Check if we have a valid z coordinate of the interaction point
Definition at line 158 of file AliAODForwardMult.cxx.
Referenced by FilterEvent(), GetIpZ(), AliForwardFlowTaskQC::GetVertex(), InRange(), and Print().
|
inline |
Whether we have any trigger bits
Definition at line 479 of file AliAODForwardMult.h.
Referenced by IsTriggerOrBits().
void AliAODForwardMult::Init | ( | const TAxis & | etaAxis | ) |
Initialize
etaAxis | Pseudo-rapidity axis |
Definition at line 71 of file AliAODForwardMult.cxx.
Referenced by AliForwardMCMultiplicityTask::InitMembers(), AliForwardMultiplicityBase::InitMembers(), and ~AliAODForwardMult().
Check if the z coordinate of the interaction point is within the given limits. Note that the convention used corresponds to the convention used in ROOTs TAxis.
low | Lower cut (inclusive) |
high | Upper cut (exclusive) |
Definition at line 819 of file AliAODForwardMult.h.
Referenced by FilterEvent(), and GetIpZ().
|
inline |
Check if acceptance correction (from dead strips) was applied
Definition at line 646 of file AliAODForwardMult.h.
|
inline |
Check for B(arrel) trigger *
Definition at line 545 of file AliAODForwardMult.h.
|
inline |
Check for A-side trigger *
Definition at line 539 of file AliAODForwardMult.h.
|
inline |
Check if an empirical correction was applied in the event level.
Definition at line 659 of file AliAODForwardMult.h.
|
inline |
Check for Empty bunch crossing *
Definition at line 533 of file AliAODForwardMult.h.
|
inline |
Check for C-side trigger *
Definition at line 551 of file AliAODForwardMult.h.
|
inline |
Check for Empty trigger *
Definition at line 557 of file AliAODForwardMult.h.
|
inline |
|
inline |
Check for In-elastic collision - really MBOR*
Definition at line 515 of file AliAODForwardMult.h.
|
inline |
Check for In-elastic collision with at least one SPD tracklet *
Definition at line 521 of file AliAODForwardMult.h.
|
inline |
Check for true NSD from MC *
Definition at line 569 of file AliAODForwardMult.h.
|
inline |
Check if merging efficiency (from MC) was applied
Definition at line 652 of file AliAODForwardMult.h.
|
inline |
Check for At least one SPD cluster *
Definition at line 581 of file AliAODForwardMult.h.
|
inline |
Check for Non-single diffractive collision - (V0AND||FASTOR>5) *
Definition at line 527 of file AliAODForwardMult.h.
|
inline |
Check for Offline MB triggered *
Definition at line 575 of file AliAODForwardMult.h.
|
inline |
Check for pileup from SPD *
Definition at line 563 of file AliAODForwardMult.h.
|
inline |
Check for Out of bunch pileup *
Definition at line 617 of file AliAODForwardMult.h.
|
inline |
Check for SPD pile-up in mult bins *
Definition at line 623 of file AliAODForwardMult.h.
|
inline |
Check for SPD pile-up *
Definition at line 605 of file AliAODForwardMult.h.
|
inline |
Check for Track pile-up *
Definition at line 611 of file AliAODForwardMult.h.
|
inline |
Check for Satellite event *
Definition at line 593 of file AliAODForwardMult.h.
|
inline |
Check if the data has been secondary corrected by MC maps
Definition at line 634 of file AliAODForwardMult.h.
|
inline |
Check for SPD outlier event *
Definition at line 599 of file AliAODForwardMult.h.
|
inline |
Check if the output is the sum (not average) in regions of overlap between detectors.
Definition at line 668 of file AliAODForwardMult.h.
Check if all/some bit(s) are set in the trigger mask trg. Note, this is an and between the bits, unless the bit kInclusive is set in the bits argument. If you need an or you should use the member function IsTriggerOrBits, or set the bit kInclusive
bits | Bits to test for |
trg | Event trigger bits |
Definition at line 832 of file AliAODForwardMult.h.
Referenced by CheckEvent(), AliForwardMCFlowTaskQC::CheckTrigger(), AliForwardFlowTaskQC::CheckTrigger(), AliForwardMultiplicityTask::Event(), AliForwardMCMultiplicityTask::Event(), AliForwardMultDists::Event(), AliBaseMultTask::Event(), AliBasedNdetaTask::Event(), FillTriggerHistogram(), FilterEvent(), AliForwardTriggerBiasCorrection::IsESDClass(), AliBaseMultTask::IsESDClass(), AliBaseMultTask::IsMCClass(), IsTriggerBits(), and SetTriggerBits().
Check if all/some bit(s) are set in the trigger mask. Calls the static version if this member function with the second argument set to fTriggers
bits | Bits to test for |
Definition at line 826 of file AliAODForwardMult.h.
Check if any of bit(s) are enabled in the trigger word. This is an or between the selected bits. If you need and and you should use the member function IsTriggerBits;
bits | Bits to check for |
Definition at line 842 of file AliAODForwardMult.h.
Referenced by SetTriggerBits().
|
inline |
Check for V0-AND trigger *
Definition at line 587 of file AliAODForwardMult.h.
|
inline |
Check if vertex bias correction was applied
Definition at line 640 of file AliAODForwardMult.h.
|
static |
Make a histogram to record status in.
The bins defined by the status enumeration in this class.
name | Name of the histogram |
Definition at line 315 of file AliAODForwardMult.cxx.
Referenced by AliBasedNdetaTask::CentralityBin::CreateOutputObjects(), IsFolder(), and AliBaseAODTask::UserCreateOutputObjects().
|
static |
Make a histogram to record triggers in.
The bins defined by the trigger enumeration in this class. One can use this enumeration to retrieve the number of triggers for each class.
name | Name of the histogram |
mask | Trigger mask |
Definition at line 266 of file AliAODForwardMult.cxx.
Referenced by AliBasedNdetaTask::CentralityBin::CreateOutputObjects(), IsFolder(), AliFMDEventInspector::SetupForData(), and AliBaseAODTask::UserCreateOutputObjects().
|
static |
Utility function to make a trigger mask from the passed string.
The string is a comma or space seperated list of case-insensitive strings
what | Which triggers to put in the mask. |
sep | Field separator |
Definition at line 348 of file AliAODForwardMult.cxx.
Referenced by HasTrigger(), AliBaseAODTask::SetFilterMask(), and AliBaseAODTask::SetTriggerMask().
void AliAODForwardMult::Print | ( | Option_t * | option = "" | ) | const |
Print content
option | Passed verbatim to TH2::Print |
Definition at line 541 of file AliAODForwardMult.cxx.
Referenced by IsFolder().
|
inline |
Set the event centrality
c | Centrality |
Definition at line 385 of file AliAODForwardMult.h.
Referenced by AliForwardMultiplicityTask::Event(), and AliForwardMCMultiplicityTask::Event().
|
inline |
Set the z coordinate of the interaction point
ipZ | Interaction point z coordinate |
Definition at line 316 of file AliAODForwardMult.h.
Referenced by AliForwardMultiplicityTask::Event(), and AliForwardMCMultiplicityTask::Event().
|
inline |
Set the number of SPD clusters seen in \( |\eta|<1\)
n | Number of SPD clusters |
Definition at line 414 of file AliAODForwardMult.h.
Referenced by AliForwardMultiplicityTask::Event(), and AliForwardMCMultiplicityTask::Event().
void AliAODForwardMult::SetSNN | ( | UShort_t | sNN | ) |
Set the center of mass energy per nucleon-pair. This is stored in the (0,0) of the histogram
sNN | Center of mass energy per nucleon pair (GeV) |
Definition at line 135 of file AliAODForwardMult.cxx.
Referenced by AliForwardMultiplicityTask::Event(), AliForwardMCMultiplicityTask::Event(), and GetIpZ().
void AliAODForwardMult::SetSystem | ( | UShort_t | sys | ) |
Get the collision system number
sys | Collision system number |
Definition at line 146 of file AliAODForwardMult.cxx.
Referenced by AliForwardMultiplicityTask::Event(), AliForwardMCMultiplicityTask::Event(), and GetIpZ().
|
inline |
Set bit(s) in trigger mask
bits | bit(s) to set |
Definition at line 437 of file AliAODForwardMult.h.
Referenced by AliForwardMultiplicityTask::Event(), AliForwardMCMultiplicityTask::Event(), AliBaseAODTask::GetCentrality(), and AliBasedNdetaTask::GetCentrality().
|
inline |
|
protected |
Centrality
Definition at line 809 of file AliAODForwardMult.h.
Referenced by Browse(), CheckEvent(), GetCentrality(), HasCentrality(), Print(), and SetCentrality().
|
staticprotected |
Invalid value for interaction point \( z\) coordinate
Definition at line 813 of file AliAODForwardMult.h.
|
protected |
Histogram of \( N_{ch}(\eta,\phi)\) for this event
Definition at line 803 of file AliAODForwardMult.h.
Referenced by AliAODForwardMult(), Browse(), Clear(), GetEtaCoverage(), GetHistogram(), GetPhiAcceptance(), GetPhiAcceptanceBin(), GetSNN(), GetSystem(), Init(), Print(), SetSNN(), and SetSystem().
|
protected |
|
protected |
|
protected |
Number of clusters in \(|\eta|<1\)
Definition at line 811 of file AliAODForwardMult.h.
Referenced by Browse(), Clear(), GetNClusters(), and SetNClusters().
|
protected |
Trigger bits
Definition at line 805 of file AliAODForwardMult.h.
Referenced by Browse(), CheckEvent(), Clear(), GetTriggerBits(), HasTrigger(), IsBeamBeam(), IsBeamEmpty(), IsEmpty(), IsEmptyBeam(), IsEmptyEmpty(), IsInel(), IsInelGt0(), IsMCNSD(), IsNClusterGt0(), IsNSD(), IsOffline(), IsPileUp(), IsPileupBC(), IsPileupBins(), IsPileupSPD(), IsPileupTrack(), IsSatellite(), IsSPDOutlier(), IsTriggerBits(), IsTriggerOrBits(), IsV0AND(), Print(), SetTriggerBits(), and SetTriggerMask().