56 G4cout <<
"LUCID_SensitiveDetector::ProcessHits - Begin" << G4endl;
58 G4Track* aTrack = aStep->GetTrack();
60 if (aTrack->GetDefinition() != G4OpticalPhoton::OpticalPhotonDefinition())
return false;
64 G4cout <<
"LUCID_SensitiveDetector::ProcessHits(): There is an OpticalPhoton " << G4endl;
67 aTrack->SetTrackStatus(fKillTrackAndSecondaries);
69 if (aTrack->GetCreatorProcess()->GetProcessName() !=
"Cerenkov")
return false;
73 G4cout <<
"LUCID_SensitiveDetector::ProcessHits(): It is from a Cerenkov process " << G4endl;
77 double energy = aTrack->GetKineticEnergy()/CLHEP::eV;
78 double lambda =
m_hit->GetWaveLength(energy);
81 aTrack->GetDefinition()->GetPDGEncoding(),
84 m_hit->GetPreStepPoint (aStep).x(),
85 m_hit->GetPreStepPoint (aStep).y(),
86 m_hit->GetPreStepPoint (aStep).z(),
87 m_hit->GetPostStepPoint(aStep).x(),
88 m_hit->GetPostStepPoint(aStep).y(),
89 m_hit->GetPostStepPoint(aStep).z(),
90 m_hit->GetPreStepTime (aStep),
91 m_hit->GetPostStepTime (aStep),