Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:55:19

0001 //==========================================================================
0002 //  AIDA Detector description implementation 
0003 //--------------------------------------------------------------------------
0004 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
0005 // All rights reserved.
0006 //
0007 // For the licensing terms see $DD4hepINSTALL/LICENSE.
0008 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
0009 //
0010 // Author     : M.Frank
0011 //
0012 //==========================================================================
0013 #ifndef DDCAD_ASSIMPREADER_H
0014 #define DDCAD_ASSIMPREADER_H
0015 
0016 /// Framework include files
0017 #include <DDCAD/InputReader.h>
0018 
0019 /// C/C++ include files
0020 
0021 /// Namespace for the AIDA detector description toolkit
0022 namespace dd4hep {
0023 
0024   /// Namespace for implementation details of the AIDA detector description toolkit
0025   namespace cad  {
0026 
0027     /// Reader class to input geometry shapes from CAD files
0028     /**
0029      *  As a helper the ASSIMP library is used to interprete the 
0030      *  CAD formats.
0031      *
0032      *  \author  M.Frank
0033      *  \version 1.0
0034      *  \ingroup DD4HEP_DDCAD
0035      */
0036     class ASSIMPReader : public InputReader   {
0037     public:
0038       long flags = 0;
0039     public:
0040       using InputReader::InputReader;
0041 
0042       /// Default destructor
0043       virtual ~ASSIMPReader() = default;
0044 
0045       /// Read input file
0046       virtual std::vector<std::unique_ptr<TGeoTessellated> >
0047       readShapes(const std::string& source, double unit_Length)  const  override;
0048       
0049       /// Read input file and create a volume-set
0050       virtual std::vector<std::unique_ptr<TGeoVolume> >
0051       readVolumes(const std::string& source, double unit_length)  const override;
0052     };
0053   }        /* End namespace cad                      */
0054 }          /* End namespace dd4hep                   */
0055 #endif // DDCAD_ASSIMPREADER_H