Skip to content
Snippets Groups Projects
Commit 08b00e43 authored by Frank Gaede's avatar Frank Gaede
Browse files

- replace one Box with a Trap for debugging ( change l.66 to #ifdef 1)

parent 2ce6691f
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,24 @@ static Ref_t create_element(LCDD& lcdd, xml_h e, SensitiveDetector sens) {
Material sensmat = lcdd.material( x_ladder.materialStr() );
Volume laddervol (layername+"_ladder",ladderbox , suppmat );
#if 0 /// debug: replacing Box with Trap ...
Trap sensbox( zhalf,
0.0,
0.0,
width/2.,
sens_thick/2.,
sens_thick/2.,
0.0,
width/2.,
sens_thick/2.,
sens_thick/2.,
0.0 ) ;
#else
Box sensbox (sens_thick/2.,width/2.,zhalf);
#endif
Volume sensvol (layername+"_sens",sensbox, sensmat );
Box suppbox (supp_thick/2.,width/2.,zhalf);
Volume suppvol (layername+"_supp",suppbox,lcdd.material(x_support.materialStr()));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment