Message: angles and tracklengths of (secondary) particles Not Logged In (login)

## angles and tracklengths of (secondary) particles

Forum: Event and Track Management
Date: 16 Aug, 2011
From: Leif Raedel <Leif Raedel>

 Dear community, first of all I am new to geant4 and would really appreciate your help. I am simulating muon propagation through ice. I would like to study the length of tracks and their angle relative to the muon direction (z direction). I attached a sketch (angle_steplength.jpg). The problem I have is that if I histogramm the track length as a function of alpha I find an edge at roughly 60 degrees. ```G4bool IceBlockSD::ProcessHits(G4Step* aStep,G4TouchableHistory* /*ROhist*/) { G4ThreeVector momentumC = aStep->GetPreStepPoint()->GetMomentumDirection(); G4double TheAlpha = momentumC.theta(); G4double stepl = aStep->GetStepLength(); ... }``` This is the part of my code I use to get the track length and the angle. IceBlockSD is my own class derived from G4VSensitiveDetector. If I exclude all angles from the first step of a track the edge vanishes. I added pictures for both cases. I hope I added enough information. Thanks in advance, Leif ``` Attachment: http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2011/08/16/05.37-73217-angle_steplength.jpg http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2011/08/16/06.10-36717-alpha_length.png http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2011/08/16/06.10-58014-pha_length_stepnb_cut.png ```

 Inline Depth: Outline Depth: Add message:

1 Re: angles and tracklengths of (secondary) particles   (Gumplinger Peter - 16 Aug, 2011)
Re: angles and tracklengths of (secondary) particles   (Leif Raedel - 16 Aug, 2011)
Re: angles and tracklengths of (secondary) particles   (Gumplinger Peter - 16 Aug, 2011)
Re: angles and tracklengths of (secondary) particles   (Leif Raedel - 17 Aug, 2011)
Re: angles and tracklengths of (secondary) particles   (Gumplinger Peter - 17 Aug, 2011)
Re: angles and tracklengths of (secondary) particles   (Leif Raedel - 18 Aug, 2011)
Re: angles and tracklengths of (secondary) particles   (Gumplinger Peter - 18 Aug, 2011)
 to: "angles and tracklengths of (secondary) particles"
This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]