|Message: Re: Access to HitsCollection in EndOfRunAction||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
Hi Sylvia, You can not have "for free" the dose accumulation in your sensitive detectors all along a run : a run represents a sequence of events and sensitive detectors are refreshed at the end of each event (ie, their hits are cleared). But you have several ways to do make what you need working. For example (maybe there are cleaner solutions), you can decide to not have hits and hit collections (but still have sensitive detector). You can initialize an array in you "BeginOfRunAction", each element of which represents a voxel. Then, assuming each voxel has some ID number associated with it, in your sensitive detector code, get the current voxel number and accumulate the energy deposition in the corresponding array element. This array will then "survive" all along your run and the cells will contain the total energy deposited over all events of this run. Hope this helps. Marc Sylvia Studeny wrote: >*** Discussion title: Hits, Digitization and Pileup >Email replies to PublicHyperNews@slac.stanford.edu must include: > In-Reply-To: <"/hitsdigits/107"@geant4-hn.slac.stanford.edu> > Subject: ...change this to be about your reply. > >Hi, >I calculate the dose distibution in a voxeliesed Phantom. (To simplify, I > took a cube consisting of little voxels first). I collect the dose in a > HitsCollection-object. >I had the idea to write all the data of the HitsCollection in a ITuple. >I wanted to do this in EndOfRunAction, because there I'm sure all the >calculations are finished. Unfortunately I have many problems accessing >the HitsCollection there, because there are no Events left and the methode >described in your Application-Developers-Manual (4.4.4 G4SDManager) doesn't >work. >Can you tell me if my idea is working at all and how this can be achieved >or if there is an example in which something simelar is done? (I looked >there but found nothing fitting) >Thanks a lot >Sylvia > > >
|Inline Depth:||Outline Depth:||Add message:|