Skip to content
Snippets Groups Projects
Commit 4807193c authored by lintao@ihep.ac.cn's avatar lintao@ihep.ac.cn
Browse files

WIP: debug the memory leakage

parent 6d3a2757
No related branches found
No related tags found
No related merge requests found
......@@ -76,6 +76,14 @@ AnExampleDetElemTool::getLV() {
void
AnExampleDetElemTool::ConstructSDandField() {
// DEBUG ONLY: turn off all the SD.
if (not m_SD_enabled) {
warning() << "All the Sensitive Detectors will be disabled by default. " << endmsg;
return;
}
//
// Construct SD using DD4hep.
// Refer to FCCSW/Detector/DetComponents/src/
......
......@@ -31,6 +31,8 @@ private:
// DD4hep XML compact file path
Gaudi::Property<std::string> m_dd4hep_xmls{this, "detxml"};
Gaudi::Property<bool> m_SD_enabled{this, "SDenabled", true};
SmartIF<IGeomSvc> m_geosvc;
ToolHandle<ISensDetTool> m_calo_sdtool;
ToolHandle<ISensDetTool> m_driftchamber_sdtool;
......
......@@ -43,7 +43,7 @@ CalorimeterSensDetTool::createSD(const std::string& name) {
}
}
G4VSensitiveDetector* sd = new CaloSensitiveDetector(name, *dd4hep_geo, is_merge_enabled);
debug() << name << " set to merge true/false = " << is_merge_enabled << endmsg;
warning() << name << " set to merge true/false = " << is_merge_enabled << endmsg;
return sd;
}
......
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