Message: Re: GDML / "partial" usage Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: GDML / "partial" usage 

Keywords: GDML configuration change schema
Forum: Geometry
Re: Question GDML / "partial" usage (Kay Ulbrich)
Date: 09 Apr, 2008
From: Jeremy McCormick <Jeremy McCormick>

You can get at all the stored definitions using the expression evaluator.

GDMLExpressionEvaluator* calc = GDMLProcessor::GetInstance()->GetEvaluator(); double val = calc->Eval("myvariable");

There is no real way to get a list of the variables defined by GDML, but I should think you'd need to know the names anyways if you're using the values in code rather than just within the GDML file.

I'm afraid that right now you'd have to define a setup, or it will likely crash. However, it should be pretty straightforward to use the parser and then just throw away the world volume it gives you.

Materials and the aforementioned evaluator should be statically accessible, materials via Geant4's standard interfaces and the evaluator via G4Processor::GetInstance()->GetEvaluator().

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

 Add Message Add Message
to: "Re: GDML / "partial" usage"

 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 ]