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

WIP: now, use the final CaloSD.

parent 0e394063
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,8 @@ CaloSensitiveDetector::Initialize(G4HCofThisEvent* HCE) {
G4bool
CaloSensitiveDetector::ProcessHits(G4Step* step, G4TouchableHistory*) {
// std::cout << "CaloSensitiveDetector::ProcessHits" << std::endl;
dd4hep::sim::Geant4StepHandler h(step);
dd4hep::Position pos = 0.5 * (h.prePos() + h.postPos());
HitContribution contrib = dd4hep::sim::Geant4Hit::extractContribution(step);
......
......@@ -2,7 +2,7 @@
#include "G4VSensitiveDetector.hh"
#include "DetSimSD/DDG4SensitiveDetector.h"
#include "DetSimSD/CaloSensitiveDetector.h"
#include "DD4hep/Detector.h"
......@@ -35,7 +35,7 @@ CalorimeterSensDetTool::createSD(const std::string& name) {
dd4hep::Detector* dd4hep_geo = m_geosvc->lcdd();
G4VSensitiveDetector* sd = new DDG4SensitiveDetector(name, *dd4hep_geo);
G4VSensitiveDetector* sd = new CaloSensitiveDetector(name, *dd4hep_geo);
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