//----------------------------------------------------------------------------- // // File : IceDetectorSD.cc // Purpose : Provide sensitive detector info for ICE detector // Created : 7-JUL-2003 by Steve Kahn // //----------------------------------------------------------------------------- #include "IceDetectorSD.hh" #include "NuCloseParameters.hh" using namespace std; IceDetectorSD::IceDetectorSD(string name) : G4VSensitiveDetector(name) { string HCname = "iceCollection"; collectionName.insert(HCname); } void IceDetectorSD::Initialize(G4HCofThisEvent* HCE) { static int HCID = -1; hitsCollection = new IceScintHitsCollection(SensitiveDetectorName, collectionName[0]); if( HCID < 0) HCID = GetCollectionID(0); HCE->AddHitsCollection(HCID, hitsCollection); } bool IceDetectorSD::ProcessHits(G4Step* aStep, G4TouchableHistory* History) { return true; } void IceDetectorSD::EndOfEvent(G4HCofThisEvent* HCE) {}