test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DDHGCalModuleAlgo.h
Go to the documentation of this file.
1 #ifndef HGCalCommonData_DDHGCalModuleAlgo_h
2 #define HGCalCommonData_DDHGCalModuleAlgo_h
3 
4 #include <map>
5 #include <string>
6 #include <vector>
9 #include <unordered_set>
10 
11 class DDHGCalModuleAlgo : public DDAlgorithm {
12 
13 public:
14  //Constructor and Destructor
15  DDHGCalModuleAlgo(); //const std::string & name);
16  virtual ~DDHGCalModuleAlgo();
17 
18  void initialize(const DDNumericArguments & nArgs,
19  const DDVectorArguments & vArgs,
20  const DDMapArguments & mArgs,
21  const DDStringArguments & sArgs,
22  const DDStringVectorArguments & vsArgs);
23  void execute(DDCompactView& cpv);
24 
25 protected:
26 
28  double rMax(double z);
29  void positionSensitive(DDLogicalPart& glog, double rin, double rout,
30  DDCompactView& cpv);
31 
32 private:
33 
34  std::vector<std::string> wafer; //Wafers
35  std::vector<std::string> materials; //Materials
36  std::vector<std::string> names; //Names
37  std::vector<double> thick; //Thickness of the material
38  std::vector<int> copyNumber; //Initial copy numbers
39  std::vector<int> layers; //Number of layers in a section
40  std::vector<double> layerThick; //Thickness of each section
41  std::vector<int> layerType; //Type of the layer
42  std::vector<int> layerSense; //COntent of a layer (sensitive?)
43  double zMinBlock; //Starting z-value of the block
44  double rMaxFine; //Maximum r-value for fine wafer
45  double waferW; //Width of the wafer
46  int sectors; //Sectors
47  std::vector<double> slopeB; //Slope at the lower R
48  std::vector<double> slopeT; //Slopes at the larger R
49  std::vector<double> zFront; //Starting Z values for the slopes
50  std::vector<double> rMaxFront; //Corresponding rMax's
51  std::string idName; //Name of the "parent" volume.
52  std::string idNameSpace; //Namespace of this and ALL sub-parts
53  std::unordered_set<int> copies; //List of copy #'s
54 };
55 
56 #endif
std::vector< int > copyNumber
std::vector< double > thick
void positionSensitive(DDLogicalPart &glog, double rin, double rout, DDCompactView &cpv)
std::unordered_set< int > copies
void constructLayers(DDLogicalPart, DDCompactView &cpv)
std::vector< std::string > names
type of data representation of DDCompactView
Definition: DDCompactView.h:77
std::vector< std::string > materials
std::vector< double > rMaxFront
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
Definition: DDLogicalPart.h:88
std::vector< double > slopeB
std::string idNameSpace
std::vector< int > layerType
std::vector< int > layers
virtual ~DDHGCalModuleAlgo()
void execute(DDCompactView &cpv)
std::vector< double > slopeT
std::vector< std::string > wafer
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs)
std::vector< double > zFront
std::vector< double > layerThick
double rMax(double z)
std::vector< int > layerSense