Re: modifying geometries after gGeoManager->CloseGeometry()

From: Andrei Gheata <Andrei.Gheata_at_cern.ch>
Date: Mon, 4 Jul 2011 09:38:17 +0200

Hi Akira,

There is no "OpenGeometry", but the task can be done, depending if the volume that you need to change is replicated or not.

If you have a single volume positioned once in a path: /A_1/B_2/MyVol_1, you can do:

geom->CloseGeometry();
TGeoPhysicalNode *pn = new TGeoPhysicalNode("/A_1/B_2/MyVol_1")

while (!done) {

    ... simulation code
    TGeoPcon *optimized = new TGeoPcon(...)     pn->Align(0, optimized);
}

In case the volume is replicated it is more complicated.

Cheers,
Andrei

On 07/02/2011 07:16 AM, OKUMURA, Akira wrote:
> Hello ROOTers,
>
> I would like to know how to modify the shape of a geo volume after calling gGeoManager->CloseGeometry(). What I want to do is to optimize the shape of a TGeoPgon to obtain the maximum collection efficiency of a light guide in my simulation. In the optimization process, I would like to tweak the shape the TGeoPgon slightly but other volume will not be changed.
>
> Do I have to re-build all volumes again? or is there any way to change the shape after closing the geometry as following example?
>
> gGeoManager->CloseGeometry();
> (some simulation code here)
> gGeoManager->ReopenGeometry(); // I could not a similar method
> myPgonVolume->DefineSection(i, z, rmin, rmax); // change the shape of a Pgon
> gGeoManager->CloseGeometry(); // close again
> (some simulation code here again)
>
> Regards,
>
> --
> OKUMURA, Akira oxon@{astro.isas.jaxa.jp,stanford.edu}
> Institute of Space and Astronautical Science (ISAS/JAXA)
> Now at KIPAC/SLAC/Stanford
> Varian Physics #306, 382 Via Pueblo Mall, MC 4060
> Stanford, CA 94305-4060
> TEL 650-736-0971/FAX 650-724-5065
> Skype : okumura.akira
>
Received on Mon Jul 04 2011 - 09:38:23 CEST

This archive was generated by hypermail 2.2.0 : Mon Jul 04 2011 - 11:50:02 CEST