Message: Re: Strange behavior of G4VNestedParameterisation Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Strange behavior of G4VNestedParameterisation 

Forum: Geometry
Re: Question Strange behavior of G4VNestedParameterisation (Gautier Michael)
Re: None Re: Strange behavior of G4VNestedParameterisation (Joseph Perl)
Date: 01 Dec, 2011
From: John Apostolakis <John Apostolakis>

--_000_D2FD0909639D44909172E2782869C414cernch_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I confirm Joseph's answer.  To create a volume, you do not need to call Com=
puteMaterial - you principally call it when you are inside the volume durin=
g tracking.

One small thing to note:
  - At the start of the simulation we scan volumes for their material.  Thi=
s would normally mean that we would scan all the values of a Parameterisati=
on.

However this would be computationally expensive and difficult to implement =
for NestedParameterisation - so we added a new method which get all the mat=
erials without doing a scan.

John

John Apostolakis
Email: john.apostolakis@cern.ch<mailto:john.apostolakis@cern.ch>
Office Tel:  +41-22-767-7239




On Nov 30, 2011, at 6:10 PM, Joseph Perl wrote:


*** Discussion title: Geometry

I don't see a problem here.

With the first macro, you are calling visualization to draw your entire
geometry. Visualization asks each voxel for its material as it draws it.

With the second macro, you are not calling visualization. Thus the only
voxels that get asked for their material are the ones that are actually
hit by a track.

-------------------------------------------------------------
Visit this GEANT4 at hypernews.slac.stanford.edu<http://hypernews.slac.stan=
ford.edu> message (to reply or unsubscribe) at:
http://hypernews.slac.stanford.edu/HyperNews/geant4/get/geometry/1157/1.htm=
l


--_000_D2FD0909639D44909172E2782869C414cernch_
Content-Type: text/html; charset="iso-8859-1"
Content-ID: <2DBCDC13D4DF124C926425557069A6E6@cernxchg.cern.ch>
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
</head>
<body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-lin=
e-break: after-white-space; ">
I confirm Joseph's answer. &nbsp;To create a volume, you do not need to cal=
l ComputeMaterial - you principally call it when you are inside the volume =
during tracking.
<div><br>
</div>
<div>One small thing to note:</div>
<div>&nbsp; - At the start of the simulation we scan volumes for their mate=
rial. &nbsp;This would normally mean that we would scan all the values of a=
 Parameterisation.</div>
<div><br>
</div>
<div>However this would be computationally expensive and difficult to imple=
ment for NestedParameterisation - so we added a new method which get all th=
e materials without doing a scan.</div>
<div><br>
<div apple-content-edited=3D"true"><span class=3D"Apple-style-span" style=
=3D"border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica;=
 font-style: normal; font-variant: normal; font-weight: normal; letter-spac=
ing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; tex=
t-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-s=
pacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertica=
l-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size=
-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span c=
lass=3D"Apple-style-span" style=3D"border-collapse: separate; color: rgb(0,=
 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; f=
ont-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2=
; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-s=
pace: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spaci=
ng: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-=
effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0p=
x; font-size: medium; ">
<div style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line=
-break: after-white-space; ">
<div>
<div>John</div>
<div><br>
</div>
<div>
<div apple-content-edited=3D"true"><span class=3D"Apple-style-span" style=
=3D"border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica;=
 font-style: normal; font-variant: normal; font-weight: normal; letter-spac=
ing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; tex=
t-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-s=
pacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertica=
l-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size=
-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">
<div>John Apostolakis</div>
<div>Email: <a href=3D"mailto:john.apostolakis@cern.ch">john.apostolakis@ce=
rn.ch</a></div>
<div>Office Tel: &nbsp;&#43;41-22-767-7239</div>
<div><br>
</div>
</span></div>
</div>
</div>
</div>
</span><br class=3D"Apple-interchange-newline">
</span><br class=3D"Apple-interchange-newline">
</div>
<br>
<div>
<div>On Nov 30, 2011, at 6:10 PM, Joseph Perl wrote:</div>
<br class=3D"Apple-interchange-newline">
<blockquote type=3D"cite">
<div><br>
*** Discussion title: Geometry<br>
<br>
I don't see a problem here.<br>
<br>
With the first macro, you are calling visualization to draw your entire<br>
geometry. Visualization asks each voxel for its material as it draws it.<br=
>
<br>
With the second macro, you are not calling visualization. Thus the only<br>
voxels that get asked for their material are the ones that are actually<br>
hit by a track.<br>
<br>
-------------------------------------------------------------<br>
Visit this GEANT4 at <a href=3D"http://hypernews.slac.stanford.edu">hyperne=
ws.slac.stanford.edu</a> message (to reply or unsubscribe) at:
<br>
<a href=3D"http://hypernews.slac.stanford.edu/HyperNews/geant4/get/geometry=
/1157/1.html">http://hypernews.slac.stanford.edu/HyperNews/geant4/get/geome=
try/1157/1.html</a>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</body>
</html>

--_000_D2FD0909639D44909172E2782869C414cernch_--

 Add Message Add Message
to: "Re: Strange behavior of G4VNestedParameterisation"

 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 ]