Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-07-01 07:56:33

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