Message: Creating Multiple SD with one SD class Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Creating Multiple SD with one SD class 

Forum: Hits, Digitization and Pileup
Date: 24 May, 2011
From: Nathan <Nathan>

Hello,

I want to make certain detector components sensitive and get basic information in the hits (just energy and position). But I want to do this separately for about 50 detector components and then have these hits histogrammed. I can successfully do this for one SD by making an SD and Hit Class and a Histogram Manager class. However I want to stream line it so I can use the same SD and Hit Class for 50 separate instances. I have tried to use for loops and index some of the objects but it doesnt seem to work, is there some examples on this or any pointers on how to go about it? I guess the main thing I dont understand is how to successfully make (i.e. index) and access (i.e. access the index) the hit collections when it comes time to histogram.

Cheers, Nathan

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

1 Note: Re: Creating Multiple SD with one SD class   (Nathan - 26 May, 2011)
 Add Message Add Message
to: "Creating Multiple SD with one SD class"

 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 ]