CMS 3D CMS Logo

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  ~DDHGCalModuleAlgo() override;
17 
18  void initialize(const DDNumericArguments & nArgs,
19  const DDVectorArguments & vArgs,
20  const DDMapArguments & mArgs,
21  const DDStringArguments & sArgs,
22  const DDStringVectorArguments & vsArgs) override;
23  void execute(DDCompactView& cpv) override;
24 
25 protected:
26 
27  void constructLayers (const DDLogicalPart&, DDCompactView& cpv);
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  double waferGap; //Gap between 2 wafers
47  int sectors; //Sectors
48  std::vector<double> slopeB; //Slope at the lower R
49  std::vector<double> slopeT; //Slopes at the larger R
50  std::vector<double> zFront; //Starting Z values for the slopes
51  std::vector<double> rMaxFront; //Corresponding rMax's
52  std::string idName; //Name of the "parent" volume.
53  std::string idNameSpace; //Namespace of this and ALL sub-parts
54  std::unordered_set<int> copies; //List of copy #'s
55 };
56 
57 #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 initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs) override
std::vector< std::string > names
~DDHGCalModuleAlgo() override
type of data representation of DDCompactView
Definition: DDCompactView.h:90
std::vector< std::string > materials
std::vector< double > rMaxFront
void execute(DDCompactView &cpv) override
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
Definition: DDLogicalPart.h:92
std::vector< double > slopeB
std::string idNameSpace
std::vector< int > layerType
std::vector< int > layers
std::vector< double > slopeT
std::vector< std::string > wafer
std::vector< double > zFront
std::vector< double > layerThick
void constructLayers(const DDLogicalPart &, DDCompactView &cpv)
double rMax(double z)
std::vector< int > layerSense