AliPhysics  d84cbc0 (d84cbc0)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 531 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 542 of file AliCorrectionManagerBase.cxx.

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

Copy constructor

Parameters
oObject to copy from

Definition at line 557 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 838 of file AliCorrectionManagerBase.cxx.

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 857 of file AliCorrectionManagerBase.cxx.

Referenced by AliCorrectionManagerBase::CleanUp().

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 602 of file AliCorrectionManagerBase.cxx.

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 760 of file AliCorrectionManagerBase.cxx.

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

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

Get the data of the correction

Returns
Data of the correction

Definition at line 770 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 585 of file AliCorrectionManagerBase.cxx.

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 619 of file AliCorrectionManagerBase.cxx.

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

Assignement operator

Parameters
oObject to assign from
Returns
reference to this obejct

Definition at line 569 of file AliCorrectionManagerBase.cxx.

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

Print information to the screen

Parameters
optionOptions

Definition at line 799 of file AliCorrectionManagerBase.cxx.

Referenced by AliCorrectionManagerBase::Print().

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 644 of file AliCorrectionManagerBase.cxx.

Referenced by AliCorrectionManagerBase::ReadCorrection().

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 702 of file AliCorrectionManagerBase.cxx.

Referenced by AliCorrectionManagerBase::Store().

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 781 of file AliCorrectionManagerBase.cxx.

Referenced by AliCorrectionManagerBase::GetObjectName().

Member Data Documentation

const TString AliCorrectionManagerBase::Correction::fClientCls

Class of correction objects.

Definition at line 472 of file AliCorrectionManagerBase.h.

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

Definition at line 475 of file AliCorrectionManagerBase.h.

Referenced by operator=().

TObject* AliCorrectionManagerBase::Correction::fObject

Definition at line 476 of file AliCorrectionManagerBase.h.

Referenced by operator=(), and ~Correction().

UShort_t AliCorrectionManagerBase::Correction::fQueryFields

Definition at line 473 of file AliCorrectionManagerBase.h.

Referenced by operator=().


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