Dear Experts,
I have been working on a dE-E particle detector setup. The dE detector is made up of silicon with a radius of 4mm and the second E detector is made up of Ge, with an 8 mm radius placed behind the dE detector. I have used an isotropic source at a distance of 10 cm. I was trying to get the energy deposition in both of the detectors separately. But for the second detector, I need to record only those particles which have passed through the first detector. All the other particle events which directly fall into the second detector should be neglected.
I have made changes in my stepping action in such a way that:
if (step->GetTrack()->GetDefinition()->GetPDGCharge() != 0. && volume == fDetConstruction->GetAbsorberPV()) {
stepLength = step->GetStepLength();
if (volume == fDetConstruction->GetAbsorberPV()) {
fEventAction->AddAbs(edep, stepLength);
}
// If the particle has passed through the absorber, record its information for the gap volume
if (volume == fDetConstruction->GetGapPV()) {
fEventAction->AddGap(edep, stepLength);
But in the result, there is no energy deposition in the second detector. ( I am using a modified form of example B4a. Here absorerPV is the first detector and gapPV is the second detector.). Thanks a lot in advance for your time and interest.
_Geant4 Version:_Geant4 version 11.1.2
_Operating System:_Ubuntu 22.04
_Compiler/Version:_gcc 11.4.0
_CMake Version:_3.22.1