![]() |
AliPhysics
4446124 (4446124)
|
#include <AliForwardUtil.h>
Classes | |
struct | DebugGuard |
struct | Histos |
struct | RingHistos |
struct | SuppressGuard |
Public Types | |
enum | { kInvalidValue = -9999 } |
enum | { kSkipRing = (1 << 19) } |
Static Public Member Functions | |
static Color_t | RingColor (UShort_t d, Char_t r) |
AliROOT version | |
static ULong_t | AliROOTRevision () |
static ULong_t | AliROOTBranch () |
Recalculate @f$\eta@f$, @f$\phi@f$, etc. | |
static Double_t | GetStripR (Char_t ring, UShort_t strip) |
static Double_t | GetSectorZ (UShort_t det, Char_t ring, UShort_t sec) |
static Double_t | GetSectorPhi (UShort_t det, Char_t ring, UShort_t sec) |
static Bool_t | GetXYZ (UShort_t det, Char_t ring, UShort_t sec, UShort_t str, const TVector3 &ip, TVector3 &pos) |
static Bool_t | GetEtaPhi (UShort_t det, Char_t ring, UShort_t sec, UShort_t str, const TVector3 &ip, Double_t &eta, Double_t &phi) |
static Double_t | GetEtaFromStrip (UShort_t det, Char_t ring, UShort_t sec, UShort_t strip, Double_t zvtx) |
static Bool_t | GetEtaPhiFromStrip (Char_t r, UShort_t strip, Double_t &eta, Double_t &phi, Double_t ipX, Double_t ipY) |
static Double_t | GetPhiFromStrip (Char_t ring, UShort_t strip, Double_t phi, Double_t xvtx, Double_t yvtx) |
Manager related tasks | |
static AliAODEvent * | GetAODEvent (AliAnalysisTaskSE *task) |
static UShort_t | CheckForAOD () |
static Bool_t | CheckForTask (const char *clsOrName, Bool_t cls=true) |
Member functions to store and retrieve analysis parameters | |
static TObject * | MakeParameter (const char *name, UShort_t value) |
static TObject * | MakeParameter (const char *name, Int_t value) |
static TObject * | MakeParameter (const char *name, Double_t value) |
static TObject * | MakeParameter (const char *name, Bool_t value) |
static TObject * | MakeParameter (const char *name, ULong_t value) |
static void | GetParameter (TObject *o, UShort_t &value) |
static void | GetParameter (TObject *o, Int_t &value) |
static void | GetParameter (TObject *o, Double_t &value) |
static void | GetParameter (TObject *o, Bool_t &value) |
static void | GetParameter (TObject *o, ULong_t &value) |
Axis functions | |
static TAxis * | MakeFullIpZAxis (Int_t nCenter=20) |
static void | MakeFullIpZAxis (Int_t nCenter, TArrayD &bins) |
static void | MakeLogScale (Int_t nBins, Int_t minOrder, Int_t maxOrder, TArrayD &bins) |
Centrality functions | |
static Float_t | GetCentrality (const AliVEvent &event, const TString &method, Int_t &qual, Bool_t verbose=false) |
static Float_t | GetCentralityMult (const AliVEvent &event, const TString &method, Int_t &qual, Bool_t verbose=false) |
static Float_t | GetCentralityCompat (const AliVEvent &event, const TString &method, Int_t &qual, Bool_t verbose) |
static Float_t | GetCentralityCompat (const AliESDEvent &event, const TString &method, Int_t &qual, Bool_t verbose) |
static Float_t | GetCentralityCompat (const AliAODEvent &event, const TString &method, Int_t &qual, Bool_t verbose) |
Printing utilities | |
static void | PrintTask (const TObject &o) |
static void | PrintName (const char *name) |
static void | PrintField (const char *name, const char *value,...) |
Private Member Functions | |
AliForwardUtil () | |
AliForwardUtil (const AliForwardUtil &o) | |
AliForwardUtil & | operator= (const AliForwardUtil &) |
~AliForwardUtil () | |
Collision/run parameters | |
enum | ECollisionSystem { kUnknown, kPP, kPbPb, kPPb, kPbp, kXeXe } |
static Float_t | BeamRapidity (Float_t beam, UShort_t z, UShort_t a) |
static Float_t | CenterOfMassEnergy (Float_t beam, UShort_t z1, UShort_t a1, Short_t z2=-1, Short_t a2=-1) |
static Float_t | CenterOfMassRapidity (UShort_t z1, UShort_t a1, Short_t z2=-1, Short_t a2=-1) |
static UShort_t | ParseCollisionSystem (const char *sys) |
static UShort_t | ParseCollisionSystem (Int_t b1a, Int_t b1z, Int_t b2a, Int_t b2z, const char *sys) |
static const char * | CollisionSystemString (UShort_t sys) |
static UShort_t | ParseCenterOfMassEnergy (UShort_t sys, Float_t cms) |
static const char * | CenterOfMassEnergyString (UShort_t cms) |
static Short_t | ParseMagneticField (Float_t field) |
static const char * | MagneticFieldString (Short_t field) |
Utilities used in the forward multiplcity analysis
Definition at line 36 of file AliForwardUtil.h.
anonymous enum |
Enumerator | |
---|---|
kInvalidValue |
Value if things cannot be calculated |
Definition at line 39 of file AliForwardUtil.h.
anonymous enum |
Enumerator | |
---|---|
kSkipRing |
Definition at line 43 of file AliForwardUtil.h.
Defined collision types
Enumerator | |
---|---|
kUnknown | |
kPP | |
kPbPb | |
kPPb | |
kPbp | |
kXeXe |
Definition at line 97 of file AliForwardUtil.h.
|
inlineprivate |
Constructor
Definition at line 883 of file AliForwardUtil.h.
|
inlineprivate |
|
inlineprivate |
Destructor
Definition at line 900 of file AliForwardUtil.h.
|
static |
Get the branch identifier of AliROOT. In case of trunk, return 0xFFFFFFFF, while for vM-N-R{-S}, we get
where X
is 0xAA if S is specified (e.g., analysis tag).
Definition at line 74 of file AliForwardUtil.cxx.
Referenced by AliFMDEventInspector::StoreInformation(), and AliBaseAODTask::UserCreateOutputObjects().
|
static |
Get the revision number of AliROOT
Definition at line 36 of file AliForwardUtil.cxx.
Referenced by AliFMDEventInspector::StoreInformation(), and AliBaseAODTask::UserCreateOutputObjects().
Calculate the beam rapidity.
Note: The beam energy is given in GeV/charge
beam | Beam energy in GeV/charge |
z | Charge number of projectile |
a | Mass number of projectile |
Definition at line 197 of file AliForwardUtil.cxx.
|
static |
Calculate the center of mass energy from the beam energy per charge and the nucleus numbers.
beam | Beam energy in GeV/charge |
z1 | Charge number of projectile |
a1 | Mass number of projectile |
z2 | Charge number of projectile |
a2 | Mass number of projectile |
Definition at line 209 of file AliForwardUtil.cxx.
Referenced by ParseCenterOfMassEnergy().
|
static |
Get a string representation of the center of mass energy per nuclean
cms | Center of mass energy per nucleon |
Definition at line 296 of file AliForwardUtil.cxx.
Referenced by AliCorrectionManagerBase::CheckConditions(), AliBasedNdetaTask::Finalize(), MultCutDrawer::Init(), AliCorrectionManagerBase::Print(), AliFMDEventInspector::Print(), and CorrDrawer::Run().
|
static |
Calculate the center of mass rapidity (shift)
z1 | Charge number of projectile |
a1 | Mass number of projectile |
z2 | Charge number of projectile |
a2 | Mass number of projectile x |
Definition at line 223 of file AliForwardUtil.cxx.
|
static |
Check if we have something that will provide and AOD event
Definition at line 361 of file AliForwardUtil.cxx.
Referenced by AddTaskdNdeta(), AddTaskFMDEventPlane(), AddTaskForwardFlowQC(), AddTaskForwardMultDists(), AliBaseAODTask::Connect(), AliForwardFlowTaskQC::FillTracks(), and AliForwardFlowTaskQC::GetVZERO().
Check if we have a particular (kind) of task in our train
clsOrName | Class name or name of task |
cls | If true, look for a task of a particular class - otherwise search for a speficially name task |
Definition at line 378 of file AliForwardUtil.cxx.
Referenced by AddTaskdNdeta(), AddTaskFMDEventPlane(), AddTaskForwardFlowQC(), AddTaskForwardMultDists(), and AliBaseAODTask::Connect().
|
static |
Get a string representation of the collision system
sys | Collision system
|
Definition at line 170 of file AliForwardUtil.cxx.
Referenced by AliCorrectionManagerBase::CheckConditions(), AliBasedNdetaTask::Finalize(), MultCutDrawer::Init(), AliCorrectionManagerBase::Print(), AliFMDEventInspector::Print(), and CorrDrawer::Run().
|
static |
Get the AOD event - either from the input (AOD analysis) or the output (ESD analysis)
task | Task to do the investigation for |
Definition at line 346 of file AliForwardUtil.cxx.
Referenced by AliForwardFlowTaskQC::Analyze(), AliForwardMultDists::PreData(), and AliBaseAODTask::UserExec().
|
static |
Get the centrality of the event. One can pass a both an ESD and AOD event. Also, there's fall-back to the old centrality objects in case the newer AliMultSelection object isn't found.
Possible values of qual
event | Event |
method | Centrality method to use |
qual | On return, the quality - 0 is good |
verbose | If true, be verbose |
Definition at line 805 of file AliForwardUtil.cxx.
Referenced by AliBasedNdetaTask::GetCentrality(), GetCentralityCompat(), and AliFMDEventInspector::ReadCentrality().
|
static |
Compatbility function to retrieve the centrality from the event.
event | Event |
method | Centrality method |
qual | Quality flat - 0 is good |
verbose | If true, be verbose |
Definition at line 870 of file AliForwardUtil.cxx.
Referenced by GetCentrality().
|
static |
Compatbility function to retrieve the centrality from the ESD event.
event | Event |
method | Centrality method |
qual | Quality flat - 0 is good |
verbose | If true, be verbose |
Definition at line 884 of file AliForwardUtil.cxx.
|
static |
Compatbility function to retrieve the centrality from the AOD header.
event | Event |
method | Centrality method |
qual | Quality flat - 0 is good |
verbose | If true, be verbose |
Definition at line 912 of file AliForwardUtil.cxx.
|
static |
Get the centrality of the event. One can pass a both an ESD and AOD event.
event | Event |
method | Centrality method to use |
qual | On return, the quality - 0 is good |
verbose | If true, be verbose |
Definition at line 818 of file AliForwardUtil.cxx.
Referenced by GetCentrality().
|
static |
Get eta from strip
det,ring,sec,strip,zvtx |
Definition at line 566 of file AliForwardUtil.cxx.
|
static |
Get the eta and phi of a strip given an interaction point
det | Detector |
ring | Ring |
sec | Sector |
str | Strip |
ip | Interaction point |
eta | On return, the eta |
phi | On return, the phi (in radians) |
Definition at line 608 of file AliForwardUtil.cxx.
Referenced by AliFMDMCTrackDensity::Calculate(), AliFMDDensityCalculator::Calculate(), Event(), AliFMDESDFixer::RecalculateEta(), and TestGeomUtils().
|
static |
Recalculate the eta of a strip. This will correct for an off-set IP
r | Ring identifier |
strip | Strip number |
eta | Nominal eta, on return corrected |
phi | Nominal phi, on return corrected |
ipX | IP X coordinate |
ipY | IP Y coordinate |
Definition at line 640 of file AliForwardUtil.cxx.
Get a parameter value from an object
o | Object |
value | On return, the parameter value |
Definition at line 452 of file AliForwardUtil.cxx.
Referenced by AliBasedNdetaTask::Finalize(), and AliFMDMultCuts::Input().
Get a parameter value from an object
o | Object |
value | On return, the parameter value |
Definition at line 462 of file AliForwardUtil.cxx.
Get a parameter value from an object
o | Object |
value | On return, the parameter value |
Definition at line 482 of file AliForwardUtil.cxx.
Get a parameter value from an object
o | Object |
value | On return, the parameter value |
Definition at line 495 of file AliForwardUtil.cxx.
Get a parameter value from an object
o | Object |
value | On return, the parameter value |
Definition at line 472 of file AliForwardUtil.cxx.
|
static |
Get the azimuthal angle of a strip
ring | Ring identifier 'I' or 'O' |
strip | Strip number |
phi | Straight forward strip phi |
xvtx | Ip X coordinate |
yvtx | Ip Y coordinate |
Definition at line 672 of file AliForwardUtil.cxx.
Get the azimythal angle of sector (in radians)
det | Detector |
ring | Ring |
sec | Sector |
Definition at line 548 of file AliForwardUtil.cxx.
Referenced by GetXYZ().
Get the location of a sector in Z (in centimeters)
det | Detector |
ring | Ring |
sec | Sector |
Definition at line 524 of file AliForwardUtil.cxx.
Referenced by GetEtaFromStrip(), and GetXYZ().
Get the radius of a strip.
ring | Ring identifier 'I' or 'O' |
strip | Strip number |
Definition at line 506 of file AliForwardUtil.cxx.
Referenced by GetEtaFromStrip(), GetEtaPhiFromStrip(), GetPhiFromStrip(), and GetXYZ().
|
static |
Get the coordinates of a strip relative to the interaction point
det | Detector |
ring | Ring |
sec | Sector |
str | Strip |
ip | The interaction point |
pos | On return, the relative position |
Definition at line 585 of file AliForwardUtil.cxx.
Referenced by GetEtaPhi(), and TestGeomUtils().
|
static |
Get a string representation of the magnetic field
field | Magnetic field in kG |
Definition at line 332 of file AliForwardUtil.cxx.
Referenced by AliCorrectionManagerBase::CheckConditions(), MultCutDrawer::Init(), AliCorrectionManagerBase::Print(), AliFMDEventInspector::Print(), and CorrDrawer::Run().
Make a full \( \mbox{IP}_z\) axis
nCenter | Number of bins in the center |
Definition at line 694 of file AliForwardUtil.cxx.
Referenced by AliBaseESDTask::DefaultVertexAxis(), AliBaseMCCorrectionsTask::SetSatellite(), and AliBaseAODTask::UserCreateOutputObjects().
Make a full \( \mbox{IP}_z\) axis
nCenter | Number of bins in the center |
bins | On return, the bin edges |
Definition at line 703 of file AliForwardUtil.cxx.
|
static |
Make a log-scale axis. That is, each bin has constant with when drawn on a log scale.
nBins | Number of bins |
minOrder | Least power of 10 |
maxOrder | Largest power of 10 |
bins | On return, the bin edges |
Definition at line 740 of file AliForwardUtil.cxx.
Referenced by AliFMDMCTrackELoss::CreateOutputObjects(), AliCentralMultiplicityTask::PreData(), Ring::Ring(), and AliFMDDensityCalculator::RingHistos::RingHistos().
Make a parameter
name | Name of the parameter |
value | Value of the parameter |
Definition at line 409 of file AliForwardUtil.cxx.
Referenced by AliFMDEnergyFitterTask::Book(), AliBasedNdetaTask::Book(), AliFMDESDFixer::CreateOutputObjects(), AliFMDCorrector::CreateOutputObjects(), AliFMDDensityCalculator::CreateOutputObjects(), AliFMDSharingFilter::CreateOutputObjects(), AliFMDEnergyFitter::CreateOutputObjects(), AliFMDDensityCalculator::RingHistos::CreateOutputObjects(), AliBasedNdetaTask::Finalize(), AliForwarddNdetaTask::LoadEmpirical(), AliFMDMultCuts::Output(), AliCentralMultiplicityTask::PreData(), AliForwardMultDists::PreData(), AliFMDEventInspector::ReadRunDetails(), AliFMDHistCollector::SetupForData(), AliBaseAODTask::StoreInformation(), AliFMDEventInspector::StoreInformation(), AliFMDEventInspector::StoreProduction(), and AliBaseAODTask::UserCreateOutputObjects().
Make a parameter
name | Name of the parameter |
value | Value of the parameter |
Definition at line 417 of file AliForwardUtil.cxx.
Make a parameter
name | Name of the parameter |
value | Value of the parameter |
Definition at line 433 of file AliForwardUtil.cxx.
Make a parameter
name | Name of the parameter |
value | Value of the parameter |
Definition at line 443 of file AliForwardUtil.cxx.
Make a parameter
name | Name of the parameter |
value | Value of the parameter |
Definition at line 425 of file AliForwardUtil.cxx.
|
inlineprivate |
Assingment operator
Definition at line 896 of file AliForwardUtil.h.
Parse the center of mass energy given as a float and return known values as a unsigned integer
sys | Collision system (needed for AA) |
cms | Center of mass energy * total charge |
Definition at line 259 of file AliForwardUtil.cxx.
Referenced by AddTaskForwardMult(), ExtractAcceptance(), ExtractForRun(), AliCentralCorrectionManager::Init(), AliForwardCorrectionManager::Init(), and AliFMDEventInspector::ReadRunDetails().
|
static |
Parse a collision system spec given in a string. Known values are
sys | Collision system spec |
Definition at line 119 of file AliForwardUtil.cxx.
Referenced by AddTaskForwardMult(), ExtractAcceptance(), ExtractForRun(), AliCentralCorrectionManager::Init(), AliForwardCorrectionManager::Init(), MakeCorrSecMap(), ParseCollisionSystem(), AliFMDEventInspector::ReadRunDetails(), CorrDrawer::Run(), and CorrDrawer::Summarize().
|
static |
Parse a collision system spec given in a string. Known values are
sys | Collision system spec |
Definition at line 151 of file AliForwardUtil.cxx.
Parse the magnetic field (in kG) as given by a floating point number
field | Magnetic field in kG |
Definition at line 311 of file AliForwardUtil.cxx.
Referenced by AddTaskForwardMult(), AliCentralCorrectionManager::Init(), AliForwardCorrectionManager::Init(), and AliFMDEventInspector::ReadRunDetails().
|
static |
Print a field
name | The name of the field |
value | Format for the value |
Definition at line 788 of file AliForwardUtil.cxx.
|
static |
Print a name
name | The name to pring |
Definition at line 766 of file AliForwardUtil.cxx.
Referenced by PrintField().
|
static |
Print a task
o | The task to print |
Definition at line 752 of file AliForwardUtil.cxx.
Referenced by AliFMDEventPlaneFinder::Print(), AliBaseMCTrackDensity::Print(), AliMultEventClassifier::Print(), AliFMDESDFixer::Print(), AliFMDCorrector::Print(), AliFMDSharingFilter::Print(), AliBaseESDTask::Print(), AliBaseAODTask::Print(), AliCorrectionManagerBase::Print(), AliFMDHistCollector::Print(), AliFMDDensityCalculator::Print(), AliFMDEnergyFitter::Print(), AliCorrectionManagerBase::Correction::Print(), and AliFMDEventInspector::Print().
Get the standard color for a ring
d | Detector |
r | Ring |
Definition at line 54 of file AliForwardUtil.h.
Referenced by AliForwardUtil::RingHistos::Color(), MultCutDrawer::CutStack(), DrawCorrAcc2(), DrawCorrSecMap2(), CorrDrawer::DrawIt(), AliFMDCorrELossFit::GetStacks(), AliForwardMCMultiplicityTask::InitMembers(), AliForwardMultiplicityBase::InitMembers(), AliFMDMCDensityCalculator::Make(), Ring::Ring(), and AliFMDHistCollector::SetupForData().