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

- add a surface to reflected DetElement directly

   ( copy did not work ) 
parent 9aceabfc
No related branches found
No related tags found
No related merge requests found
...@@ -245,6 +245,12 @@ static Ref_t create_element(LCDD& lcdd, xml_h e, SensitiveDetector sens) { ...@@ -245,6 +245,12 @@ static Ref_t create_element(LCDD& lcdd, xml_h e, SensitiveDetector sens) {
// needs a copy function for DetElement // needs a copy function for DetElement
// DetElement rdet(lcdd,part_nam+"_negativ",px_det.typeStr(),px_det.id()+1); // DetElement rdet(lcdd,part_nam+"_negativ",px_det.typeStr(),px_det.id()+1);
DetElement rdet = part_det.clone(part_nam+"_negativ",px_det.id()+1); DetElement rdet = part_det.clone(part_nam+"_negativ",px_det.id()+1);
if(part_det.id()== 0){
VolPlane surf( part_vol , SurfaceType( SurfaceType::Helper ) , px_tube.zhalf() , x_tube.zhalf(), u , n , v ) ;
volSurfaceList( rdet )->push_back( surf ) ;
}
rdet.setPlacement(part_phv2); rdet.setPlacement(part_phv2);
tpcData->endplate2 = rdet; tpcData->endplate2 = rdet;
tpc.add(rdet); tpc.add(rdet);
......
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