Message: Multiple, different hits collections filled by the same SD Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Multiple, different hits collections filled by the same SD 

Forum: Hits, Digitization and Pileup
Date: 04 Nov, 2016
From: Florian Dachs <Florian Dachs>


I am simulating scintillation caused by 511keV gamma irradiation in a LYSO crystal and want to record data about the gammas and electrons interacting in the crystal.

My only idea how to do this so far is to tell the SD which is attached to the scintillator to differentiate between gamma and electron hits and fill different hits collections accordingly. But this would require the SD to be able to produce 2 different kinds of hits objects and I don't know how to do that.

I found an entry offering an alternative, where it was suggested to attach an SD to the volume in question which would then in turn call two "secondary" SDs manually which would both process the same hit and extract different data. But these "secondary" SDs must be attached to some volume to work or not? Can I implement an SD without attaching a volume to it?

What I want in the end is two separate HitsCollections containing data about gammas and electrons, respectively. Or rather, I want to create output in the form of 2 separate nTuples containing gamma-data and electron-data, respectively.

Maybe there is a different solution that I've overlooked?

Thanks for any help!

best regards,


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

1 None: Re: Multiple, different hits collections filled by the same SD   (Florian Dachs - 04 Nov, 2016)
 Add Message Add Message
to: "Multiple, different hits collections filled by the same SD"

 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 ]