Loading...
Searching...
No Matches
Functions
testCommon.cc File Reference

Test program for the common classes. More...

#include "DetectorConstruction.hh"
#include "DetectorConstruction0.hh"
#include "GeantinoPhysicsList.hh"
#include "GpsPrimaryGeneratorAction.hh"
#include "GunPrimaryGeneratorAction.hh"
#include "G4RunManager.hh"
#include "FTFP_BERT.hh"

Go to the source code of this file.

Functions

int main ()
 

Detailed Description

Test program for the common classes.

Definition in file testCommon.cc.

Function Documentation

◆ main()

int main ( )

Definition at line 47 of file testCommon.cc.

48{
49 // First construct necessary classes
50 //
51 auto runManager = new G4RunManager;
52 auto physicsList = new FTFP_BERT;
53 runManager->SetUserInitialization(physicsList);
54
55 // Instantiate all detector construction classes
56 auto detectorConstruction = new DetectorConstruction;
57 auto detectorConstruction0 = new DetectorConstruction0;
58
59 // Instantiate all physics list classes
60 auto geantinoPhysicsList = new GeantinoPhysicsList();
61
62 // Instantiate all primary generator actions classes
63 auto gpsPrimaryGeneratorAction = new GpsPrimaryGeneratorAction();
64 auto gunPrimaryGeneratorAction = new GunPrimaryGeneratorAction();
65
66 // delete all
67 delete detectorConstruction;
68 delete detectorConstruction0;
69 delete geantinoPhysicsList;
70 delete gpsPrimaryGeneratorAction;
71 delete gunPrimaryGeneratorAction;
72}
Simple detector construction with only a world volume.
Simple detector construction with a box volume placed in a world.
Physics list with geantino and charged geantino only.
The primary generator class with general particle source.
The primary generator class with particle gun.

Applications | User Support | Publications | Collaboration