Skip to content
Snippets Groups Projects
Commit 3e9daa1a authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

Removing acts ext so we can debug them

parent 9fb0ea9f
No related branches found
No related tags found
No related merge requests found
...@@ -25,9 +25,9 @@ static Ref_t create_detector(Detector& description, xml_h e, SensitiveDetector s ...@@ -25,9 +25,9 @@ static Ref_t create_detector(Detector& description, xml_h e, SensitiveDetector s
string det_name = x_det.nameStr(); string det_name = x_det.nameStr();
DetElement sdet(det_name, det_id); DetElement sdet(det_name, det_id);
Acts::ActsExtension* barrelExtension = new Acts::ActsExtension(); //Acts::ActsExtension* barrelExtension = new Acts::ActsExtension();
barrelExtension->addType("barrel", "detector"); //barrelExtension->addType("barrel", "detector");
sdet.addExtension<Acts::ActsExtension>(barrelExtension); //sdet.addExtension<Acts::ActsExtension>(barrelExtension);
Assembly assembly(det_name); Assembly assembly(det_name);
map<string, Volume> mod_volumes; map<string, Volume> mod_volumes;
...@@ -118,10 +118,10 @@ static Ref_t create_detector(Detector& description, xml_h e, SensitiveDetector s ...@@ -118,10 +118,10 @@ static Ref_t create_detector(Detector& description, xml_h e, SensitiveDetector s
Volume m_env = mod_volumes[m_nam]; Volume m_env = mod_volumes[m_nam];
DetElement lay_elt(sdet, _toString(x_layer.id(), "layer%d"), lay_id); DetElement lay_elt(sdet, _toString(x_layer.id(), "layer%d"), lay_id);
Acts::ActsExtension* layerExtension = new Acts::ActsExtension(); //Acts::ActsExtension* layerExtension = new Acts::ActsExtension();
layerExtension->addType("sensitive cylinder", "layer"); //layerExtension->addType("sensitive cylinder", "layer");
// layerExtension->addValue(10. * Acts::UnitConstants::mm, "r", "envelope"); //// layerExtension->addValue(10. * Acts::UnitConstants::mm, "r", "envelope");
lay_elt.addExtension<Acts::ActsExtension>(layerExtension); //lay_elt.addExtension<Acts::ActsExtension>(layerExtension);
Placements& sensVols = sensitives[m_nam]; Placements& sensVols = sensitives[m_nam];
...@@ -158,8 +158,8 @@ static Ref_t create_detector(Detector& description, xml_h e, SensitiveDetector s ...@@ -158,8 +158,8 @@ static Ref_t create_detector(Detector& description, xml_h e, SensitiveDetector s
PlacedVolume sens_pv = sensVols[ic]; PlacedVolume sens_pv = sensVols[ic];
DetElement comp_elt(mod_elt, sens_pv.volume().name(), module); DetElement comp_elt(mod_elt, sens_pv.volume().name(), module);
comp_elt.setPlacement(sens_pv); comp_elt.setPlacement(sens_pv);
Acts::ActsExtension* moduleExtension = new Acts::ActsExtension("YZX"); //Acts::ActsExtension* moduleExtension = new Acts::ActsExtension("YZX");
comp_elt.addExtension<Acts::ActsExtension>(moduleExtension); //comp_elt.addExtension<Acts::ActsExtension>(moduleExtension);
} }
/// Increase counters etc. /// Increase counters etc.
......
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