Message: Re: Storing Photon's kinetic energy Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Storing Photon's kinetic energy 

Forum: Event and Track Management
Re: Question Storing Photon's kinetic energy (Antonio Magalhaes)
Date: 02 Sep, 2009
From: michel maire <michel maire>

On Wed, 02 Sep 2009 12:40:48 GMT, Antonio Magalhaes wrote:
> Hi!
> 
> I'm trying to analyze the kinetic energy of some photons that pass
> through a region defined as SD. However, I am not able to write the
> right code for processHits using G4Track to call the GetKineticEnergy()
> function. I looked at the example AnaEx01, but the file only uses
> G4Step. Can someone show me how to do this part of code?

  see extended/electromagnetic/TestEm5/TrackingAction.cc

> 
> After that I want to store this data in a file hbook, someone knows a
> simple way to do it? The file AnalysisManager.cc from AnaEx01 is the
> only way? Thank you very much.
> 

  To book and fill 1D histos, TestEm4 is the simplest of the TestEm serie : see RunAction.hh and .cc

  In others TestEm, HistoManager is a more general class to handle histograms.

      Michel

 Add Message Add Message
to: "Re: Storing Photon's kinetic energy"

 Subscribe Subscribe

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 ]