Message: Re: Optical Photon spectrum in two scintillators Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Optical Photon spectrum in two scintillators 

Forum: Processes Involving Optical Photons
Re: Sad Optical Photon spectrum in two scintillators (Amit Kumar)
Date: 24 Jun, 2014
From: Gumplinger Peter <Gumplinger Peter>

On Fri, 20 Jun 2014 11:55:51 GMT, Amit Kumar wrote:

> Means if vertex position of optical photon is at x < -2.0mm then it will
> count in spectrum of CsI and if x> 0.0 then it will count in spectrum of
> GOS. Is it true??

Yes, it should. Now, it's still probably better if you coded with aTrack->GetLogicalVolumeAtVertex, then get the LogicalVolume name and compared that to the names of the LogicalVolumes for your GOS and CsI. Mind you, this is a string comparison and thus slow. You could code it such that you don't compare string names but instead compare the pointers. For this you'd have to find the pointers (once in the StackingAction) with:

G4LogicalVolume* LV = G4LogicalVolumeStore::GetInstance()->GetVolume("CsI");

(assuming CsI is the name of the CsI logical volume).

> But after simulation I get the same spectrum with same
> value of Counter1 and Counter2.

Don't know....you have a bug somewhere ... probably in DetectorConstruction.

 Add Message Add Message
to: "Re: Optical Photon spectrum in two scintillators"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews