Skip to content
Snippets Groups Projects
Commit b08306bb authored by Marshall Scott's avatar Marshall Scott
Browse files

Checking layer thickness

parent 16f6d5e9
No related branches found
No related tags found
1 merge request!59Resolve "ZDC sampling detector"
Pipeline #10344 failed
...@@ -37,7 +37,7 @@ static Ref_t createDetector(Detector& lcdd, xml_h e, SensitiveDetector sens) { ...@@ -37,7 +37,7 @@ static Ref_t createDetector(Detector& lcdd, xml_h e, SensitiveDetector sens) {
int slice_num = 1; int slice_num = 1;
double totWidth = Layering(x_det).totalThickness(); double totWidth = Layering(x_det).totalThickness();
Box envelope (pixel_x/2.0, pixel_y/2.0, totWidth/2.0); Box envelope (pixel_x/2.0, pixel_y/2.0, totWidth/2.0);
Volume envelopeVol(det_name+"_envelope", envelope,air); Volume envelopeVol(det_name+"_envelope", envelope, air);
PlacedVolume pv; PlacedVolume pv;
xml_comp_t x_layer = x_det.child(_U(layer)); xml_comp_t x_layer = x_det.child(_U(layer));
...@@ -50,7 +50,7 @@ static Ref_t createDetector(Detector& lcdd, xml_h e, SensitiveDetector sens) { ...@@ -50,7 +50,7 @@ static Ref_t createDetector(Detector& lcdd, xml_h e, SensitiveDetector sens) {
double layerWidth = 0; double layerWidth = 0;
for(xml_coll_t l(x_layer,_U(slice)); l; ++l) for(xml_coll_t l(x_layer,_U(slice)); l; ++l)
layerWidth += xml_comp_t(l).thickness(); layerWidth += xml_comp_t(l).thickness();
std::cout << layerWidth << " " << 123 <<std::endl;
// Loop over repeat# // Loop over repeat#
for(int i=0; i< repeat; i++) for(int i=0; i< repeat; i++)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment