Cs-137 Line Source

I have a detector to get the gamma spectrum from a Cs-137 (662 KeV) point source. But, now I have to change my point source into a line source (at least 2 cm long line source)? Can you help me with how to set up the line source and is there any relevant similar examples?

In PrimaryGeneratorAction, something like :
G4double x = x1 + (x2 - x1)*G4UniformRand() ;

1 Like

hello, I want to define point source particle gun of gamma ? can you help me ?

See the documentation for the General Particle Source (also, in future please post a new question rather than reviving an old or semi-unrelated thread).

1 Like

Ok, Thank you very much.

examples/extended/electromagnetic/TestEm4/src/PrimaryGeneratorAction.cc

1 Like

It is very usefull for me. Thank you very much!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.