Message: Re: How to give different names to the copies of Physical volume Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Idea Re: How to give different names to the copies of Physical volume 

Forum: Geometry
Re: Question How to give different names to the copies of Physical volume (Amit Kumar)
Date: 05 May, 2015
From: C Mos <C Mos>

An idea is to assign the same name to all your volumes and then in your stepping action you check for the name first followed by a check in the copy number i:

If (name_of_interest) 
{
    if(copy_no_of_interest)
    {
       //Do something with physVolumen
    }
}

Keep in mind you want to work with integer comparisons instead of string comparisons since the former is faster. In other words, I always look into minimizing operation with strings.

I hope this helps,

C Mos

 Add Message Add Message
to: "Re: How to give different names to the copies of Physical volume"

 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 ]