[Gate-users] How to score energy deposition in each crystal with ascii or root outputs?

Wei ZHAO zhihuaigu at 163.com
Mon Sep 28 15:35:21 CEST 2015


Dear BestSoman,


You can enable ascii or root output first, shown as below:

/gate/output/root/enable

/gate/output/root/setFileName xxxx.dat

/gate/output/root/setRootHitFlag 0

/gate/output/root/setRootSinglesFlag 1

/gate/output/root/setRootNtupleFlag 0

/gate/output/verbose 2


Then retrieve energy deposition in each crystal from the root or ascii file using a script. The following sample code is a demo:


Float_t* data= new Float_t[size];

data[pixelID]+=energy;


Hope this would be helpful.

Best,

Wei 


On 9/28/2015 6:00 PM, gate-users-request at lists.opengatecollaboration.org wrote:

----------------------------------------------------------------------

Message: 1
Date: Mon, 28 Sep 2015 07:27:30 +0000 (UTC)
From: "S. Saghamanesh" <s.saghamanesh at yahoo.com>
To: Gate-users <gate-users at lists.opengatecollaboration.org>
Subject: [Gate-users] How to score energy deposition in each crystal
	with ascii or root outputs?
Message-ID:
	<1449478000.1761918.1443425250856.JavaMail.yahoo at mail.yahoo.com>
Content-Type: text/plain; charset="utf-8"

Dear all,
I want to calculate the energy deposition in each pixel of my detector. But what I obtain by an ascii (or root) output is just the global position (XYZ) and energy deposition of a hit (or single). Does anybody know how I can discern the energy deposition in each pixel (i.e. each crystal) in my output file? There must be a way.
I know that macros can give me that kind of pixelated information, but I also need to score the time of flight of a hit and I think no actor can give me the time information. So I have to get back to output data. 

Thanks for your comments. 

BestSoman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20150928/a603a4a0/attachment.html>


More information about the Gate-users mailing list