LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
testCommon.cc File Reference
#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 ()
 

Function Documentation

int main ( )

Definition at line 45 of file testCommon.cc.

46 {
47  // First construct necessary classes
48  //
49  auto runManager = new G4RunManager;
50  auto physicsList = new FTFP_BERT;
51  runManager->SetUserInitialization(physicsList);
52 
53  // Instantiate all detector construction classes
54  auto detectorConstruction = new DetectorConstruction;
55  auto detectorConstruction0 = new DetectorConstruction0;
56 
57  // Instantiate all physics list classes
58  auto geantinoPhysicsList = new GeantinoPhysicsList();
59 
60  // Instantiate all primary generator actions classes
61  auto gpsPrimaryGeneratorAction = new GpsPrimaryGeneratorAction();
62  auto gunPrimaryGeneratorAction = new GunPrimaryGeneratorAction();
63 
64  // delete all
65  delete detectorConstruction;
66  delete detectorConstruction0;
67  delete geantinoPhysicsList;
68  delete gpsPrimaryGeneratorAction;
69  delete gunPrimaryGeneratorAction;
70 }