AliPhysics  608b256 (608b256)
AliAODForwardMult Class Reference

#include <AliAODForwardMult.h>

Inheritance diagram for AliAODForwardMult:

Public Types

enum  ETriggerBits {
  kInel = 0x0001, kInelGt0 = 0x0002, kNSD = 0x0004, kEmpty = 0x0008,
  kA = 0x0010, kB = 0x0020, kC = 0x0080, kE = 0x0100,
  kPileUp = 0x0200, kMCNSD = 0x0400, kOffline = 0x0800, kNClusterGt0 = 0x1000,
  kV0AND = 0x2000, kSatellite = 0x4000, kSPDOutlier = 0x8000, kPileupSPD = 0x10000,
  kPileupTrack = 0x20000, kPileupBC = 0x40000, kPileupBins = 0x80000, kADOR = 0x100000,
  kADAND = 0x200000, kCentNoCalib = 0x4000000, kInclusive = 0x8000000, kDefaultFilter = kCentNoCalib|kPileupBins|kSPDOutlier
}
 
enum  ETriggerBins {
  kBinAll =1, kBinInel, kBinInelGt0, kBinNSD,
  kBinV0AND, kBinADOR, kBinADAND, kBinA,
  kBinB, kBinC, kBinE, kBinSatellite,
  kBinMCNSD, kBinPileUp, kBinOffline, kBinNClusterGt0,
  kWithTrigger, kWithVertex, kAccepted
}
 
enum  EFlags {
  kSecondary = (1 << 14), kVertexBias = (1 << 15), kAcceptance = (1 << 16), kMergingEfficiency = (1 << 17),
  kSum = (1 << 18), kEmpirical = (1 << 19)
}
 
enum  ECheckStatus {
  kGoodEvent = 0, kWrongCentrality, kWrongTrigger, kIsPileup,
  kIsFilterOut, kNoVertex, kWrongVertex, kOutlierEvent
}
 

Public Member Functions

 AliAODForwardMult ()
 
 AliAODForwardMult (Bool_t isMC)
 
virtual ~AliAODForwardMult ()
 
void Init (const TAxis &etaAxis)
 
Get the Nch
const TH2DGetHistogram () const
 
TH2DGetHistogram ()
 
Int_t GetEtaCoverageBin () const
 
Int_t GetPhiAcceptanceBin () const
 
TH1GetEtaCoverage () const
 
TH1GetPhiAcceptance () const
 
void FillEtaCoverage (TH1 &h) const
 
void FillPhiAcceptance (TH1 &h) const
 
Prinary interaction point
void SetIpZ (Float_t ipZ)
 
Float_t GetIpZ () const
 
Bool_t HasIpZ () const
 
Bool_t InRange (Float_t low, Float_t high) const
 
Collision system
void SetSNN (UShort_t sNN)
 
void SetSystem (UShort_t sys)
 
UShort_t GetSNN () const
 
UShort_t GetSystem () const
 
Centrality
void SetCentrality (Float_t c)
 
Float_t GetCentrality () const
 
Bool_t HasCentrality () const
 
SPD clusters
UShort_t GetNClusters () const
 
void SetNClusters (UShort_t n)
 
Check specific trigger bits
Bool_t IsInel () const
 
Bool_t IsInelGt0 () const
 
Bool_t IsNSD () const
 
Bool_t IsEmpty () const
 
Bool_t IsBeamEmpty () const
 
Bool_t IsBeamBeam () const
 
Bool_t IsEmptyBeam () const
 
Bool_t IsEmptyEmpty () const
 
Bool_t IsPileUp () const
 
Bool_t IsMCNSD () const
 
Bool_t IsOffline () const
 
Bool_t IsNClusterGt0 () const
 
Bool_t IsV0AND () const
 
Bool_t IsSatellite () const
 
Bool_t IsSPDOutlier () const
 
Bool_t IsPileupSPD () const
 
Bool_t IsPileupTrack () const
 
Bool_t IsPileupBC () const
 
Bool_t IsPileupBins () const
 
Check flags
Bool_t IsSecondaryCorrected () const
 
Bool_t IsVertexBiasCorrected () const
 
Bool_t IsAcceptanceCorrected () const
 
Bool_t IsMergingEfficiencyCorrected () const
 
Bool_t IsEmpiricalCorrected () const
 
Bool_t IsSumSignal () const
 
Other services
const Char_tGetName () const
 
void Clear (Option_t *option="")
 
void Browse (TBrowser *b)
 
Bool_t IsFolder () const
 
void Print (Option_t *option="") const
 

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_tGetTriggerString (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 TH1IMakeTriggerHistogram (const char *name="triggers", UInt_t mask=0)
 
static TH1IMakeStatusHistogram (const char *name="status")
 

Detailed Description

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.

TTree* GetAODTree()
{
TFile* file = TFile::Open("AliAODs.root","READ");
TTree* tree = static_cast<TTree*>(file->Get("aodTree"));
return tree;
}
void Analyse()
{
TH2D* sum = 0; // Summed hist
TTree* tree = GetAODTree(); // AOD tree
AliAODForwardMult* mult = 0; // AOD object
Int_t nTriggered = 0; // # of triggered ev.
Int_t nWithVertex= 0; // # of ev. w/vertex
Int_t nAccepted = 0; // # of ev. used
Int_t nAvailable = tree->GetEntries(); // How many entries
Float_t vzLow = -10; // Lower ip cut
Float_t vzHigh = 10; // Upper ip cut
Int_t mask = AliAODForwardMult::kInel;// Trigger mask
tree->SetBranchAddress("forward", &forward); // Set the address
for (int i = 0; i < nAvailable; i++) {
// Create sum histogram on first event - to match binning to input
if (!sum) sum = static_cast<TH2D*>(mult->Clone("d2ndetadphi"));
tree->GetEntry(i);
// Other trigger/event requirements could be defined
if (!mult->IsTriggerBits(mask)) continue;
nTriggered++;
// Check if we have vertex
if (!mult->HasIpZ()) continue;
nWithVertex++;
// Select vertex range (in centimeters)
if (!mult->InRange(vzLow, vzHigh) continue;
nAccepted++;
// Add contribution from this event
sum->Add(&(mult->GetHistogram()));
}
// Get acceptance normalisation from underflow bins
TH1D* norm = sum->ProjectionX("norm", 0, 1, "");
// Project onto eta axis - _ignoring_underflow_bins_!
TH1D* dndeta = sum->Projection("dndeta", 1, -1, "e");
// Normalize to the acceptance
dndeta->Divide(norm);
// Scale by the vertex efficiency
dndeta->Scale(Double_t(nWithVertex)/nTriggered, "width");
// And draw the result
dndeta->Draw();
}

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.

Constructor & Destructor Documentation

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

Parameters
isMCWhether this was from MC or not

Definition at line 47 of file AliAODForwardMult.cxx.

virtual AliAODForwardMult::~AliAODForwardMult ( )
inlinevirtual

Destructor

Definition at line 243 of file AliAODForwardMult.h.

Member Function Documentation

void AliAODForwardMult::Browse ( TBrowser *  b)

browse this object

Parameters
bBrowser

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

  • The trigger is within the bit mask passed.
  • The vertex is within the specified limits.
  • The centrality is within the specified limits, or if lower limit is equal to or larger than the upper limit.

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.

Parameters
triggerMaskTrigger mask. All bits in this mask must be set (AND)
vzMinMinimum \( v_z\) (in centimeters)
vzMaxMaximum \( v_z\) (in centimeters)
cMinMinimum centrality (in percent)
cMaxMaximum centrality (in percent)
histHistogram to fill
statusHistogram to fill
filterMaskMask of trigger bits to filter on. If any bit in this mask is set, reject the event (OR)
Returns
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

Parameters
optionPassed 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.

Parameters
hOn 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.

Parameters
hOn return, the \(\varphi\) acceptance.

Definition at line 128 of file AliAODForwardMult.cxx.

Referenced by GetPhiAcceptanceBin().

void AliAODForwardMult::FillTriggerHistogram ( UInt_t  triggerMask,
UInt_t  trg,
TH1 hist 
)
static

Fill the trigger histogram previously made with MakeTriggerHistogram

Parameters
triggerMaskMask
trgTriggers
histHistogram 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.

Parameters
vzMinLeast \(\mbox{IP}_{z}\)
vzMaxLargest \(\mbox{IP}_{z}\)
histTrigger histogram
statusStatus histogram
filterMaskFilter mask. Interpreted as an OR pattern of bits we should filter out.
Returns
true if the event was not vetoed.

Definition at line 440 of file AliAODForwardMult.cxx.

Referenced by CheckEvent(), and IsFolder().

Float_t AliAODForwardMult::GetCentrality ( ) const
inline
TH1 * AliAODForwardMult::GetEtaCoverage ( ) const

Get the \(\eta\) coverage. User must manage return

Returns
The \(\eta\) coverage.

Definition at line 99 of file AliAODForwardMult.cxx.

Referenced by FillEtaCoverage(), and GetPhiAcceptanceBin().

Int_t AliAODForwardMult::GetEtaCoverageBin ( ) const
inline

Get which bin the \(\eta\) coverage is stored in

Returns
The bin (in phi) that stores the coverage

Definition at line 271 of file AliAODForwardMult.h.

Referenced by GetEtaCoverage().

TH2D& AliAODForwardMult::GetHistogram ( )
inline

Get the \( d^2N_{ch}/d\eta d\phi\) histogram,

Returns
\( d^2N_{ch}/d\eta d\phi\) histogram,

Definition at line 265 of file AliAODForwardMult.h.

Float_t AliAODForwardMult::GetIpZ ( ) const
inline
const Char_t* AliAODForwardMult::GetName ( ) const
inline

Get the name of the object

Returns
Name of object

Definition at line 679 of file AliAODForwardMult.h.

UShort_t AliAODForwardMult::GetNClusters ( ) const
inline

Get the number of SPD clusters seen in \( |\eta|<1\)

Returns
Number of SPD clusters seen

Definition at line 408 of file AliAODForwardMult.h.

TH1 * AliAODForwardMult::GetPhiAcceptance ( ) const

Get the \(\varphi\) acceptance. User must manage return

Returns
The \(\varphi\) acceptance.

Definition at line 110 of file AliAODForwardMult.cxx.

Referenced by FillPhiAcceptance(), and GetPhiAcceptanceBin().

Int_t AliAODForwardMult::GetPhiAcceptanceBin ( ) const
inline

Get which bin the \(\varphi\) acceptance is stored in

Returns
The bin (in phi) that stores the acceptance

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)

Returns
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

  • 0: Unknown
  • 1: pp
  • 2: PbPb
Returns
Collision system number

Definition at line 182 of file AliAODForwardMult.cxx.

Referenced by GetIpZ(), Print(), and AliBaseAODTask::StoreInformation().

UInt_t AliAODForwardMult::GetTriggerBits ( ) const
inline

Get the trigger bits

Returns
Trigger bits

Definition at line 425 of file AliAODForwardMult.h.

Referenced by AliBasedNdetaTask::CentralityBin::CheckEvent().

const Char_t * AliAODForwardMult::GetTriggerString ( UInt_t  mask,
const char *  sep = "&" 
)
static

Get a string correspondig to the trigger mask

Parameters
maskTrigger mask
sepField separator
Returns
Static string (copy before use)

Definition at line 224 of file AliAODForwardMult.cxx.

Referenced by Browse(), AliForwardQATask::Event(), AliBasedNdetaTask::Finalize(), HasTrigger(), MakeTriggerHistogram(), AliForwardMultiplicityBase::Print(), AliBaseAODTask::Print(), and Print().

Bool_t AliAODForwardMult::HasCentrality ( ) const
inline

Check if we have a valid centrality

Returns
true if the centrality information is valid

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

Returns
True if we have a valid interaction point z coordinate

Definition at line 158 of file AliAODForwardMult.cxx.

Referenced by FilterEvent(), GetIpZ(), AliForwardFlowTaskQC::GetVertex(), InRange(), and Print().

Bool_t AliAODForwardMult::HasTrigger ( ) const
inline

Whether we have any trigger bits

Returns
true if we have some trigger

Definition at line 479 of file AliAODForwardMult.h.

Referenced by IsTriggerOrBits().

void AliAODForwardMult::Init ( const TAxis etaAxis)

Initialize

Parameters
etaAxisPseudo-rapidity axis

Definition at line 71 of file AliAODForwardMult.cxx.

Referenced by AliForwardMCMultiplicityTask::InitMembers(), AliForwardMultiplicityBase::InitMembers(), and ~AliAODForwardMult().

Bool_t AliAODForwardMult::InRange ( Float_t  low,
Float_t  high 
) const
inline

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.

Parameters
lowLower cut (inclusive)
highUpper cut (exclusive)
Returns
true if \( low \ge ipz < high\)

Definition at line 819 of file AliAODForwardMult.h.

Referenced by FilterEvent(), and GetIpZ().

Bool_t AliAODForwardMult::IsAcceptanceCorrected ( ) const
inline

Check if acceptance correction (from dead strips) was applied

Returns
true if acceptance correction was applied

Definition at line 646 of file AliAODForwardMult.h.

Bool_t AliAODForwardMult::IsBeamBeam ( ) const
inline

Check for B(arrel) trigger *

Returns
true if kB bit is set

Definition at line 545 of file AliAODForwardMult.h.

Bool_t AliAODForwardMult::IsBeamEmpty ( ) const
inline

Check for A-side trigger *

Returns
true if kA bit is set

Definition at line 539 of file AliAODForwardMult.h.

Bool_t AliAODForwardMult::IsEmpiricalCorrected ( ) const
inline

Check if an empirical correction was applied in the event level.

Returns
True if the empirical correction was applied per event.

Definition at line 659 of file AliAODForwardMult.h.

Bool_t AliAODForwardMult::IsEmpty ( ) const
inline

Check for Empty bunch crossing *

Returns
true if kEmpty bit is set

Definition at line 533 of file AliAODForwardMult.h.

Bool_t AliAODForwardMult::IsEmptyBeam ( ) const
inline

Check for C-side trigger *

Returns
true if kC bit is set

Definition at line 551 of file AliAODForwardMult.h.

Bool_t AliAODForwardMult::IsEmptyEmpty ( ) const
inline

Check for Empty trigger *

Returns
true if kE bit is set

Definition at line 557 of file AliAODForwardMult.h.

Bool_t AliAODForwardMult::IsFolder ( ) const
inline

This is a folder

Returns
Always true

Definition at line 697 of file AliAODForwardMult.h.

Bool_t AliAODForwardMult::IsInel ( ) const
inline

Check for In-elastic collision - really MBOR*

Returns
true if kInel bit is set

Definition at line 515 of file AliAODForwardMult.h.

Bool_t AliAODForwardMult::IsInelGt0 ( ) const
inline

Check for In-elastic collision with at least one SPD tracklet *

Returns
true if kInelGt0 bit is set

Definition at line 521 of file AliAODForwardMult.h.

Bool_t AliAODForwardMult::IsMCNSD ( ) const
inline

Check for true NSD from MC *

Returns
true if kMCNSD bit is set

Definition at line 569 of file AliAODForwardMult.h.

Bool_t AliAODForwardMult::IsMergingEfficiencyCorrected ( ) const
inline

Check if merging efficiency (from MC) was applied

Returns
true if merging efficiency was applied

Definition at line 652 of file AliAODForwardMult.h.

Bool_t AliAODForwardMult::IsNClusterGt0 ( ) const
inline

Check for At least one SPD cluster *

Returns
true if kNClusterGt0 bit is set

Definition at line 581 of file AliAODForwardMult.h.

Bool_t AliAODForwardMult::IsNSD ( ) const
inline

Check for Non-single diffractive collision - (V0AND||FASTOR>5) *

Returns
true if kNSD bit is set

Definition at line 527 of file AliAODForwardMult.h.

Bool_t AliAODForwardMult::IsOffline ( ) const
inline

Check for Offline MB triggered *

Returns
true if kOffline bit is set

Definition at line 575 of file AliAODForwardMult.h.

Bool_t AliAODForwardMult::IsPileUp ( ) const
inline

Check for pileup from SPD *

Returns
true if kPileUp bit is set

Definition at line 563 of file AliAODForwardMult.h.

Bool_t AliAODForwardMult::IsPileupBC ( ) const
inline

Check for Out of bunch pileup *

Returns
true if kPileupBC bit is set

Definition at line 617 of file AliAODForwardMult.h.

Bool_t AliAODForwardMult::IsPileupBins ( ) const
inline

Check for SPD pile-up in mult bins *

Returns
true if kPileupBins bit is set

Definition at line 623 of file AliAODForwardMult.h.

Bool_t AliAODForwardMult::IsPileupSPD ( ) const
inline

Check for SPD pile-up *

Returns
true if kPileupSPD bit is set

Definition at line 605 of file AliAODForwardMult.h.

Bool_t AliAODForwardMult::IsPileupTrack ( ) const
inline

Check for Track pile-up *

Returns
true if kPileupTrack bit is set

Definition at line 611 of file AliAODForwardMult.h.

Bool_t AliAODForwardMult::IsSatellite ( ) const
inline

Check for Satellite event *

Returns
true if kSatellite bit is set

Definition at line 593 of file AliAODForwardMult.h.

Bool_t AliAODForwardMult::IsSecondaryCorrected ( ) const
inline

Check if the data has been secondary corrected by MC maps

Returns
true if secondary corrected via MC maps

Definition at line 634 of file AliAODForwardMult.h.

Bool_t AliAODForwardMult::IsSPDOutlier ( ) const
inline

Check for SPD outlier event *

Returns
true if kSPDOutlier bit is set

Definition at line 599 of file AliAODForwardMult.h.

Bool_t AliAODForwardMult::IsSumSignal ( ) const
inline

Check if the output is the sum (not average) in regions of overlap between detectors.

Returns
true if the sum (not average) is stored in overlap regions.

Definition at line 668 of file AliAODForwardMult.h.

Bool_t AliAODForwardMult::IsTriggerBits ( UInt_t  bits,
UInt_t  trg 
)
inlinestatic

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

Parameters
bitsBits to test for
trgEvent trigger bits
Returns
true if all/some enabled bits in the argument is also set in the trigger word trg

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().

Bool_t AliAODForwardMult::IsTriggerBits ( UInt_t  bits) const
inline

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

Parameters
bitsBits to test for
Returns
true if all/some enabled bits in the argument is also set in the trigger word stored in this object

Definition at line 826 of file AliAODForwardMult.h.

Bool_t AliAODForwardMult::IsTriggerOrBits ( UInt_t  bits) const
inline

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;

Parameters
bitsBits to check for
Returns
true if any of the enabled bits in the arguments are also enabled in the trigger mask

Definition at line 842 of file AliAODForwardMult.h.

Referenced by SetTriggerBits().

Bool_t AliAODForwardMult::IsV0AND ( ) const
inline

Check for V0-AND trigger *

Returns
true if kV0AND bit is set

Definition at line 587 of file AliAODForwardMult.h.

Bool_t AliAODForwardMult::IsVertexBiasCorrected ( ) const
inline

Check if vertex bias correction was applied

Returns
true if MC based vertex bias was applied

Definition at line 640 of file AliAODForwardMult.h.

TH1I * AliAODForwardMult::MakeStatusHistogram ( const char *  name = "status")
static

Make a histogram to record status in.

The bins defined by the status enumeration in this class.

Parameters
nameName of the histogram
Returns
Newly allocated histogram

Definition at line 315 of file AliAODForwardMult.cxx.

Referenced by AliBasedNdetaTask::CentralityBin::CreateOutputObjects(), IsFolder(), and AliBaseAODTask::UserCreateOutputObjects().

TH1I * AliAODForwardMult::MakeTriggerHistogram ( const char *  name = "triggers",
UInt_t  mask = 0 
)
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.

Parameters
nameName of the histogram
maskTrigger mask
Returns
Newly allocated histogram

Definition at line 266 of file AliAODForwardMult.cxx.

Referenced by AliBasedNdetaTask::CentralityBin::CreateOutputObjects(), IsFolder(), AliFMDEventInspector::SetupForData(), and AliBaseAODTask::UserCreateOutputObjects().

UInt_t AliAODForwardMult::MakeTriggerMask ( const char *  what,
const char *  sep = "&" 
)
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

  • INEL
  • INEL>0
  • NSD
Parameters
whatWhich triggers to put in the mask.
sepField separator
Returns
The generated trigger mask.

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

Parameters
optionPassed verbatim to TH2::Print

Definition at line 541 of file AliAODForwardMult.cxx.

Referenced by IsFolder().

void AliAODForwardMult::SetCentrality ( Float_t  c)
inline

Set the event centrality

Parameters
cCentrality

Definition at line 385 of file AliAODForwardMult.h.

Referenced by AliForwardMultiplicityTask::Event(), and AliForwardMCMultiplicityTask::Event().

void AliAODForwardMult::SetIpZ ( Float_t  ipZ)
inline

Set the z coordinate of the interaction point

Parameters
ipZInteraction point z coordinate

Definition at line 316 of file AliAODForwardMult.h.

Referenced by AliForwardMultiplicityTask::Event(), and AliForwardMCMultiplicityTask::Event().

void AliAODForwardMult::SetNClusters ( UShort_t  n)
inline

Set the number of SPD clusters seen in \( |\eta|<1\)

Parameters
nNumber 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

Parameters
sNNCenter 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

  • 0: Unknown
  • 1: pp
  • 2: PbPb
Parameters
sysCollision system number

Definition at line 146 of file AliAODForwardMult.cxx.

Referenced by AliForwardMultiplicityTask::Event(), AliForwardMCMultiplicityTask::Event(), and GetIpZ().

void AliAODForwardMult::SetTriggerBits ( UInt_t  bits)
inline

Set bit(s) in trigger mask

Parameters
bitsbit(s) to set

Definition at line 437 of file AliAODForwardMult.h.

Referenced by AliForwardMultiplicityTask::Event(), AliForwardMCMultiplicityTask::Event(), AliBaseAODTask::GetCentrality(), and AliBasedNdetaTask::GetCentrality().

void AliAODForwardMult::SetTriggerMask ( UInt_t  trg)
inline

Set the trigger mask

Parameters
trgTrigger mask

Definition at line 431 of file AliAODForwardMult.h.

Member Data Documentation

Float_t AliAODForwardMult::fCentrality
protected

Centrality

Definition at line 809 of file AliAODForwardMult.h.

Referenced by Browse(), CheckEvent(), GetCentrality(), HasCentrality(), Print(), and SetCentrality().

const Float_t AliAODForwardMult::fgkInvalidIpZ = 1e6
staticprotected

Invalid value for interaction point \( z\) coordinate

Definition at line 813 of file AliAODForwardMult.h.

Referenced by Clear(), and HasIpZ().

TH2D AliAODForwardMult::fHist
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().

Float_t AliAODForwardMult::fIpZ
protected

Interaction point \( z\) coordinate

Definition at line 807 of file AliAODForwardMult.h.

Referenced by Browse(), Clear(), GetIpZ(), HasIpZ(), InRange(), Print(), and SetIpZ().

Bool_t AliAODForwardMult::fIsMC
protected

From MC or not

Definition at line 801 of file AliAODForwardMult.h.

Referenced by GetName().

UShort_t AliAODForwardMult::fNClusters
protected

Number of clusters in \(|\eta|<1\)

Definition at line 811 of file AliAODForwardMult.h.

Referenced by Browse(), Clear(), GetNClusters(), and SetNClusters().


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