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;
69 double energy = aTrack->GetKineticEnergy()/CLHEP::eV;
70 double lambda =
m_hit->GetWaveLength(energy);
73 aTrack->GetDefinition()->GetPDGEncoding(),
76 m_hit->GetPreStepPoint (aStep).x(),
77 m_hit->GetPreStepPoint (aStep).y(),
78 m_hit->GetPreStepPoint (aStep).z(),
79 m_hit->GetPostStepPoint(aStep).x(),
80 m_hit->GetPostStepPoint(aStep).y(),
81 m_hit->GetPostStepPoint(aStep).z(),
82 m_hit->GetPreStepTime (aStep),
83 m_hit->GetPostStepTime (aStep),