Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:08:05

0001 #ifndef GEOMETRY_ECALTBHODOSCOPEGEOMETRYLOADERFROMDDD_H
0002 #define GEOMETRY_ECALTBHODOSCOPEGEOMETRYLOADERFROMDDD_H 1
0003 
0004 #include "Geometry/EcalTestBeam/interface/EcalHodoscopeNumberingScheme.h"
0005 
0006 /** \class EcalTBHodoscopeGeometryLoaderFromDDD
0007  *
0008  *
0009  *   
0010  * \author P. Meridiani - INFN Roma 1
0011 */
0012 
0013 class DDCompactView;
0014 class DDFilteredView;
0015 class DDFilter;
0016 class CaloSubdetectorGeometry;
0017 class EcalTBHodoscopeGeometry;
0018 
0019 #include <memory>
0020 #include <string>
0021 
0022 class EcalTBHodoscopeGeometryLoaderFromDDD {
0023 public:
0024   EcalTBHodoscopeGeometryLoaderFromDDD(){};
0025 
0026   virtual ~EcalTBHodoscopeGeometryLoaderFromDDD(){};
0027 
0028   std::unique_ptr<CaloSubdetectorGeometry> load(const DDCompactView* cpv);
0029 
0030 private:
0031   void makeGeometry(const DDCompactView* cpv, CaloSubdetectorGeometry* ebg);
0032 
0033   unsigned int getDetIdForDDDNode(const DDFilteredView& fv);
0034 
0035   std::string getDDDString(std::string s, DDFilteredView* fv);
0036 
0037   DDFilter* getDDFilter();
0038 
0039   EcalHodoscopeNumberingScheme _scheme;
0040 };
0041 
0042 #endif