AliPhysics  6a0d37d (6a0d37d)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliForwardCorrectionManager Class Reference

#include <AliForwardCorrectionManager.h>

Inheritance diagram for AliForwardCorrectionManager:

Public Types

enum  ECorrection {
  kSecondaryMap = 0x01, kELossFits = 0x02, kVertexBias = 0x04, kMergingEfficiency = 0x08,
  kDoubleHit = 0x10, kAcceptance = 0x20, kNoiseGain = 0x40, kDefault = (kSecondaryMap|kELossFits|kAcceptance),
  kAll
}
 
- Public Types inherited from AliCorrectionManagerBase
enum  EConstants { kIgnoreValue = 0, kIgnoreField = 999 }
 
enum  EFields {
  kRun = 0x01, kSys = 0x02, kSNN = 0x04, kField = 0x08,
  kMC = 0x10, kSatellite = 0x20, kStandard = kRun|kSys|kSNN|kField, kFull = kStandard|kMC|kSatellite
}
 

Public Member Functions

 AliForwardCorrectionManager ()
 
virtual Bool_t Append (const TString &addition, const TString &destination="") const
 
const Char_tGetName () const
 
void SetSecondaryMapPath (const char *d)
 
void SetDoubleHitPath (const char *d)
 
void SetELossFitsPath (const char *d)
 
void SetVertexBiasPath (const char *d)
 
void SetMergingEffPath (const char *d)
 
void SetAcceptancePath (const char *d)
 
Bool_t Init (ULong_t runNumber, UShort_t collisionSystem, UShort_t cmsNN, Short_t field, Bool_t mc=false, Bool_t satelliteCollisions=false, UInt_t what=kDefault, Bool_t force=false)
 
Bool_t Init (ULong_t runNumber, const char *collisionSystem, Float_t cmsNN, Float_t field, Bool_t mc=false, Bool_t satelliteCollisions=false, UInt_t what=kDefault, Bool_t force=false)
 
const TAxisGetEtaAxis () const
 
const TAxisGetVertexAxis () const
 
const AliFMDCorrELossFitGetELossFit () const
 
const AliFMDCorrELossFitGetELossFits () const
 
const AliFMDCorrSecondaryMapGetSecondaryMap () const
 
const AliFMDCorrDoubleHitGetDoubleHit () const
 
const AliFMDCorrVertexBiasGetVertexBias () const
 
const AliFMDCorrMergingEfficiencyGetMergingEfficiency () const
 
const AliFMDCorrAcceptanceGetAcceptance () const
 
const AliFMDCorrNoiseGainGetNoiseGain () const
 
- Public Member Functions inherited from AliCorrectionManagerBase
virtual ~AliCorrectionManagerBase ()
 
virtual void SetPrefix (const TString &prefix)
 
virtual void SetEnableFallBack (Bool_t use=true)
 
const char * GetObjectName (Int_t what) const
 
virtual Bool_t Store (TObject *o, ULong_t runNo, UShort_t sys, UShort_t sNN, Short_t field, Bool_t mc, Bool_t sat, const char *file, const char *meth="NEAR") const
 
virtual Bool_t CleanUp (const TString &destination, Bool_t verb=false, Bool_t all=false) const
 
virtual void EnableCorrections (UInt_t what)
 
virtual Bool_t CheckCorrections (UInt_t what, Bool_t verbose=true) const
 
Bool_t InitCorrections (ULong_t run, UShort_t sys, UShort_t sNN, Short_t fld, Bool_t mc, Bool_t sat, Bool_t force=false)
 
virtual Bool_t IsInit () const
 
virtual void Print (Option_t *option="") const
 
virtual void Browse (TBrowser *b)
 
virtual Bool_t IsFolder () const
 
virtual void SetDebug (Bool_t debug)
 

Static Public Member Functions

static
AliForwardCorrectionManager
Instance ()
 
static UInt_t ParseFields (const TString &what)
 

Private Types

enum  EId {
  kIdSecondaryMap = 0, kIdELossFits, kIdVertexBias, kIdMergingEfficiency,
  kIdDoubleHit, kIdAcceptance, kIdNoiseGain
}
 

Private Member Functions

 AliForwardCorrectionManager (Bool_t notUsed)
 

Static Private Attributes

static
AliForwardCorrectionManager
fgInstance = 0
 
Object name
static const Char_tfgkSecondaryMapSkel = "secondary"
 
static const Char_tfgkDoubleHitSkel = "doublehit"
 
static const Char_tfgkELossFitsSkel = "elossfits"
 
static const Char_tfgkVertexBiasSkel = "vertexbias"
 
static const Char_tfgkMergingEffSkel = "merging"
 
static const Char_tfgkAcceptanceSkel = "acceptance"
 
static const Char_tfgkNoiseGainSkel = "noisegain"
 

Additional Inherited Members

- Protected Member Functions inherited from AliCorrectionManagerBase
 AliCorrectionManagerBase ()
 
 AliCorrectionManagerBase (Bool_t notUsed)
 
 AliCorrectionManagerBase (const AliCorrectionManagerBase &o)
 
AliCorrectionManagerBaseoperator= (const AliCorrectionManagerBase &o)
 
void RegisterCorrection (Int_t id, Correction *corr)
 
void RegisterCorrection (Int_t id, const TString &tableName, const TString &fileName, TClass *cls, UShort_t fields=kStandard, Bool_t enabled=false)
 
void EnableCorrection (Int_t id, Bool_t enable=true)
 
CorrectionGetCorrection (Int_t id)
 
const CorrectionGetCorrection (Int_t id) const
 
void SetCorrectionFile (Int_t id, const TString &fileName) const
 
Int_t GetId (const TString &what) const
 
Int_t GetId (const TObject *obj) const
 
TObjectGet (Int_t id)
 
const TObjectGet (Int_t id) const
 
Bool_t CheckConditions (ULong_t run, UShort_t sys, UShort_t sNN, Short_t fld, Bool_t mc, Bool_t sat)
 
Bool_t ReadCorrections (ULong_t run, UShort_t sys, UShort_t sNN, Short_t fld, Bool_t mc, Bool_t sat)
 
Bool_t ReadCorrection (Int_t id, ULong_t run, UShort_t sys, UShort_t sNN, Short_t fld, Bool_t mc, Bool_t sat)
 
void SetCorrectionFile (Int_t i, const TString &file)
 
 ClassDef (AliCorrectionManagerBase, 2)
 
- Protected Attributes inherited from AliCorrectionManagerBase
TObjArray fCorrections
 
Bool_t fIsInit
 
ULong_t fRun
 
UShort_t fSys
 
UShort_t fSNN
 
Short_t fField
 
Bool_t fMC
 
Bool_t fSatellite
 
AliOADBForwardfDB
 
Bool_t fDebug
 do not store More...
 
Bool_t fFallBack
 

Detailed Description

Manager (singleton) of corrections

Note, that this class has a custom streamer. That is to ensure that the singleton pointer is correctly set on reading in an object of this type.

Definition at line 37 of file AliForwardCorrectionManager.h.

Member Enumeration Documentation

Enumeration of things that can be read in

Enumerator
kSecondaryMap 
kELossFits 
kVertexBias 
kMergingEfficiency 
kDoubleHit 
kAcceptance 
kNoiseGain 
kDefault 
kAll 

Definition at line 56 of file AliForwardCorrectionManager.h.

Enumeration of things that can be read in

Enumerator
kIdSecondaryMap 
kIdELossFits 
kIdVertexBias 
kIdMergingEfficiency 
kIdDoubleHit 
kIdAcceptance 
kIdNoiseGain 

Definition at line 43 of file AliForwardCorrectionManager.h.

Constructor & Destructor Documentation

AliForwardCorrectionManager::AliForwardCorrectionManager ( )

Default constructor. This is public for the sake of the ROOT I/O system, but should never be used outside of that system - that is, do not use this constructor

Definition at line 51 of file AliForwardCorrectionManager.cxx.

Referenced by Instance().

AliForwardCorrectionManager::AliForwardCorrectionManager ( Bool_t  notUsed)
private

Non-default constructor - initializes corrections - used by singleton access member function Instance

Parameters
notUsedIgnored

Definition at line 58 of file AliForwardCorrectionManager.cxx.

Member Function Documentation

Bool_t AliForwardCorrectionManager::Append ( const TString addition,
const TString destination = "" 
) const
virtual

Append the content of the file addition to the destination file for this manager. This used TFileMerger::PartialMerge

Parameters
destinationFilename of destination storage (in OADB_PATH)
additionFilename of addition.
Returns
true on success

Reimplemented from AliCorrectionManagerBase.

Definition at line 197 of file AliForwardCorrectionManager.cxx.

Referenced by Upload().

const AliFMDCorrAcceptance * AliForwardCorrectionManager::GetAcceptance ( ) const

Get the acceptance correction due to dead channels

Returns
Acceptance correction due to dead channels

Get the acceptance correction due to dead channels

Returns
Acceptance correction due to dead channels

Definition at line 266 of file AliForwardCorrectionManager.cxx.

Referenced by AliFMDCorrector::Correct(), AliForwardMultiplicityBase::PreData(), and CorrDrawer::Run().

const AliFMDCorrDoubleHit * AliForwardCorrectionManager::GetDoubleHit ( ) const

Get the double hit correction object

Returns
Get the double hit correction object or null

Get the double hit correction object

Returns
Get the double hit correction object or null

Definition at line 231 of file AliForwardCorrectionManager.cxx.

Referenced by AliFMDDensityCalculator::Correction(), and AliForwardMultiplicityBase::PreData().

const AliFMDCorrELossFit * AliForwardCorrectionManager::GetELossFit ( ) const

Get the energy loss fit correction object.

Returns
Get the energy loss fits corrections object or null pointer

Get the energy loss fit correction object.

Returns
Get the energy loss fits corrections object or null pointer

Definition at line 209 of file AliForwardCorrectionManager.cxx.

Referenced by AliFMDDensityCalculator::CacheMaxWeights(), GetELossFits(), AliFMDDensityCalculator::GetMaxWeight(), AliFMDMultCuts::GetMultCut(), MultCutDrawer::Init(), AliFMDDensityCalculator::NParticles(), AliForwardQATask::PreData(), AliForwardMultiplicityBase::PreData(), CorrDrawer::Run(), and AliFMDSharingFilter::SetupForData().

const AliFMDCorrELossFit* AliForwardCorrectionManager::GetELossFits ( ) const
inline

Alias for GetELossFit

Returns
Get the energy loss fits corrections object or null pointer

Definition at line 231 of file AliForwardCorrectionManager.h.

const TAxis * AliForwardCorrectionManager::GetEtaAxis ( ) const
virtual

Get the eta axis

Returns
Eta axis or null

Reimplemented from AliCorrectionManagerBase.

Definition at line 290 of file AliForwardCorrectionManager.cxx.

const AliFMDCorrMergingEfficiency * AliForwardCorrectionManager::GetMergingEfficiency ( ) const

Get the merging efficiency

Returns
Get the vertex efficiency correction

Get the merging efficiency

Returns
Get the vertex efficiency correction

Definition at line 253 of file AliForwardCorrectionManager.cxx.

Referenced by AliFMDCorrector::Correct(), and AliForwardMultiplicityBase::PreData().

const Char_t* AliForwardCorrectionManager::GetName ( ) const
inline
Returns
name of object

Definition at line 101 of file AliForwardCorrectionManager.h.

const AliFMDCorrNoiseGain * AliForwardCorrectionManager::GetNoiseGain ( ) const

Get the noise calibration. That is, the ratio

\[ \frac{\sigma_{i}}{g_{i}k} \]

where \( k\) is a constant determined by the electronics of units DAC/MIP, and \( \sigma_i, g_i\) are the noise and gain of the \( i \) strip respectively

Returns
Noise-gain calibration

Get the noisegain calibration

Returns
NoiseGain calibration

Definition at line 278 of file AliForwardCorrectionManager.cxx.

Referenced by AliFMDESDFixer::FindTargetNoiseFactor(), AliFMDESDFixer::Fix(), and CorrDrawer::Run().

const AliFMDCorrSecondaryMap * AliForwardCorrectionManager::GetSecondaryMap ( ) const

Get the secondary correction map

Returns
Get the secondary correction map object or null

Get the secondary correction map

Returns
Get the secondary correction map object or null

Definition at line 220 of file AliForwardCorrectionManager.cxx.

Referenced by AliFMDCorrector::Correct(), AliFMDMCCorrector::CorrectMC(), GetEtaAxis(), GetVertexAxis(), AliForwardMultiplicityBase::PreData(), CorrDrawer::Run(), and AliFMDHistCollector::VtxBin::SetupForData().

const TAxis * AliForwardCorrectionManager::GetVertexAxis ( ) const
virtual

Get the vertex axis

Returns
The vertex axis or null

Reimplemented from AliCorrectionManagerBase.

Definition at line 298 of file AliForwardCorrectionManager.cxx.

const AliFMDCorrVertexBias * AliForwardCorrectionManager::GetVertexBias ( ) const

Get the vertex bias correction object

Returns
Get the vertex bias correction object or null

Get the vertex bias correction object

Returns
Get the vertex bias correction object or null

Definition at line 242 of file AliForwardCorrectionManager.cxx.

Referenced by AliFMDCorrector::Correct(), AliFMDMCCorrector::CorrectMC(), and AliForwardMultiplicityBase::PreData().

Bool_t AliForwardCorrectionManager::Init ( ULong_t  runNumber,
UShort_t  collisionSystem,
UShort_t  cmsNN,
Short_t  field,
Bool_t  mc = false,
Bool_t  satelliteCollisions = false,
UInt_t  what = kDefault,
Bool_t  force = false 
)

Read in corrections based on the parameters given

Parameters
runNumberRun number
collisionSystemCollision system
cmsNNCenter of mass energy per nuclean pair [GeV]
fieldMagnetic field setting [kG]
mcMonte-carlo switch
whatWhat to read in.
forceForce (re-)reading of specified things
satelliteCollisionsFor satellite collisions
Returns

Definition at line 124 of file AliForwardCorrectionManager.cxx.

Referenced by AddTaskForwardMult(), Init(), MultCutDrawer::Init(), MakeELossFit::MakeELossFit(), and CorrDrawer::Run().

Bool_t AliForwardCorrectionManager::Init ( ULong_t  runNumber,
const char *  collisionSystem,
Float_t  cmsNN,
Float_t  field,
Bool_t  mc = false,
Bool_t  satelliteCollisions = false,
UInt_t  what = kDefault,
Bool_t  force = false 
)

Read in correction based on passed parameters

Parameters
runNumberRun number
collisionSystemCollision system string
cmsNNCenter of mass energy per nucleon pair [GeV]
fieldMagnetic field [kG]
mcMonte-carlo switch
whatWhat to read in
forceForce (re-)reading of specified things
satelliteCollisionsFor satellite collisions
Returns
true on success

Definition at line 90 of file AliForwardCorrectionManager.cxx.

UInt_t AliForwardCorrectionManager::ParseFields ( const TString what)
static

Parse string with fields in it, and return the corresponding bit mask

Parameters
whatThe string
Returns
The corresponding bit mask

Definition at line 160 of file AliForwardCorrectionManager.cxx.

Referenced by CorrDrawer::Run(), and CorrDrawer::Summarize().

void AliForwardCorrectionManager::SetAcceptancePath ( const char *  d)
inline

Set path to corrections

Parameters
dPath

Definition at line 152 of file AliForwardCorrectionManager.h.

void AliForwardCorrectionManager::SetDoubleHitPath ( const char *  d)
inline

Set path to corrections

Parameters
dPath

Definition at line 116 of file AliForwardCorrectionManager.h.

void AliForwardCorrectionManager::SetELossFitsPath ( const char *  d)
inline

Set path to corrections

Parameters
dPath

Definition at line 125 of file AliForwardCorrectionManager.h.

Referenced by MultCutDrawer::Init().

void AliForwardCorrectionManager::SetMergingEffPath ( const char *  d)
inline

Set path to corrections

Parameters
dPath

Definition at line 143 of file AliForwardCorrectionManager.h.

void AliForwardCorrectionManager::SetSecondaryMapPath ( const char *  d)
inline

Set path to corrections

Parameters
dPath

Definition at line 107 of file AliForwardCorrectionManager.h.

void AliForwardCorrectionManager::SetVertexBiasPath ( const char *  d)
inline

Set path to corrections

Parameters
dPath

Definition at line 134 of file AliForwardCorrectionManager.h.

Member Data Documentation

AliForwardCorrectionManager * AliForwardCorrectionManager::fgInstance = 0
staticprivate

Static singleton instance

Definition at line 286 of file AliForwardCorrectionManager.h.

Referenced by Instance().

const char * AliForwardCorrectionManager::fgkAcceptanceSkel = "acceptance"
staticprivate

Definition at line 297 of file AliForwardCorrectionManager.h.

Referenced by AliForwardCorrectionManager(), and ParseFields().

const char * AliForwardCorrectionManager::fgkDoubleHitSkel = "doublehit"
staticprivate

Definition at line 293 of file AliForwardCorrectionManager.h.

Referenced by AliForwardCorrectionManager(), and ParseFields().

const char * AliForwardCorrectionManager::fgkELossFitsSkel = "elossfits"
staticprivate

Definition at line 294 of file AliForwardCorrectionManager.h.

Referenced by AliForwardCorrectionManager(), and ParseFields().

const char * AliForwardCorrectionManager::fgkMergingEffSkel = "merging"
staticprivate

Definition at line 296 of file AliForwardCorrectionManager.h.

Referenced by AliForwardCorrectionManager(), and ParseFields().

const char * AliForwardCorrectionManager::fgkNoiseGainSkel = "noisegain"
staticprivate

Definition at line 298 of file AliForwardCorrectionManager.h.

Referenced by AliForwardCorrectionManager(), and ParseFields().

const char * AliForwardCorrectionManager::fgkSecondaryMapSkel = "secondary"
staticprivate

Definition at line 292 of file AliForwardCorrectionManager.h.

Referenced by AliForwardCorrectionManager(), and ParseFields().

const char * AliForwardCorrectionManager::fgkVertexBiasSkel = "vertexbias"
staticprivate

Definition at line 295 of file AliForwardCorrectionManager.h.

Referenced by AliForwardCorrectionManager(), and ParseFields().


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