18#ifndef ALICEO2_ACTS_TRACKINGGEOMETRYMANAGER_H
19#define ALICEO2_ACTS_TRACKINGGEOMETRYMANAGER_H
24#include <unordered_map>
26#include "Acts/Utilities/Logger.hpp"
64 void setBuilder(std::unique_ptr<ITrackingGeometryBuilder> builder);
83 bool isBuilt()
const {
return mGeometry !=
nullptr; }
87 std::shared_ptr<const Acts::TrackingGeometry>
getShared();
88 const Acts::TrackingGeometry&
get();
112 double toleranceCm = 1
e-3,
128 void applyMaterialMapImpl(Acts::TrackingGeometry& geometry);
130 std::unique_ptr<ITrackingGeometryBuilder> mBuilder;
131 std::string mMaterialMapFile;
132 Acts::Logging::Level mLogLevel = Acts::Logging::INFO;
134 Acts::GeometryContext mNominalContext;
135 std::shared_ptr<const Acts::TrackingGeometry> mGeometry;
136 std::vector<std::shared_ptr<const Acts::SurfacePlacementBase>> mElementStore;
139 std::unordered_map<int, SurfaceIndexMap> mDetIndices;
140 std::size_t mNDecoratedSurfaces = 0;
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to Number of events to Number of iterations to Number of iterations to Number of initial iterations excluded from const char e
Detector-agnostic interface for building an Acts::TrackingGeometry from TGeo.
void setLogLevel(Acts::Logging::Level level)
const Acts::GeometryContext & getNominalContext() const
const SurfaceIndexMap & getIndex()
const std::string & getMaterialMapFile() const
static TrackingGeometryManager & instance()
std::size_t getNDecoratedSurfaces() const
void buildFromFile(std::string_view geomFileName)
void setBuilder(std::unique_ptr< ITrackingGeometryBuilder > builder)
Install the detector-specific builder. Must be called before the first build.
void setMaterialMapFile(std::string fileName)
const Acts::TrackingGeometry & get()
std::shared_ptr< const Acts::TrackingGeometry > getShared()
Builds on first call if not built yet.
std::function< std::string(int sensorID)> SensorPathProvider
Full TGeo node path of one sensor, e.g. o2::trk::GeometryTGeo::getMatrixPath().