00001 #ifndef HcalAlgo_DDHCalLinearXY_h 00002 #define HcalAlgo_DDHCalLinearXY_h 00003 00004 #include <map> 00005 #include <string> 00006 #include <vector> 00007 #include "DetectorDescription/Base/interface/DDTypes.h" 00008 #include "DetectorDescription/Algorithm/interface/DDAlgorithm.h" 00009 00010 class DDHCalLinearXY : public DDAlgorithm { 00011 00012 public: 00013 //Constructor and Destructor 00014 DDHCalLinearXY(); 00015 virtual ~DDHCalLinearXY(); 00016 00017 void initialize(const DDNumericArguments & nArgs, 00018 const DDVectorArguments & vArgs, 00019 const DDMapArguments & mArgs, 00020 const DDStringArguments & sArgs, 00021 const DDStringVectorArguments & vsArgs); 00022 00023 void execute(DDCompactView& cpv); 00024 00025 private: 00026 00027 std::string idNameSpace; //Namespace of this and ALL sub-parts 00028 std::vector<std::string> childName; //Child name 00029 int numberX; //Number of positioning along X-axis 00030 double deltaX; //Increment ......... 00031 int numberY; //Number of positioning along Y-axis 00032 double deltaY; //Increment ......... 00033 std::vector<double> centre; //Centre 00034 }; 00035 00036 #endif