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 <string>
5 #include <vector>
10 #include <unordered_set>
11 
12 class DDHGCalHEAlgo : public DDAlgorithm {
13 
14 public:
15  //Constructor and Destructor
16  DDHGCalHEAlgo(); //const std::string & name);
17  ~DDHGCalHEAlgo() override;
18 
19  void initialize(const DDNumericArguments & nArgs,
20  const DDVectorArguments & vArgs,
21  const DDMapArguments & mArgs,
22  const DDStringArguments & sArgs,
23  const DDStringVectorArguments & vsArgs) override;
24  void execute(DDCompactView& cpv) override;
25 
26 protected:
27 
28  void constructLayers (const DDLogicalPart&, DDCompactView& cpv);
29  double rMax(double z);
30  void positionMix(const DDLogicalPart& glog,const std::string& name,
31  int copy, double thick, const DDMaterial& matter,
32  double rin, double rmid, double routF,
33  DDCompactView& cpv);
34  void positionSensitive(const DDLogicalPart& glog, double rin,
35  double rout, int layertype,
36  DDCompactView& cpv);
37 
38 private:
39 
40  std::vector<std::string> wafers_; //Wafers
41  std::vector<std::string> materials_; //Materials
42  std::vector<std::string> names_; //Names
43  std::vector<double> thick_; //Thickness of the material
44  std::vector<int> copyNumber_; //Initial copy numbers
45  std::vector<int> layers_; //Number of layers in a section
46  std::vector<double> layerThick_; //Thickness of each section
47  std::vector<double> rMixLayer_; //Partition between Si/Sci part
48  std::vector<int> layerType_; //Type of the layer
49  std::vector<int> layerSense_; //Content of a layer (sensitive?)
50  int firstLayer_; //Copy # of the first sensitive layer
51  std::vector<std::string> materialsTop_; //Materials of top layers
52  std::vector<std::string> namesTop_; //Names of top layers
53  std::vector<double> layerThickTop_; //Thickness of the top sections
54  std::vector<int> layerTypeTop_; //Type of the Top layer
55  std::vector<int> copyNumberTop_; //Initial copy numbers (top section)
56  std::vector<std::string> materialsBot_; //Materials of bottom layers
57  std::vector<std::string> namesBot_; //Names of bottom layers
58  std::vector<double> layerThickBot_; //Thickness of the bottom sections
59  std::vector<int> layerTypeBot_; //Type of the bottom layers
60  std::vector<int> copyNumberBot_; //Initial copy numbers (bot section)
61  std::vector<int> layerSenseBot_; //Content of bottom layer (sensitive?)
62 
63  double zMinBlock_; //Starting z-value of the block
64  double rMaxFine_; //Maximum r-value for fine wafer
65  double rMinThick_; //Transition R between 200 & 300 mum
66  double waferSize_; //Width of the wafer
67  double waferSepar_; //Sensor separation
68  int sectors_; //Sectors
69  std::vector<double> slopeB_; //Slope at the lower R
70  std::vector<double> slopeT_; //Slopes at the larger R
71  std::vector<double> zFront_; //Starting Z values for the slopes
72  std::vector<double> rMaxFront_; //Corresponding rMax's
73  std::string nameSpace_; //Namespace of this and ALL sub-parts
74  std::unordered_set<int> copies_; //List of copy #'s
75 };
76 
77 #endif
std::vector< double > rMixLayer_
Definition: DDHGCalHEAlgo.h:47
std::vector< int > layerTypeTop_
Definition: DDHGCalHEAlgo.h:54
std::vector< double > layerThickBot_
Definition: DDHGCalHEAlgo.h:58
double rMax(double z)
double zMinBlock_
Definition: DDHGCalHEAlgo.h:63
def copy(args, dbName)
std::vector< double > slopeB_
Definition: DDHGCalHEAlgo.h:69
std::vector< std::string > materials_
Definition: DDHGCalHEAlgo.h:41
DDMaterial is used to define and access material information.
Definition: DDMaterial.h:41
double rMaxFine_
Definition: DDHGCalHEAlgo.h:64
std::string nameSpace_
Definition: DDHGCalHEAlgo.h:73
void execute(DDCompactView &cpv) override
double rMinThick_
Definition: DDHGCalHEAlgo.h:65
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:43
std::vector< std::string > namesTop_
Definition: DDHGCalHEAlgo.h:52
type of data representation of DDCompactView
Definition: DDCompactView.h:90
~DDHGCalHEAlgo() override
std::vector< int > layerSense_
Definition: DDHGCalHEAlgo.h:49
std::vector< int > copyNumberBot_
Definition: DDHGCalHEAlgo.h:60
std::vector< std::string > materialsBot_
Definition: DDHGCalHEAlgo.h:56
std::vector< double > slopeT_
Definition: DDHGCalHEAlgo.h:70
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:45
void positionMix(const DDLogicalPart &glog, const std::string &name, int copy, double thick, const DDMaterial &matter, double rin, double rmid, double routF, DDCompactView &cpv)
std::vector< double > layerThickTop_
Definition: DDHGCalHEAlgo.h:53
std::unordered_set< int > copies_
Definition: DDHGCalHEAlgo.h:74
std::vector< int > copyNumber_
Definition: DDHGCalHEAlgo.h:44
double waferSepar_
Definition: DDHGCalHEAlgo.h:67
std::vector< int > layerType_
Definition: DDHGCalHEAlgo.h:48
std::vector< std::string > materialsTop_
Definition: DDHGCalHEAlgo.h:51
std::vector< double > zFront_
Definition: DDHGCalHEAlgo.h:71
std::vector< int > copyNumberTop_
Definition: DDHGCalHEAlgo.h:55
void positionSensitive(const DDLogicalPart &glog, double rin, double rout, int layertype, DDCompactView &cpv)
std::vector< int > layerSenseBot_
Definition: DDHGCalHEAlgo.h:61
std::vector< std::string > wafers_
Definition: DDHGCalHEAlgo.h:40
std::vector< std::string > namesBot_
Definition: DDHGCalHEAlgo.h:57
std::vector< double > layerThick_
Definition: DDHGCalHEAlgo.h:46
std::vector< std::string > names_
Definition: DDHGCalHEAlgo.h:42
std::vector< int > layerTypeBot_
Definition: DDHGCalHEAlgo.h:59
std::vector< double > rMaxFront_
Definition: DDHGCalHEAlgo.h:72
double waferSize_
Definition: DDHGCalHEAlgo.h:66