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 <unordered_set>
7 #include <vector>
10 
11 class DDHGCalModuleAlgo : public DDAlgorithm {
12  public:
13  // Constructor and Destructor
14  DDHGCalModuleAlgo(); // const std::string & name);
15  ~DDHGCalModuleAlgo() override;
16 
17  void initialize(const DDNumericArguments& nArgs,
18  const DDVectorArguments& vArgs, const DDMapArguments& mArgs,
19  const DDStringArguments& sArgs,
20  const DDStringVectorArguments& vsArgs) override;
21  void execute(DDCompactView& cpv) override;
22 
23  protected:
24  void constructLayers(const DDLogicalPart&, DDCompactView& cpv);
25  double rMax(double z);
26  void positionSensitive(DDLogicalPart& glog, double rin, double rout,
27  DDCompactView& cpv);
28 
29  private:
30  std::vector<std::string> wafer; // Wafers
31  std::vector<std::string> materials; // Materials
32  std::vector<std::string> names; // Names
33  std::vector<double> thick; // Thickness of the material
34  std::vector<int> copyNumber; // Initial copy numbers
35  std::vector<int> layers; // Number of layers in a section
36  std::vector<double> layerThick; // Thickness of each section
37  std::vector<int> layerType; // Type of the layer
38  std::vector<int> layerSense; // COntent of a layer (sensitive?)
39  double zMinBlock; // Starting z-value of the block
40  double rMaxFine; // Maximum r-value for fine wafer
41  double waferW; // Width of the wafer
42  double waferGap; // Gap between 2 wafers
43  int sectors; // Sectors
44  std::vector<double> slopeB; // Slope at the lower R
45  std::vector<double> slopeT; // Slopes at the larger R
46  std::vector<double> zFront; // Starting Z values for the slopes
47  std::vector<double> rMaxFront; // Corresponding rMax's
48  std::string idName; // Name of the "parent" volume.
49  std::string idNameSpace; // Namespace of this and ALL sub-parts
50  std::unordered_set<int> copies; // List of copy #'s
51 };
52 
53 #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
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:80
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:93
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