Re: [ROOT] TGeoNode & TVirtualMC

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Jun 08 2004 - 12:33:58 MEST


Hi Susan,

I answer to the second part of your question.

We have changed the return type of SetCut and SetProcess from void to Bool_t
(Thanks Ivana)
The changes are now in the CVS head (ROOT 4.00/07) as well as in the
geant3 CVS head and geant4_vmc CVS head.

Rene Brun


Susan Kasahara wrote:
> 
> Hi roottalk,
> I would like to write a class that inherits from TGeoNode and
> place nodes of this derived class in my constructed geometry
> volumes.  I'm having trouble in that there is no TGeoVolume::AddNode
> method to support adding a preexisting node to a volume, e.g.
> there is no AddNode method of the form:
>   TGeoVolume::AddNode(const TGeoNode* node)
> I'm wondering if  its possible to add support for this.
>     My second request is that I'd like to have the TVirtualMC methods
> which configure the MC:
>  virtual void     SetCut(const char* cutName, Double_t cutValue) = 0;
>  virtual void     SetProcess(const char* flagName, Int_t flagValue) = 0;
> return a value which indicates a success or failure for the setting
> of the requested flag/cut.  This would allow the caller to take
> appropriate action if there is failure.
> Thanks for your help,
> -Sue



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:08 MET