G4OCCT 0.1.0
Geant4 interface to Open CASCADE Technology (OCCT) geometry definitions
Loading...
Searching...
No Matches
exampleB1.cc File Reference

G4OCCT version of the Geant4 basic/B1 example. More...

#include "ActionInitialization.hh"
#include "DetectorConstruction.hh"
#include <G4RunManagerFactory.hh>
#include <G4UImanager.hh>
#include <QBBC.hh>
#include <cerrno>
#include <cstdlib>
#include <iostream>

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Detailed Description

G4OCCT version of the Geant4 basic/B1 example.

Demonstrates loading CAD geometry from STEP files via G4OCCTSolid and running a simple 6 MeV gamma simulation in a water phantom. An envelope box of G4_WATER contains two shapes whose boundaries are defined by STEP files and whose materials are specified using G4NistManager names.

Usage (batch): ./exampleB1 run.mac [nthreads]

The run.mac macro initialises the run manager and fires the beam. An optional second argument nthreads (positive integer) sets the number of worker threads before /run/initialize so that multi-threaded behaviour can be exercised (e.g. under ThreadSanitizer).

Definition in file exampleB1.cc.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 53 of file exampleB1.cc.