Hi, I am new and am trying to learn geant, I am producing a radioactive decay for Bi-207 making a simple geometry and placing a Bismuth source at location [0.0,0.0,0.0] but when I try to decay it unexpectedly decay at origin (0.0,0.0,0.0), I feel like I am missing on something small but crucial but I am not being able to debug the issue.
G4Tubs* solidTiFoil = new G4Tubs("TiFoil", 0., biRadius+biThickness, 0.5 * biThickness, 0., 360. * deg);
G4LogicalVolume* logicTiFoil = new G4LogicalVolume(solidTiFoil, matTi, "TiFoil");
new G4PVPlacement(nullptr, biPosition, logicTiFoil, "TiFoil", logicCathode, false, 0, true);
G4Tubs* solidBi207 = new G4Tubs("Bi207Source", 0., biRadius, 0.5 * biThickness, 0., 360. * deg);
G4LogicalVolume* logicBi207 = new G4LogicalVolume(solidBi207, matBi207, "Bi207Source");
new G4PVPlacement(nullptr, biPosition, logicBi207, "Bi207Source", logicTiFoil, false, 0, true);
To debug the issue I try to replace the source position in my PrimaryGenerator.cc but it still did not allow made any difference to where the radioactivity is occurring.
particleSource->SetParticleDefinition(GetBi207());
particleSource->SetParticlePosition(G4ThreeVector(0, 0, -3.25*cm));
particleSource->GeneratePrimaryVertex(anEvent);
While Debugging: Debugging117 Cathode Position: -32.495 Anode Position: 32.5 Bi207 position: (0,0,0)
This position is with respect to mother volume which is at cathode position
_Geant4 Version:11.3.0
_Operating System:MacOS Sequoia 15.3
_Compiler/Version: Apple clang version 16.0.0
_CMake Version:3.29.5