Message: Small annoyance - Message not necessary in G4SPSPosDistribution.cc Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Small annoyance - Message not necessary in G4SPSPosDistribution.cc 

Forum: Event and Track Management
Date: 29 Jun, 2007
From: Kareem Kazkaz <Kareem Kazkaz>

Hello there.

I have encountered a situation where I want to change the /gps/pos/confine volume on the
fly. Specifically, I want to "unconfine" the particle generation volume. From the documentation,
this is done by invoking the "/gps/pos/confine" command either 1) without a parameter (the
default is set to "NULL"), or 2) by explicitly including the NULL volume as a parameter (e.g.,
"/gps/pos/confine NULL").

Unfortunately, G4SPSPosDistribution.cc subsequently looks for a volume called "NULL" in the
ConfineSourceToVolume method, and when that doesn't find the volume, it prints out a
message saying so...and then sets the volume to "NULL". I am changing the particle creation
volume in the middle of a run in my simulation, and thus many, many of these messages are
printed out.

I would like it if ConfineSourceToVolume checked to see if the volume is already set to either ""
or "NULL" before looking for the volume. If this condition holds true, don't print out the
message.

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

 Add Message Add Message
to: "Small annoyance - Message not necessary in G4SPSPosDistribution.cc"

 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 ]