[Gate-users] Error in Gate 3.x.x with the spblurring modul of the digitizer
Sebastien JAN
sebastien.jan at cea.fr
Wed Oct 10 13:02:15 CEST 2007
Hi Samuel,
As I said in a previous mail (if I remember well), you can find the
method in the GateSpblurring class.
So, as you can see in the following lines.......this class assume a
spatial blurring in the x and y directions.....this is why, this class
assume
that you define the depht of interaction of your detector in the Z
direcrion.
If you want to change that, fell free to modify the code for your
specific needs.
##################
void GateSpblurring::ProcessOnePulse(const GatePulse*
inputPulse,GatePulseList& outputPulseList)
{
GatePulse* outputPulse = new GatePulse(*inputPulse);
G4ThreeVector P = inputPulse->GetGlobalPos();
G4double Px = P.x();
G4double Py = P.y();
G4double Pz = P.z();
G4double PxNew = G4RandGauss::shoot(Px,m_spresolution/2.35);
G4double PyNew = G4RandGauss::shoot(Py,m_spresolution/2.35);
G4double PzNew = Pz;
outputPulse->SetGlobalPos(G4ThreeVector(PxNew,PyNew,PzNew));
outputPulseList.push_back(outputPulse);
}
#################
Hope this help
Cheers
Sebastien
More information about the Gate-users
mailing list