Message: Re: The better place to GetCollectionID() Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: The better place to GetCollectionID() 

Keywords: GetCollectionID()
Forum: Hits, Digitization and Pileup
Re: Question The better place to GetCollectionID() (Kazuyoshi Furutaka)
Date: 08 Mar, 2005
From: Makoto Asai <Makoto Asai>

It actually depends on the user's application.

 Note that construction of sensitive detectors (and thus 
registration of hits collections to SDManager) takes place 
when the user issues RunManager::Initialize() method or 
/run/initialize UI command.

 Thus, in case user's EventAction class is instantiated
before Runmanager::Initialize(), GetCollectionID() should
NOT be in the constructor of EventAction. While, if the user
has nothing to do to Geant4 before RunManager::Initialize(),
this method can be hard-coded in the main() before the
instantiation of EventAction (like in A01 example), so that
GetCollectionID() could be in the constructor.

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

1 Ok: Re: The better place to GetCollectionID()   (Kazuyoshi Furutaka - 09 Mar, 2005)
 Add Message Add Message
to: "Re: The better place to GetCollectionID()"

 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 ]