Message: Re: Trouble setting up sim based on example B1 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Trouble setting up sim based on example B1 

Forum: Documentation and Examples
Re: Question Trouble setting up sim based on example B1 (Philip McGeachy)
Date: 31 Jan, 2013
From: Ivana Hrivnacova <Ivana Hrivnacova>

The purpose of the *.in macros is explained in the Applicattion Developers Guide:
http://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/ForApplicationDeveloper/html/ch10s02.html
chapter 10.2.2.:
"The exampleBN.in macros are also supposed to be run in a batch mode and their
outputs from the Geant4 system testing are available in the files exampleBN.out."

The CMake configuration file is defined in such a way that the example can
executed from the build directory, that's the macro files and for convenience 
also the .out files are copied from the example source directory here.
In your application, you should customize this block in your CMakeLists.txt:
#----------------------------------------------------------------------------
# Copy all scripts to the build directory, i.e. the directory in which we
# build B1. This is so that we can run the executable directly because it
# relies on these scripts being in the current working directory.
#
set(EXAMPLEB1_SCRIPTS
  exampleB1.in
  exampleB1.out
  init.mac
  init_vis.mac
  run1.mac
  run2.mac
  vis.mac
  )
If you do not want this feature is your application you can simply remove this
code from your CMake file.

Best regards,
 

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

1 Question: Re: Trouble setting up sim based on example B1   (Philip McGeachy - 31 Jan, 2013)
(_ None: Re: Trouble setting up sim based on example B1   (Ben Morgan - 31 Jan, 2013)
 Add Message Add Message
to: "Re: Trouble setting up sim based on example B1"

 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 ]