CMS 3D CMS Logo

DDHGCalHEAlgo.h
Go to the documentation of this file.
1 #ifndef HGCalCommonData_DDHGCalHEAlgo_h
2 #define HGCalCommonData_DDHGCalHEAlgo_h
3 
4 #include <cmath>
5 #include <memory>
6 #include <string>
7 #include <unordered_set>
8 #include <vector>
9 
15 
16 class DDHGCalHEAlgo : public DDAlgorithm {
17 
18 public:
19  //Constructor and Destructor
20  DDHGCalHEAlgo(); //const std::string & name);
21  ~DDHGCalHEAlgo() override;
22 
23  void initialize(const DDNumericArguments & nArgs,
24  const DDVectorArguments & vArgs,
25  const DDMapArguments & mArgs,
26  const DDStringArguments & sArgs,
27  const DDStringVectorArguments & vsArgs) override;
28  void execute(DDCompactView& cpv) override;
29 
30 protected:
31 
32  void constructLayers (const DDLogicalPart&, DDCompactView& cpv);
33  double rMax(double z);
34  void positionMix(const DDLogicalPart& glog,const std::string& name,
35  int copy, double thick, const DDMaterial& matter,
36  double rin, double rmid, double routF, double zz,
37  DDCompactView& cpv);
38  void positionSensitive(const DDLogicalPart& glog, double rin,
39  double rout, double zpos, int layertype,
40  DDCompactView& cpv);
41 
42 private:
43 
44  std::unique_ptr<HGCalWaferType> waferType_;
45 
46  std::vector<std::string> wafers_; //Wafers
47  std::vector<std::string> materials_; //Materials
48  std::vector<std::string> names_; //Names
49  std::vector<double> thick_; //Thickness of the material
50  std::vector<int> copyNumber_; //Initial copy numbers
51  std::vector<int> layers_; //Number of layers in a section
52  std::vector<double> layerThick_; //Thickness of each section
53  std::vector<double> rMixLayer_; //Partition between Si/Sci part
54  std::vector<int> layerType_; //Type of the layer
55  std::vector<int> layerSense_; //Content of a layer (sensitive?)
56  int firstLayer_; //Copy # of the first sensitive layer
57  std::vector<std::string> materialsTop_; //Materials of top layers
58  std::vector<std::string> namesTop_; //Names of top layers
59  std::vector<double> layerThickTop_; //Thickness of the top sections
60  std::vector<int> layerTypeTop_; //Type of the Top layer
61  std::vector<int> copyNumberTop_; //Initial copy numbers (top section)
62  std::vector<std::string> materialsBot_; //Materials of bottom layers
63  std::vector<std::string> namesBot_; //Names of bottom layers
64  std::vector<double> layerThickBot_; //Thickness of the bottom sections
65  std::vector<int> layerTypeBot_; //Type of the bottom layers
66  std::vector<int> copyNumberBot_; //Initial copy numbers (bot section)
67  std::vector<int> layerSenseBot_; //Content of bottom layer (sensitive?)
68 
69  double zMinBlock_; //Starting z-value of the block
70  std::vector<double> rad100to200_; //Parameters for 120-200mum trans.
71  std::vector<double> rad200to300_; //Parameters for 200-300mum trans.
72  double zMinRadPar_; //Minimum z for radius parametriz.
73  int choiceType_; //Type of parametrization to be used
74  int nCutRadPar_; //Cut off threshold for corners
75  double fracAreaMin_; //Minimum fractional conatined area
76  double waferSize_; //Width of the wafer
77  double waferSepar_; //Sensor separation
78  int sectors_; //Sectors
79  std::vector<double> slopeB_; //Slope at the lower R
80  std::vector<double> slopeT_; //Slopes at the larger R
81  std::vector<double> zFront_; //Starting Z values for the slopes
82  std::vector<double> rMaxFront_; //Corresponding rMax's
83  std::string nameSpace_; //Namespace of this and ALL sub-parts
84  std::unordered_set<int> copies_; //List of copy #'s
85 };
86 
87 #endif
std::vector< double > rMixLayer_
Definition: DDHGCalHEAlgo.h:53
std::vector< int > layerTypeTop_
Definition: DDHGCalHEAlgo.h:60
std::vector< double > layerThickBot_
Definition: DDHGCalHEAlgo.h:64
void positionMix(const DDLogicalPart &glog, const std::string &name, int copy, double thick, const DDMaterial &matter, double rin, double rmid, double routF, double zz, DDCompactView &cpv)
double rMax(double z)
double zMinBlock_
Definition: DDHGCalHEAlgo.h:69
def copy(args, dbName)
std::vector< double > slopeB_
Definition: DDHGCalHEAlgo.h:79
std::vector< std::string > materials_
Definition: DDHGCalHEAlgo.h:47
DDMaterial is used to define and access material information.
Definition: DDMaterial.h:41
std::string nameSpace_
Definition: DDHGCalHEAlgo.h:83
void execute(DDCompactView &cpv) override
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs) override
std::vector< double > thick_
Definition: DDHGCalHEAlgo.h:49
std::vector< std::string > namesTop_
Definition: DDHGCalHEAlgo.h:58
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:83
double zMinRadPar_
Definition: DDHGCalHEAlgo.h:72
~DDHGCalHEAlgo() override
std::unique_ptr< HGCalWaferType > waferType_
Definition: DDHGCalHEAlgo.h:44
std::vector< int > layerSense_
Definition: DDHGCalHEAlgo.h:55
std::vector< int > copyNumberBot_
Definition: DDHGCalHEAlgo.h:66
std::vector< std::string > materialsBot_
Definition: DDHGCalHEAlgo.h:62
std::vector< double > slopeT_
Definition: DDHGCalHEAlgo.h:80
void constructLayers(const DDLogicalPart &, DDCompactView &cpv)
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
Definition: DDLogicalPart.h:92
std::vector< int > layers_
Definition: DDHGCalHEAlgo.h:51
std::vector< double > rad100to200_
Definition: DDHGCalHEAlgo.h:70
std::vector< double > layerThickTop_
Definition: DDHGCalHEAlgo.h:59
std::unordered_set< int > copies_
Definition: DDHGCalHEAlgo.h:84
std::vector< int > copyNumber_
Definition: DDHGCalHEAlgo.h:50
double waferSepar_
Definition: DDHGCalHEAlgo.h:77
std::vector< int > layerType_
Definition: DDHGCalHEAlgo.h:54
std::vector< std::string > materialsTop_
Definition: DDHGCalHEAlgo.h:57
std::vector< double > zFront_
Definition: DDHGCalHEAlgo.h:81
std::vector< int > copyNumberTop_
Definition: DDHGCalHEAlgo.h:61
void positionSensitive(const DDLogicalPart &glog, double rin, double rout, double zpos, int layertype, DDCompactView &cpv)
std::vector< int > layerSenseBot_
Definition: DDHGCalHEAlgo.h:67
std::vector< std::string > wafers_
Definition: DDHGCalHEAlgo.h:46
double fracAreaMin_
Definition: DDHGCalHEAlgo.h:75
std::vector< std::string > namesBot_
Definition: DDHGCalHEAlgo.h:63
std::vector< double > layerThick_
Definition: DDHGCalHEAlgo.h:52
std::vector< std::string > names_
Definition: DDHGCalHEAlgo.h:48
std::vector< int > layerTypeBot_
Definition: DDHGCalHEAlgo.h:65
std::vector< double > rMaxFront_
Definition: DDHGCalHEAlgo.h:82
double waferSize_
Definition: DDHGCalHEAlgo.h:76
std::vector< double > rad200to300_
Definition: DDHGCalHEAlgo.h:71