20 #include "G4VProcess.hh"
21 #include "G4OpticalPhoton.hh"
24 #include "CLHEP/Units/PhysicalConstants.h"
29 : G4VSensitiveDetector(
name )
30 , m_HitColl( hitCollectionName )
48 G4cout <<
"LUCID_SensitiveDetector::ProcessHits - Begin" << G4endl;
50 G4Track* aTrack = aStep->GetTrack();
52 if (aTrack->GetDefinition() != G4OpticalPhoton::OpticalPhotonDefinition())
return false;
56 G4cout <<
"LUCID_SensitiveDetector::ProcessHits(): There is an OpticalPhoton " << G4endl;
59 aTrack->SetTrackStatus(fKillTrackAndSecondaries);
61 if (aTrack->GetCreatorProcess()->GetProcessName() !=
"Cerenkov")
return false;
65 G4cout <<
"LUCID_SensitiveDetector::ProcessHits(): It is from a Cerenkov process " << G4endl;
73 aTrack->GetDefinition()->GetPDGEncoding(),