AliRoot Core  ee782a0 (ee782a0)
AliMpCDB Class Reference

Manager class for mapping CDB IO. More...

#include <AliMpCDB.h>

Inheritance diagram for AliMpCDB:

Static Public Member Functions

static Bool_t LoadMpSegmentation (Bool_t warn=false)
 
static Bool_t LoadDDLStore (Bool_t warn=false)
 
static Bool_t LoadManuStore (Bool_t warn=false)
 
static Bool_t LoadAll (Bool_t warn=false)
 
static Bool_t LoadMpSegmentation2 (const char *cdbpath="local://$ALICE_ROOT/OCDB", Int_t runNumber=0, Bool_t warn=false)
 
static Bool_t LoadDDLStore2 (const char *cdbpath="local://$ALICE_ROOT/OCDB", Int_t runNumber=0, Bool_t warn=false)
 
static Bool_t LoadManuStore2 (const char *cdbpath="local://$ALICE_ROOT/OCDB", Int_t runNumber=0, Bool_t warn=false)
 
static Bool_t LoadAll2 (const char *cdbpath="local://$ALICE_ROOT/OCDB", Int_t runNumber=0, Bool_t warn=false)
 
static Bool_t WriteMpData ()
 
static Bool_t WriteMpRunData ()
 
static Bool_t WriteMpData (Int_t startRun, Int_t endRun)
 
static Bool_t WriteMpRunData (Int_t startRun, Int_t endRun)
 
static Bool_t WriteMpSegmentation (Bool_t readData=true)
 
static Bool_t WriteDDLStore (Bool_t readData=true)
 
static Bool_t WriteManuStore (Bool_t readData=true)
 
static Bool_t GenerateMpData (const char *cdbpath="local://$ALICE_ROOT/OCDB", Int_t runNumber=0)
 
static Bool_t GenerateMpRunData (const char *cdbpath="local://$ALICE_ROOT/OCDB", Int_t runNumber=0)
 
static void SetLoadFromData (Bool_t loadFromData)
 
static void UnloadAll ()
 

Private Member Functions

 AliMpCDB ()
 Not implemented. More...
 
 AliMpCDB (const AliMpCDB &rhs)
 Not implemented. More...
 
AliMpCDBoperator= (const AliMpCDB &rhs)
 Not implemented. More...
 

Static Private Member Functions

static TObject * GetCDBEntryObject (const char *dataPath)
 
static TObject * GetCDBEntryObject (const char *dataPath, const char *cdbpath, Int_t runNumber)
 

Static Private Attributes

static Bool_t fgLoadFromData = kTRUE
 option for loading from CDB mapping data or from CDB mapping objects More...
 

Detailed Description

Manager class for mapping CDB IO.

The mapping can be loaded in two ways:

  • from mapping objects stored in the CDB folders Mapping, DDLStore (old way)
  • from mapping data store in a form of string map in the CDB folder MappingData (new way, now default)

To switch between these two ways:

Now it is also possible to regenerate mapping ASCII data from the string map:

Author
Ivana Hrivnacova, IPN Orsay

Definition at line 35 of file AliMpCDB.h.

Constructor & Destructor Documentation

AliMpCDB::AliMpCDB ( )
private

Not implemented.

AliMpCDB::AliMpCDB ( const AliMpCDB rhs)
private

Not implemented.

Member Function Documentation

Bool_t AliMpCDB::GenerateMpData ( const char *  cdbpath = "local://$ALICE_ROOT/OCDB",
Int_t  runNumber = 0 
)
static

Generate mapping data ASCII files from OCDB

Definition at line 492 of file AliMpCDB.cxx.

Bool_t AliMpCDB::GenerateMpRunData ( const char *  cdbpath = "local://$ALICE_ROOT/OCDB",
Int_t  runNumber = 0 
)
static

Generate mapping data ASCII files from OCDB

Definition at line 506 of file AliMpCDB.cxx.

TObject * AliMpCDB::GetCDBEntryObject ( const char *  dataPath)
staticprivate
TObject * AliMpCDB::GetCDBEntryObject ( const char *  dataPath,
const char *  cdbpath,
Int_t  runNumber 
)
staticprivate

Load CDB entry from CDB and run specified in arguments

Definition at line 83 of file AliMpCDB.cxx.

Bool_t AliMpCDB::LoadAll2 ( const char *  cdbpath = "local://$ALICE_ROOT/OCDB",
Int_t  runNumber = 0,
Bool_t  warn = false 
)
static

Load everything in one shot

Definition at line 187 of file AliMpCDB.cxx.

Referenced by MakeMUONCDBObjects().

Bool_t AliMpCDB::LoadDDLStore2 ( const char *  cdbpath = "local://$ALICE_ROOT/OCDB",
Int_t  runNumber = 0,
Bool_t  warn = false 
)
static

Load the DDL store from the CDB if it does not yet exist return false only in case loading from CDB failed In difference from LoadDDLStore(), in this method the CDB path and run is set directly via arguments.

Definition at line 282 of file AliMpCDB.cxx.

Referenced by AliMUONContourMakerTest::Exec(), and LoadAll2().

Bool_t AliMpCDB::LoadManuStore ( Bool_t  warn = false)
static

Load the DDL store from the mapping data from OCDB, if it does not yet exist; return false only in case loading from CDB failed

Definition at line 203 of file AliMpCDB.cxx.

Referenced by AliMpDEVisu::AliMpDEVisu(), AliMUONDigitCalibrator::Ctor(), AliMUONTrackerData::GetDEManu(), and LoadAll().

Bool_t AliMpCDB::LoadManuStore2 ( const char *  cdbpath = "local://$ALICE_ROOT/OCDB",
Int_t  runNumber = 0,
Bool_t  warn = false 
)
static

Load the DDL store from the CDB if it does not yet exist return false only in case loading from CDB failed In difference from LoadDDLStore(), in this method the CDB path and run is set directly via arguments.

Definition at line 323 of file AliMpCDB.cxx.

Referenced by LoadAll2().

Bool_t AliMpCDB::LoadMpSegmentation ( Bool_t  warn = false)
static
Bool_t AliMpCDB::LoadMpSegmentation2 ( const char *  cdbpath = "local://$ALICE_ROOT/OCDB",
Int_t  runNumber = 0,
Bool_t  warn = false 
)
static

Load the sementation from the CDB if it does not yet exist; return false only in case loading from CDB failed. In difference from LoadMpSegmentation(), in this method the CDB path and run is set directly via arguments.

Definition at line 241 of file AliMpCDB.cxx.

Referenced by LoadDDLStore2(), and LoadManuStore2().

AliMpCDB& AliMpCDB::operator= ( const AliMpCDB rhs)
private

Not implemented.

void AliMpCDB::SetLoadFromData ( Bool_t  loadFromData)
inlinestatic

Set option for loading from CDB mapping data or from CDB mapping objects

Definition at line 107 of file AliMpCDB.h.

void AliMpCDB::UnloadAll ( )
static

Unload all the mapping from the memory

Definition at line 520 of file AliMpCDB.cxx.

Referenced by CreateDCSAliasMap(), AliMUONPreprocessor::Initialize(), and AliMUONCDB::LoadMapping().

Bool_t AliMpCDB::WriteDDLStore ( Bool_t  readData = true)
static

Write mapping DDL store in OCDB

Definition at line 442 of file AliMpCDB.cxx.

Bool_t AliMpCDB::WriteManuStore ( Bool_t  readData = true)
static

Write mapping Manu store in OCDB

Definition at line 467 of file AliMpCDB.cxx.

Bool_t AliMpCDB::WriteMpData ( )
static

Definition at line 364 of file AliMpCDB.cxx.

Referenced by AliMUONCDB::WriteMapping().

Bool_t AliMpCDB::WriteMpData ( Int_t  startRun,
Int_t  endRun 
)
static

Write mapping data in OCDB

Definition at line 376 of file AliMpCDB.cxx.

Bool_t AliMpCDB::WriteMpRunData ( )
static

Definition at line 370 of file AliMpCDB.cxx.

Referenced by AliMUONCDB::WriteMapping().

Bool_t AliMpCDB::WriteMpRunData ( Int_t  startRun,
Int_t  endRun 
)
static

Write mapping data in OCDB

Definition at line 396 of file AliMpCDB.cxx.

Bool_t AliMpCDB::WriteMpSegmentation ( Bool_t  readData = true)
static

Write mapping segmentation in OCDB

Definition at line 416 of file AliMpCDB.cxx.

Member Data Documentation

Bool_t AliMpCDB::fgLoadFromData = kTRUE
staticprivate

option for loading from CDB mapping data or from CDB mapping objects

Definition at line 100 of file AliMpCDB.h.

Referenced by LoadDDLStore(), LoadDDLStore2(), LoadManuStore(), LoadManuStore2(), LoadMpSegmentation(), LoadMpSegmentation2(), and SetLoadFromData().


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