Back to home page

EIC code displayed by LXR

 
 

    


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

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