Skip to content

Commit

Permalink
Add TGeoJson attribute to ACTSProcBase as a start of loading geometry…
Browse files Browse the repository at this point in the history
… configuration from it.
  • Loading branch information
kkrizka committed Jul 12, 2024
1 parent 3fa0b24 commit 95536d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ACTSTracking/ACTSProcBase.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ class ACTSProcBase : public marlin::Processor {
//! Path to tracker geometry file
std::string _tgeoFile{};

//! Path to tracker geometry configuration
std::string _tgeoJson{};

std::shared_ptr<ACTSTracking::GeometryIdMappingTool> geoIDMappingTool() const;

const Acts::MagneticFieldContext& magneticFieldContext() const;
Expand Down
2 changes: 2 additions & 0 deletions src/ACTSProcBase.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ ACTSProcBase::ACTSProcBase(const std::string& procname) : Processor(procname) {
_matFile, std::string(""));
registerProcessorParameter("TGeoFile", "Path to the tracker geometry file.",
_tgeoFile, std::string(""));
registerProcessorParameter("TGeoJson", "Path to the tracker geometry configuration.",
_tgeoJson, std::string(""));
}

std::shared_ptr<GeometryIdMappingTool> ACTSProcBase::geoIDMappingTool() const {
Expand Down

0 comments on commit 95536d0

Please sign in to comment.