|Message: Re: physvol name in gdml||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 Zoltan, Thank you very much for your reply! On Feb 13, 2008 10:04 AM, Zoltan <email@example.com> wrote: > According to the schema, you can not assign a name to a physical volume > in the GDML file, so that it has to be generated somehow. Will this feature be added into the schema in the future? > In the current release an empty string is attached to the instantiated > physvol class, Really? According to my experience, the logical volume name is attached to the physvol. Below is part of the "ATree" output of a simple geometry constructed in a gdml file. One can see that the physical volume names are not empty but the same as their logical volume names. # Now printing with verbosity 1 # Format is: PV:n / LV (SD,RO) # Abbreviations: PV = Physical Volume, LV = Logical Volume, # SD = Sensitive Detector, RO = Read Out Geometry. "CoolingLiquid":0 / "CoolingLiquid" "sensitive_Siegfried":0-2 / "sensitive_Siegfried" "TubularIRsheild":3 / "TubularIRsheild" "PlatelikeIRsheild":4 / "PlatelikeIRsheild" "SmallIRsheildHolder":5 / "SmallIRsheildHolder" "SmallIRsheild":6 / "SmallIRsheild" "DetectorHoldingRail":7 / "DetectorHoldingRail" "SiegfriedSupporter":8-10 / "SiegfriedSupporter" "SiegfriedHolder":11-13 / "SiegfriedHolder" G4ASCIITreeSceneHandler::EndModeling Graphics systems deleted. Visualization Manager deleting... And the following code also works for me: G4String volumeName = step->GetPreStepPoint()->GetPhysicalVolume()->GetName(); I can use it to get the physical volume name, which is the same as the logical volume name. I also noticed that an empty string is attached to the physvol only if the physvol is constructed like this: <physvol> <file name="Child.gdml"/> </physvol> The "ATree" output will look like: "":0 / "Child" > but it is subject to change. I am considering including > both the mother volume name and the referenced voulme name into the > name: > > <volume name="Mother"> > <solidref .../> > <materialref .../> > <physvol> > <volumeref ref="Child"/> > </physvol> > </volume> > > In this case the physvol's name will be: "Child_in_Mother". > > What dou you think abaout this idea? I personally prefer the idea that users can have the possibility to assign an unique name to a physical volume by themselves just as they do in Geant4. I myself use the physical volume name to pass information between geometry class and output class. For example, if a physical volume name contains string "sensitive" the hits inside it will be recorded by the output class. Image, if you have two physical volumes coming from the same logical volume, and you want to record the hits only in one of them, then you need different names for them. One is "sensitive_LogVolName", the other is simply "LogVolName". Sorry for my strange request:-p Cheers, Jing
|Inline Depth:||Outline Depth:||Add message:|