CMS 3D CMS Logo

DDAHcalModuleAlgo.h
Go to the documentation of this file.
1 #ifndef HGCalCommonData_DDAHcalModuleAlgo_h
2 #define HGCalCommonData_DDAHcalModuleAlgo_h
3 
4 #include <map>
5 #include <string>
6 #include <unordered_set>
7 #include <vector>
10 
11 class DDAHcalModuleAlgo : public DDAlgorithm {
12  public:
13  // Constructor and Destructor
14  DDAHcalModuleAlgo(); // const std::string & name);
15  ~DDAHcalModuleAlgo() 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);
26 
27  private:
28  std::string tile; // Scintillator tile
29  std::vector<std::string> materials; // Materials
30  std::vector<std::string> names; // Names
31  std::vector<double> thick; // Thickness of the material
32  std::vector<int> copyNumber; // Initial copy numbers
33  std::vector<int> layers; // Number of layers in a section
34  std::vector<double> layerThick; // Thickness of each section
35  std::vector<int> layerType; // Type of the layer
36  std::vector<int> layerSense; // Content of a layer (sensitive?)
37  std::vector<double> widths; // Width (passive, active)
38  std::vector<double> heights; // Heights (passive, active)
39  std::vector<int> tileN; // # of tiles (along x, y)
40  std::vector<double> tileStep; // Separation between tiles (x, y)
41  double zMinBlock; // Starting z-value of the block
42  std::string idName; // Name of the "parent" volume.
43  std::string idNameSpace; // Namespace of this and ALL sub-parts
44  std::unordered_set<int> copies; // List of copy #'s
45 };
46 
47 #endif
std::vector< int > layerType
std::vector< std::string > materials
std::vector< double > widths
void constructLayers(const DDLogicalPart &, DDCompactView &cpv)
std::vector< int > copyNumber
~DDAHcalModuleAlgo() override
std::vector< double > heights
void execute(DDCompactView &cpv) override
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:80
std::vector< double > thick
std::unordered_set< int > copies
std::vector< std::string > names
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs) override
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
Definition: DDLogicalPart.h:93
std::vector< double > layerThick
std::vector< double > tileStep
std::vector< int > layers
std::vector< int > tileN
std::vector< int > layerSense
void positionSensitive(DDLogicalPart &glog, DDCompactView &cpv)
std::string idNameSpace