Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-06-30 07:55:50

0001 // Copyright (C) 2022, 2023, Christopher Dilks
0002 // Subject to the terms in the LICENSE file found in the top-level directory.
0003 
0004 // bind IRT and DD4hep geometries for the RICHes
0005 #pragma once
0006 
0007 #include <DD4hep/Detector.h>
0008 #include <edm4eic/TrackPoint.h>
0009 #include <spdlog/logger.h>
0010 #include <functional>
0011 #include <gsl/pointers>
0012 #include <memory>
0013 #include <string>
0014 #include <vector>
0015 
0016 #include "algorithms/tracking/TrackPropagationConfig.h"
0017 
0018 namespace richgeo {
0019 class ActsGeo {
0020 public:
0021   // constructor and destructor
0022   ActsGeo(std::string detName_, gsl::not_null<const dd4hep::Detector*> det_,
0023           std::shared_ptr<spdlog::logger> log_);
0024   ~ActsGeo() {}
0025 
0026   // generate list ACTS disc surfaces, for a given radiator
0027   std::vector<eicrecon::SurfaceConfig> TrackingPlanes(int radiator, int numPlanes) const;
0028 
0029   // generate a cut to remove any track points that should not be used
0030   std::function<bool(edm4eic::TrackPoint)> TrackPointCut(int radiator) const;
0031 
0032 protected:
0033   std::string m_detName;
0034   gsl::not_null<const dd4hep::Detector*> m_det;
0035   std::shared_ptr<spdlog::logger> m_log;
0036 
0037 private:
0038 };
0039 } // namespace richgeo