Message: Re: volume information in ProcessHits Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: volume information in ProcessHits 

Forum: Hits, Digitization and Pileup
Re: None volume information in ProcessHits
Date: 18 Oct, 2017
From: Makoto Asai <Makoto Asai>

Hi Maurizio,
You may use the pointer of the physical volume if the volume is so-called
placement volume.
You may use the copy number of the physical volume if your sensitive
detector is assigned to only one kind of logical volume (and its physical
volumes are parameterized or replicated).
Hope this helps,
Makoto

On 10/18/17, 5:25 AM, "ungaro@jlab.org" <ungaro@jlab.org> wrote:

>
>*** Discussion title: Hits, Digitization and Pileup
>
>Can I associate some information to a physical volume and retrieve it
>later in sensitiveDetector::ProcessHits?
>
>Currently I'm achieving this by "name", using a map<string, infoIWant>
>in sensitiveDetector, see below. But I would rather not use strings and
>map of strings.
>
> G4VTouchable* TH =  (G4VTouchable*)
>aStep->GetPreStepPoint()->GetTouchable();
> string name =  TH->GetVolume(0)->GetName();
> infoIWant = mapOfInfoPerDetector[name];
>
>Thanks, Maurizio
>
>-------------------------------------------------------------
>Visit this GEANT4 at hypernews.slac.stanford.edu message (to reply or
>unsubscribe) at: 
>http://hypernews.slac.stanford.edu/HyperNews/geant4/get/hitsdigits/323.htm
>l 


 [ MIME part of type application/ms-tnef stripped ]

 Add Message Add Message
to: "Re: volume information in ProcessHits"

 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 ]