Dear all,
I am playing around with silicon micro-strip sensors and as an exercise, I was trying to separate photons from Compton scattering and full absorption peak (photopeak) from the rest of the spectrum.
gamma source: 137Cs
world material: air
sensitive detector: silicon (0.8m* 0.8m* 0.4m)
The part in the stepping action, which is supposed to detect certain photon interactions and save deposited energies:
void MySteppingAction::UserSteppingAction(const G4Step *step)
{
G4LogicalVolume *volume = step->GetPreStepPoint()->GetTouchableHandle()->GetVolume()->GetLogicalVolume();
const MyDetectorConstruction *detectorConstruction = static_cast<const MyDetectorConstruction*> (G4RunManager::GetRunManager()->GetUserDetectorConstruction());
G4LogicalVolume *fScoringVolume = detectorConstruction->GetScoringVolume();
if(volume != fScoringVolume)
return;
G4Track* track = step->GetTrack();
G4double edep = step->GetTotalEnergyDeposit();
if(edep > 0.) { fEventAction->AddEdep(edep);}
const G4ParticleDefinition* particle = track->GetDefinition();
if(particle->GetParticleName() == "gamma") {
G4String processName = step->GetPostStepPoint()->GetProcessDefinedStep()->GetProcessName();
if(processName == "compt") {
G4double edepcompt = step->GetTotalEnergyDeposit();
if(edepcompt > 0.) {fEventAction->AddEdepCompt(edepcompt);
}
else if(processName == "phot") {
G4double edepfap = step->GetTotalEnergyDeposit();
if(edepfap > 0.) {fEventAction->AddEdepFAP(edepfap);}
}
}
}
However, the results are looking incorrect:
A normal-looking 137Cs spectrum (all the particles including photons): clear Compton edge at 0.45 MeV and full absorption peak 0.664 MeV.
Registered photo effect energies.“0” bin has too many entries and no 0.664 MeV peak.
Registered Compton scattering energies. Again, “0” bin has too many entries, and the rest of bin has very low entry counts (<100).
I’m not quite sure what the problem is since every method of separation I found uses the same approach.
I guess that I might be registering the wrong processes.
Many thanks in advance!
Geant4 Version: 4.10.07.p02
Operating System: Ubuntu 20.04.6 LTS
Compiler/Version: GCC 9.4.0
CMake Version: 3.16.3