1 / 7

OCDB Issue: how to handle storages

OCDB Issue: how to handle storages. Offline Weekly Meeting. How it is Now. OCDB Default Storage is set by hand for simulations for PDCs: aliensh:[alice] [31] /alice/cern.ch/user/a/aliprod/LHC08e1/sim.C:

eliot
Download Presentation

OCDB Issue: how to handle storages

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. OCDB Issue:how to handle storages Offline Weekly Meeting

  2. How it is Now... • OCDB Default Storage is set by hand • for simulations for PDCs: aliensh:[alice] [31] /alice/cern.ch/user/a/aliprod/LHC08e1/sim.C: simulator.SetDefaultStorage("alien://Folder=/alice/simulation/2008/v4-15-Release/Ideal/"); • for simulations for in $ALICE_ROOT: $ALICE_ROOT/test/ppBench: simulator.SetDefaultStorage("local://$ALICE_ROOT"); • for simulations for cosmic runs: $ALICE_ROOT/test/cosmic: rec.SetDefaultStorage("alien://folder=/alice/data/2008/LHC08a/OCDB/"); Chiara Zampolli – Offl. Weekly Meeting

  3. Critical Point... • Setting by hand the Default Storage may lead to confusion: • As far as simulation is concerned, the correct AliRoot version always needs to be specified • People may not pay attention to the path they set • A smarter solution would be to be able to set the Default Storage in a way transparent to the user • No more subfolders of the OCDB corresponding to each AliRoot Release • Common base path for the alien OCDBs for both real and simulated data Chiara Zampolli – Offl. Weekly Meeting

  4. What is Ongoing In the scenario of this tentative proposal.... • A new method has been introduced in AliCDBManager: • SetStorage(const char* runType, const char* simType) • It sets automatically the Default Storage according to the type of run (“Raw”, “MC”, “local”), and in case of simulation, it defines the subfolder corresponding to the type of simulation itself (“Ideal”, “Full”, “Residual”) • It uses some hardcoded variables for the paths: TString AliCDBManager::fgkRawStorage("alien://folder=/alice/data"); TString AliCDBManager::fgkMCIdealStorage("alien://folder=/alice/simulation/2008/v4-15-Release/Ideal"); TString AliCDBManager::fgkMCFullStorage("alien://folder=/alice/simulation/2008/v4-15-Release/Full"); TString AliCDBManager::fgkMCResidualStorage("alien://folder=/alice/simulation/2008/v4-15-Release/Residual"); • TString AliCDBManager::fgkLocalStorage(“local://$ALICE_ROOT"); Chiara Zampolli – Offl. Weekly Meeting

  5. Related Changes In the scenario of this tentative proposal.... • AliSimulation & AliReconstruction: • New method: • SetStorage(const char* runType, const char* simType): • should be called instead of SetDefaultStorage(const char* uri) • Ex 1: Ex 2: AliSimulation simulator; AliSimulation simulator; simulator.SetStorage(“MC”,”Full”); simualtor.SetStorage(“Raw”); • Modification of an existing method: • InitCDB(): • Now calls AliCDBManager::SetStorage(const char* runType, const char* simType) • In case of “MC”, but not specified simType, automatically uses “Ideal” • Still setting the Default Storage to local://$ALICE_ROOT if runType is not specified Chiara Zampolli – Offl. Weekly Meeting

  6. Some Remarks In the scenario of this tentative proposal.... • AliCDBManager: • In case runType is not specified in AliCDBManager::SetStorage(), AliFatal is called • In case runType=“MC” but no simType is specified, AliError is called, and simType=“Ideal” is set • The hardcoded path for: • “Raw”: now not fully defined, since access to the year and period are needed • “MC”: now the AliRoot version is still in the path – should be removed • AliSimulation & AliReconstruction: • If no runType is specified, AliWarning is called (since also before no error was detected) and the local $ALICE_ROOT is used as Default Storage → to be discussed • In case runType=“MC” but no simType is specified, AliError is called, and simType=“Ideal” is set Chiara Zampolli – Offl. Weekly Meeting

  7. Some More Remarks In the scenario of this tentative proposal.... • AliCDBManager::SetStorage(const char* runType, const char* simType)is simply a mask to the old AliCDBManager::SetDefaultStorage(const char* dbString) method • AliCDBManager::SetDefaultStorage(const char* dbString) & AliCDBManager::SetDefaultStorage(const AliCDBParam* param) & AliCDBManager::SetDefaultStorage(AliCDBStorage* storage) still present (and usable) in the class (public method) • AliCDBManager::SetSpecificStorage(const char* calibType, const char* dbString) & AliCDBManager::SetSpecificStorage(const char* calibType, AliCDBParam* param) still to be used to set Specific Storages, as before. Chiara Zampolli – Offl. Weekly Meeting

More Related