|
CbmRoot
|
Setup provider with database functionality. More...
#include <CbmGeoSetupDbProvider.h>
Public Member Functions | |
| virtual std::vector< std::string > | GetSetupTags () |
| Abstract method to get the list of setup tags. | |
| virtual std::vector< std::string > | GetFieldTags () |
| Abstract method to get the list of field tags. | |
| virtual std::vector< std::string > | GetMediaTags () |
| Abstract method to get the list of media tags. | |
| virtual CbmGeoSetup | GetSetupByTag (std::string setupTag, std::string revision) |
| Abstract method for constructing the setup by id and tag. | |
| virtual CbmGeoSetupModule | GetModuleByTag (ECbmModuleId moduleId, std::string tag) |
| Abstract method for constructing the module by id and tag. | |
| virtual CbmGeoSetupField | GetFieldByTag (std::string tag) |
| Abstract method for constructing the field by tag. | |
| virtual CbmGeoSetupMedia | GetMediaByTag (std::string tag) |
| Abstract method for constructing the media by tag. | |
| virtual void | LoadSetup (std::string setupTag, std::string revision="") |
| Abstract method to load the setup with a tag and revision version. | |
| void | SetModuleTag (ECbmModuleId moduleId, std::string tag, Bool_t active) |
| Loads the detector with a tag into setup, will invoke GetModuleByTag. | |
| void | RemoveModule (ECbmModuleId moduleId) |
| Removes the module from setup. | |
| void | SetFieldTag (std::string tag) |
| Loads the field with a tag and adds it to the setup. | |
| void | RegisterSetup () |
| Registers the previously loaded setup with FairRoot. Replaces the registerSetup.C macro. | |
| void | Reset () |
| Resets the setup to default (empty) | |
| CbmGeoSetup & | GetSetup () |
| Direct access to underlying geometry setup representation. Allows for fine-tuning of parameters, for exmaple, transformation matrices. | |
Protected Member Functions | |
| CbmGeoSetupModule | GetDefaultCaveModule () |
| Gets defauk cave if none was provided by the other means. | |
Protected Attributes | |
| CbmGeoSetup | fSetup {} |
Private Member Functions | |
| ClassDef (CbmGeoSetupDbProvider, 1) | |
Setup provider with database functionality.
This class implements the CbmGeoSetupProvider interface to fetch available setups, fields and media definitions from DB. Database functionality is described in http://lt-jds.jinr.ru/record/72420 This class works with a local SQLite replica of the real geometry database hosted elsewhere. See CMakeLists.txt for replica loading configuration.
Definition at line 25 of file CbmGeoSetupDbProvider.h.
|
private |
|
protectedinherited |
Gets defauk cave if none was provided by the other means.
Definition at line 154 of file CbmGeoSetupProvider.cxx.
Referenced by CbmGeoSetupRepoProvider::GetSetupByTag(), and CbmGeoSetupDbProvider::LoadSetup().
|
virtual |
Abstract method for constructing the field by tag.
Implements CbmGeoSetupProvider.
Definition at line 225 of file CbmGeoSetupDbProvider.cxx.
References CbmGeoSetupField::GetMatrix(), CbmGeoSetupField::SetAuthor(), CbmGeoSetupField::SetDate(), CbmGeoSetupField::SetDescription(), CbmGeoSetupField::SetFilePath(), CbmGeoSetupField::SetId(), CbmGeoSetupField::SetScale(), and CbmGeoSetupField::SetTag().
Referenced by LoadSetup().
|
virtual |
Abstract method to get the list of field tags.
Implements CbmGeoSetupProvider.
Definition at line 119 of file CbmGeoSetupDbProvider.cxx.
|
virtual |
Abstract method for constructing the media by tag.
Implements CbmGeoSetupProvider.
Definition at line 263 of file CbmGeoSetupDbProvider.cxx.
References CbmGeoSetupMedia::SetAuthor(), CbmGeoSetupMedia::SetDate(), CbmGeoSetupMedia::SetDescription(), CbmGeoSetupMedia::SetFilePath(), CbmGeoSetupMedia::SetId(), and CbmGeoSetupMedia::SetTag().
Referenced by LoadSetup().
|
virtual |
Abstract method to get the list of media tags.
Implements CbmGeoSetupProvider.
Definition at line 121 of file CbmGeoSetupDbProvider.cxx.
|
virtual |
Abstract method for constructing the module by id and tag.
Implements CbmGeoSetupProvider.
Definition at line 175 of file CbmGeoSetupDbProvider.cxx.
Referenced by LoadSetup().
|
inlineinherited |
Direct access to underlying geometry setup representation. Allows for fine-tuning of parameters, for exmaple, transformation matrices.
Definition at line 68 of file CbmGeoSetupProvider.h.
References fSetup.
Referenced by cbm::kf::TrackingGeoSetupFactory::MaterialCacheFile().
|
virtual |
Abstract method for constructing the setup by id and tag.
Implements CbmGeoSetupProvider.
Definition at line 124 of file CbmGeoSetupDbProvider.cxx.
References CbmGeoSetup::GetField(), CbmGeoSetup::GetMedia(), pos, CbmGeoSetup::SetAuthor(), CbmGeoSetup::SetDate(), CbmGeoSetup::SetDescription(), CbmGeoSetup::SetId(), CbmGeoSetup::SetName(), CbmGeoSetup::SetRevision(), CbmGeoSetup::SetTag(), CbmGeoSetupField::SetTag(), and CbmGeoSetupMedia::SetTag().
Referenced by LoadSetup().
|
virtual |
Abstract method to get the list of setup tags.
Implements CbmGeoSetupProvider.
Definition at line 99 of file CbmGeoSetupDbProvider.cxx.
|
virtual |
Abstract method to load the setup with a tag and revision version.
Implements CbmGeoSetupProvider.
Definition at line 294 of file CbmGeoSetupDbProvider.cxx.
References CbmGeoSetupProvider::fSetup, CbmGeoSetupProvider::GetDefaultCaveModule(), CbmGeoSetup::GetField(), GetFieldByTag(), CbmGeoSetup::GetId(), CbmGeoSetup::GetMedia(), GetMediaByTag(), GetModuleByTag(), GetSetupByTag(), CbmGeoSetupField::GetTag(), CbmGeoSetupMedia::GetTag(), kCave, CbmGeoSetup::SetField(), CbmGeoSetup::SetMedia(), and CbmGeoSetup::SetModuleMap().
|
inherited |
Registers the previously loaded setup with FairRoot. Replaces the registerSetup.C macro.
Definition at line 72 of file CbmGeoSetupProvider.cxx.
References counter, fSetup, kBmon, kCave, kFsd, kHodo, kMagnet, kMuch, kMust, kMvd, kNofSystems, kPipe, kPlatform, kPsd, kRich, kSts, kTarget, kTof, and kTrd.
|
inherited |
Removes the module from setup.
Definition at line 60 of file CbmGeoSetupProvider.cxx.
References fSetup.
|
inherited |
Resets the setup to default (empty)
Definition at line 152 of file CbmGeoSetupProvider.cxx.
References fSetup.
|
inherited |
Loads the field with a tag and adds it to the setup.
| tag | field tag to load |
Definition at line 62 of file CbmGeoSetupProvider.cxx.
References fSetup, GetFieldByTag(), CbmGeoSetupField::SetMatrix(), and CbmGeoSetupField::SetScale().
|
inherited |
Loads the detector with a tag into setup, will invoke GetModuleByTag.
| moduleId | ECbmModuleId @patam tag module tag to load |
| active | indicates if the module will be treated as active in Monte-Carlo, exact treatment depends on actual implementation of a FairModule |
Definition at line 53 of file CbmGeoSetupProvider.cxx.
References fSetup, and GetModuleByTag().
|
protectedinherited |
Definition at line 94 of file CbmGeoSetupProvider.h.
Referenced by CbmGeoSetupRepoProvider::GetFieldByTag(), CbmGeoSetupRepoProvider::GetMediaByTag(), GetSetup(), CbmGeoSetupRepoProvider::GetSetupByTag(), CbmGeoSetupDbProvider::LoadSetup(), CbmGeoSetupRepoProvider::LoadSetup(), RegisterSetup(), RemoveModule(), Reset(), SetFieldTag(), and SetModuleTag().