Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-07-03 07:05:28

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_, gsl::not_null<const dd4hep::rec::CellIDPositionConverter*> conv_, std::shared_ptr<spdlog::logger> log_) :
0022         IrtGeo("PFRICH",det_,conv_,log_) { DD4hep_to_IRT(); }
0023       ~IrtGeoPFRICH();
0024 
0025     protected:
0026       void DD4hep_to_IRT() override;
0027 
0028     private:
0029       // FIXME: should be smart pointers, but IRT methods sometimes assume ownership of such raw pointers
0030       FlatSurface*             m_surfEntrance;
0031       CherenkovPhotonDetector* m_irtPhotonDetector;
0032       FlatSurface*             m_aerogelFlatSurface;
0033       FlatSurface*             m_filterFlatSurface;
0034       FlatSurface*             m_sensorFlatSurface;
0035   };
0036 }