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

None volume information in ProcessHits 

Forum: Hits, Digitization and Pileup
Date: 18 Oct, 2017
From: <>

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

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

1 None: Re: volume information in ProcessHits   (Asai, Makoto - 18 Oct, 2017)
 Add Message Add Message
to: "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 ]