|Message: Re: Parameterisation and CopyNo||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
Dear Hanwook, Your question and setup are clear. The answer is simple: you can NOT decide what the first copy number in a parameterisation is. They must be numbered from the lowest permitted value (0 or 1) to the copy number ( or max copy number -1 if 0 is first. ) But what you could do is use one parameterisation which describes both the upper and lower layer. I can see two ways of doing this 1) By hand in code for a single parameterisation that handles both cases. It would be less elegant in some ways - it would need to have something like "if" statements for all methods which depended on the layer. 2) A different solution would be to create a 'hierarchy' of parameterisations - one for the upper and one for the lower layer, and then create a composite parameterisation that only knows the number of copies in each one, and dispatches to the correct dependent parameterisation. ( The composite would own the other two, and simply act as a switch between them. ) This would make the code more elegant, but I am not sure whether there would be a performance penalty. Likely some work would be needed (with templates) to avoid virtual function calls, in order to ensure that persformance is not lost. I think and hope that this clarifies how you should be able to create a working program for your setup. Best regards, John Apostolakis On 11.09.17 17:37, Hanwook Bae wrote: > *** Discussion title: Geometry > > Hello, I am trying to use the parameterization class to make my detector > in the Geant4 framework. > > In detail, The detector is consisted of with a number of the same > geometry and has a multi-layered structure. > > However, the bottom layer has different structure slightly, so I divided > the detector into two parts is that the bottom part and upper one. > > The problem is that a sensitive detector that I am using can distinguish > the geometries only by their copy number and I can't modify the SD. > > So, I would like to modify a copy number of the upper parameterization > volume so that a copy number of the first volume in the upper part leads > to the last number of the lower one. > > Then I googled a way to modify a copy number of each volume in > parameterization but I can't find anything. > > Can I modify the copy number as I said? If it is possible, please tell > me the way to modify the copy number. > > Sorry for my poor English. If you can't understand the meaning of my > words, please ask me about it. > > Thank you. > > ------------------------------------------------------------- > Visit this GEANT4 at hypernews.slac.stanford.edu message (to reply or unsubscribe) at: > http://hypernews.slac.stanford.edu/HyperNews/geant4/get/geometry/1547.html
|Inline Depth:||Outline Depth:||Add message:|