Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-16 08:53:41

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 pfRICH
0005 #pragma once
0006 
0007 #include <DD4hep/Detector.h>
0008 #include <DDRec/CellIDPositionConverter.h>
0009 #include <IRT/CherenkovPhotonDetector.h>
0010 #include <IRT/ParametricSurface.h>
0011 #include <spdlog/logger.h>
0012 #include <gsl/pointers>
0013 #include <memory>
0014 #include <string>
0015 
0016 #include "IrtGeo.h"
0017 
0018 namespace richgeo {
0019 class IrtGeoPFRICH : public IrtGeo {
0020 
0021 public:
0022   IrtGeoPFRICH(gsl::not_null<const dd4hep::Detector*> det_,
0023                gsl::not_null<const dd4hep::rec::CellIDPositionConverter*> conv_,
0024                std::shared_ptr<spdlog::logger> log_)
0025       : IrtGeo("PFRICH", det_, conv_, log_) {
0026     DD4hep_to_IRT();
0027   }
0028   ~IrtGeoPFRICH();
0029 
0030 protected:
0031   void DD4hep_to_IRT() override;
0032 
0033 private:
0034   // FIXME: should be smart pointers, but IRT methods sometimes assume ownership of such raw pointers
0035   FlatSurface* m_surfEntrance;
0036   CherenkovPhotonDetector* m_irtPhotonDetector;
0037   FlatSurface* m_aerogelFlatSurface;
0038   FlatSurface* m_filterFlatSurface;
0039   FlatSurface* m_sensorFlatSurface;
0040 };
0041 } // namespace richgeo