Message: Re: physical properties of the detector Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: physical properties of the detector 

Forum: Event and Track Management
Re: Question physical properties of the detector (Maciej Sznajder)
Date: 26 Oct, 2010
From: Michael H. Kelsey <Michael H. Kelsey>

You can, but your job will look kind of fragmented and it will probably be slow. I don't know of an example where this is done; what I describe below is based on the documentation, not a working application.

Set up your sensitive detectors, scorers, etc. to collect the data you need to compute the changes to your material. Set up an end-of-run action to use the collected data to compute new material properties. In your macro, do "beamOn 100" (or however many events you find should produce a measurable effect). At the end of run, you should create a new material with the new properties, and then call SetMaterial() for your logical volume with the new material. Then do the next "beamOn 100", and so on.

There has been some discussion of supporting "parametric materials" (where the density, temperature, etc. can vary without having to create new instances) in a future version of GEANT4, but that does not exist yet. When it does exist, it should also be useful for this sort of situation without having to do the creating.

-- Michael Kelsey

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Ok: Re: physical properties of the detector   (Maciej Sznajder - 27 Oct, 2010)
2 Feedback: Re: physical properties of the detector   (Gumplinger Peter - 27 Oct, 2010)
1 None: Re: physical properties of the detector   (Mike Kelsey - 27 Oct, 2010)
2 Question: Re: physical properties of the detector   (Maciej Sznajder - 05 Nov, 2010)
1 None: Re: physical properties of the detector   (Michael H. Kelsey - 05 Nov, 2010)
... 12 Message(s)
3 Question: Re: physical properties of the detector   (Maciej Sznajder - 05 Nov, 2010)
 Add Message Add Message
to: "Re: physical properties of the detector"

 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 ]