File indexing completed on 2024-11-16 10:01:29
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TGeoToStep
0013 #define ROOT_TGeoToStep
0014
0015 #include "TObject.h"
0016
0017 #include <map>
0018 #include <string>
0019
0020 class TGeoManager;
0021 class TOCCToStep;
0022
0023
0024 class TGeoToStep: public TObject {
0025
0026 protected:
0027 TGeoManager *fGeometry;
0028 TOCCToStep *fCreate;
0029
0030 public:
0031 TGeoToStep();
0032 TGeoToStep(TGeoManager *geom);
0033 virtual ~TGeoToStep();
0034
0035 void CreateGeometry(const char* fname = "geometry.stp", int max_level = -1, double tgeo_length_unit_in_mm = 1.);
0036 void CreatePartialGeometry(const char* part_name, int max_level = -1, const char* fname = "geometry.stp", double tgeo_length_unit_in_mm = 1.);
0037 void CreatePartialGeometry(std::map<std::string,int> part_name_levels, const char* fname = "geometry.stp", double tgeo_length_unit_in_mm = 1.);
0038
0039 ClassDef(TGeoToStep,1)
0040 };
0041
0042 #endif