AliPhysics  aaf9c62 (aaf9c62)
AliCorrectionManagerBase::Correction Struct Reference

#include <AliCorrectionManagerBase.h>

Inheritance diagram for AliCorrectionManagerBase::Correction:

Public Member Functions

 Correction ()
 
 Correction (const TString &tableName, const TString &fileName, TClass *cls, UShort_t queryFields=kStandard, Bool_t enabled=false)
 
 Correction (const Correction &o)
 
Correctionoperator= (const Correction &o)
 
 ~Correction ()
 
Bool_t ReadIt (AliOADBForward *db, ULong_t run, UShort_t sys, UShort_t sNN, Short_t fld, Bool_t mc, Bool_t sat, Bool_t vrb=false, Bool_t fbk=false)
 
Bool_t StoreIt (AliOADBForward *db, TObject *o, ULong_t run, UShort_t sys, UShort_t sNN, Short_t fld, Bool_t mc, Bool_t sat, const char *file=0, const char *meth="NEAR") const
 
void Enable (Bool_t enabled=true)
 
TObjectGet ()
 
const TObjectGet () const
 
void SetFile (const TString &fileName)
 
const TClass * TheClass () const
 
void Print (Option_t *option="") const
 
void Browse (TBrowser *b)
 
Bool_t IsFolder () const
 
void MassageFields (ULong_t &run, UShort_t &sys, UShort_t &sNN, Short_t &fld, Bool_t &mc, Bool_t &sat) const
 
void CorrectFields (ULong_t &run, UShort_t &sys, UShort_t &sNN, Short_t &fld, Bool_t &mc, Bool_t &sat) const
 
Bool_t CleanIt (AliOADBForward *db, const TString &dest, Bool_t verb=false, Bool_t all=false) const
 
Bool_t OpenIt (AliOADBForward *db, Bool_t vrb=false, Bool_t fallback=false) const
 

Public Attributes

TClass * fCls
 
const TString fClientCls
 Class of correction objects. More...
 
UShort_t fQueryFields
 
Bool_t fEnabled
 
TString fLastEntry
 
TObjectfObject
 

Detailed Description

Correction registration. These objects are streamed, so we need to make them public. That does not mean that these objects should be used outside of this (or derived) classe.

Definition at line 272 of file AliCorrectionManagerBase.h.

Constructor & Destructor Documentation

AliCorrectionManagerBase::Correction::Correction ( )

Constructor - for I/O

Definition at line 539 of file AliCorrectionManagerBase.cxx.

AliCorrectionManagerBase::Correction::Correction ( const TString tableName,
const TString fileName,
TClass *  cls,
UShort_t  queryFields = kStandard,
Bool_t  enabled = false 
)

Constructor

Parameters
tableNameTable name
fileNameFile name
clsClass
queryFieldsEnabled fields
enabledEnabled or not

Definition at line 550 of file AliCorrectionManagerBase.cxx.

AliCorrectionManagerBase::Correction::Correction ( const Correction o)

Copy constructor

Parameters
oObject to copy from

Definition at line 565 of file AliCorrectionManagerBase.cxx.

AliCorrectionManagerBase::Correction::~Correction ( )
inline

Destructor

Definition at line 309 of file AliCorrectionManagerBase.h.

Member Function Documentation

void AliCorrectionManagerBase::Correction::Browse ( TBrowser *  b)

Browse this object

Parameters
bBrowser to use

Definition at line 846 of file AliCorrectionManagerBase.cxx.

Referenced by SetFile().

Bool_t AliCorrectionManagerBase::Correction::CleanIt ( AliOADBForward db,
const TString dest,
Bool_t  verb = false,
Bool_t  all = false 
) const

Clean the table of this correction

Parameters
dbDatabase
destDestination
verbWhether to be verbose or not
allIf true, copy all entries
Returns
true on success

Definition at line 865 of file AliCorrectionManagerBase.cxx.

Referenced by AliCorrectionManagerBase::CleanUp(), and IsFolder().

void AliCorrectionManagerBase::Correction::CorrectFields ( ULong_t run,
UShort_t sys,
UShort_t sNN,
Short_t fld,
Bool_t mc,
Bool_t sat 
) const

Massage fields updating according to settings

Parameters
runOn return, the run number
sysOn return, the system id
sNNOn return, the collision energy
fldOn return, the field strength
mcOn return, the simulation flag
satOn return, the satellite flag

Definition at line 610 of file AliCorrectionManagerBase.cxx.

Referenced by CleanIt(), and IsFolder().

void AliCorrectionManagerBase::Correction::Enable ( Bool_t  enabled = true)
inline

Enable this correction

Parameters
enabledIf true, correction is enabled

Definition at line 365 of file AliCorrectionManagerBase.h.

TObject * AliCorrectionManagerBase::Correction::Get ( )

Get the data of the correction

Returns
Data of the correction

Definition at line 768 of file AliCorrectionManagerBase.cxx.

Referenced by AliCorrectionManagerBase::CheckCorrections(), Enable(), and AliCorrectionManagerBase::Get().

const TObject * AliCorrectionManagerBase::Correction::Get ( ) const

Get the data of the correction

Returns
Data of the correction

Definition at line 778 of file AliCorrectionManagerBase.cxx.

Bool_t AliCorrectionManagerBase::Correction::IsFolder ( ) const
inline

Flag that this is a folder

Returns
Always true

Definition at line 408 of file AliCorrectionManagerBase.h.

void AliCorrectionManagerBase::Correction::MassageFields ( ULong_t run,
UShort_t sys,
UShort_t sNN,
Short_t fld,
Bool_t mc,
Bool_t sat 
) const

Massage fields for query according to settings

Parameters
runOn return, the run number
sysOn return, the system id
sNNOn return, the collision energy
fldOn return, the field strength
mcOn return, the simulation flag
satOn return, the satellite flag

Definition at line 593 of file AliCorrectionManagerBase.cxx.

Referenced by CleanIt(), IsFolder(), ReadIt(), and StoreIt().

Bool_t AliCorrectionManagerBase::Correction::OpenIt ( AliOADBForward db,
Bool_t  vrb = false,
Bool_t  fallback = false 
) const

Open our data base table

Parameters
dbDatabase
vrbWhether to be verbose
fallbackWhether to enable fall-back
Returns
true on success

Definition at line 627 of file AliCorrectionManagerBase.cxx.

Referenced by CleanIt(), IsFolder(), and ReadIt().

AliCorrectionManagerBase::Correction & AliCorrectionManagerBase::Correction::operator= ( const Correction o)

Assignement operator

Parameters
oObject to assign from
Returns
reference to this obejct

Definition at line 577 of file AliCorrectionManagerBase.cxx.

void AliCorrectionManagerBase::Correction::Print ( Option_t option = "") const

Print information to the screen

Parameters
optionOptions

Definition at line 807 of file AliCorrectionManagerBase.cxx.

Referenced by AliCorrectionManagerBase::Print(), and SetFile().

Bool_t AliCorrectionManagerBase::Correction::ReadIt ( AliOADBForward db,
ULong_t  run,
UShort_t  sys,
UShort_t  sNN,
Short_t  fld,
Bool_t  mc,
Bool_t  sat,
Bool_t  vrb = false,
Bool_t  fbk = false 
)

Read the correction

Parameters
dbDatabase interface
runRun number
sysCollision system
sNNCenter of mass energy per nucleon
fldL3 magnetic field
mcIf true, for simulated data, else real
satIf true, for satellite interactions
vrbIf true, do verbose query
fbkForce read
Returns
true on success

Definition at line 652 of file AliCorrectionManagerBase.cxx.

Referenced by AliCorrectionManagerBase::ReadCorrection(), and ~Correction().

void AliCorrectionManagerBase::Correction::SetFile ( const TString fileName)
inline

Set the file the table is stored in

Parameters
fileNamefile name of file table is stored in

Definition at line 383 of file AliCorrectionManagerBase.h.

Referenced by AliCorrectionManagerBase::SetCorrectionFile(), and AliCorrectionManagerBase::SetPrefix().

Bool_t AliCorrectionManagerBase::Correction::StoreIt ( AliOADBForward db,
TObject o,
ULong_t  run,
UShort_t  sys,
UShort_t  sNN,
Short_t  fld,
Bool_t  mc,
Bool_t  sat,
const char *  file = 0,
const char *  meth = "NEAR" 
) const

Store a correction

Parameters
dbPossible database interface
oObject to store
runRun number
sysCollision system
sNNCenter of mass energy per nucleon
fldL3 magnetic field
mcIf true, for simulated data, else real
satIf true, for satellite interactions
fileFile to store in
methDefault run method
Returns
true on success

Definition at line 710 of file AliCorrectionManagerBase.cxx.

Referenced by CleanIt(), AliCorrectionManagerBase::Store(), and ~Correction().

const TClass * AliCorrectionManagerBase::Correction::TheClass ( ) const

Get pointer to class meta information. Sets the internal member if not done already.

Returns
Pointer to class meta information

Definition at line 789 of file AliCorrectionManagerBase.cxx.

Referenced by AliCorrectionManagerBase::GetObjectName(), Print(), ReadIt(), SetFile(), and StoreIt().

Member Data Documentation

const TString AliCorrectionManagerBase::Correction::fClientCls

Class of correction objects.

Definition at line 472 of file AliCorrectionManagerBase.h.

Referenced by TheClass().

TClass* AliCorrectionManagerBase::Correction::fCls
mutable
TString AliCorrectionManagerBase::Correction::fLastEntry

Definition at line 475 of file AliCorrectionManagerBase.h.

Referenced by Browse(), operator=(), Print(), and ReadIt().

TObject* AliCorrectionManagerBase::Correction::fObject

Definition at line 476 of file AliCorrectionManagerBase.h.

Referenced by Browse(), Get(), operator=(), Print(), ReadIt(), and ~Correction().

UShort_t AliCorrectionManagerBase::Correction::fQueryFields

Definition at line 473 of file AliCorrectionManagerBase.h.

Referenced by Browse(), MassageFields(), operator=(), and Print().


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