10#ifndef CBMGEOSETUPPROVIDER_H
11#define CBMGEOSETUPPROVIDER_H 1
88 virtual void LoadSetup(std::string setupTag, std::string revision =
"") = 0;
Abstract interface class for providing the CBM detector setup description, module list,...
CbmGeoSetup & GetSetup()
Direct access to underlying geometry setup representation. Allows for fine-tuning of parameters,...
virtual std::vector< std::string > GetSetupTags()=0
Abstract method to get the list of setup tags.
virtual std::vector< std::string > GetMediaTags()=0
Abstract method to get the list of media tags.
virtual CbmGeoSetupModule GetModuleByTag(ECbmModuleId moduleId, std::string tag)=0
Abstract method for constructing the module by id and tag.
CbmGeoSetupModule GetDefaultCaveModule()
Gets defauk cave if none was provided by the other means.
ClassDef(CbmGeoSetupProvider, 1)
underlying geometry setup representation.
void Reset()
Resets the setup to default (empty)
void SetModuleTag(ECbmModuleId moduleId, std::string tag, Bool_t active)
Loads the detector with a tag into setup, will invoke GetModuleByTag.
void SetFieldTag(std::string tag)
Loads the field with a tag and adds it to the setup.
virtual CbmGeoSetupMedia GetMediaByTag(std::string tag)=0
Abstract method for constructing the media by tag.
void RemoveModule(ECbmModuleId moduleId)
Removes the module from setup.
void RegisterSetup()
Registers the previously loaded setup with FairRoot. Replaces the registerSetup.C macro.
virtual void LoadSetup(std::string setupTag, std::string revision="")=0
Abstract method to load the setup with a tag and revision version.
virtual ~CbmGeoSetupProvider()=default
Default destructor is necessary.
virtual std::vector< std::string > GetFieldTags()=0
Abstract method to get the list of field tags.
virtual CbmGeoSetupField GetFieldByTag(std::string tag)=0
Abstract method for constructing the field by tag.
virtual CbmGeoSetup GetSetupByTag(std::string setupTag, std::string revision)=0
Abstract method for constructing the setup by id and tag.
Data transfer object to represent the CBM Detector setup.