VMC Examples Version 6.6
Loading...
Searching...
No Matches
Ex03RunConfiguration2.cxx
Go to the documentation of this file.
1//------------------------------------------------
2// The Virtual Monte Carlo examples
3// Copyright (C) 2007 - 2014 Ivana Hrivnacova
4// All rights reserved.
5//
6// For the licensing terms see geant4_vmc/LICENSE.
7// Contact: root-vmc@cern.ch
8//-------------------------------------------------
9
10/// \file Ex03RunConfiguration2.cxx
11/// \brief Implementation of the Ex03RunConfiguration2 class
12///
13/// Geant4 ExampleN03 adapted to Virtual Monte Carlo \n
14///
15/// \author I. Hrivnacova; IPN, Orsay
16
17#include "Ex03RunConfiguration2.h"
18//#include "ExN03PrimaryGeneratorAction.hh"
19//#include "ExN03DetectorConstruction.hh"
20
21#include "TG4ComposedPhysicsList.h"
22#include "TG4SpecialPhysicsList.h"
23
24#include <QGSP_BERT.hh>
25
26//_____________________________________________________________________________
28 const TString& userGeometry, const TString& specialProcess)
29 : TG4RunConfiguration(userGeometry, "FTFP_BERT", specialProcess)
30{
31 /// Standard constructor
32 /// \param userGeometry Selection of geometry input and navigation
33 /// \param specialProcess Selection of the special processes
34 ///
35 /// The physics physics list selection ("FTFP_BERT") is not used,
36 /// \see More on the available option in class TG4RunConfiguration:
37 /// http://ivana.home.cern.ch/ivana/g4vmc_html/classTG4RunConfiguration.html
38}
39
40//_____________________________________________________________________________
45
46//
47// protected methods
48//
49
50//_____________________________________________________________________________
52{
53 /// Override the default physics list with user defined physics list;
54 /// LHEP_BERT physics list should be replaced with user own physics list
55
56 TG4ComposedPhysicsList* builder = new TG4ComposedPhysicsList();
57
58 // User physics list
59 G4cout << "Adding user physics list " << G4endl;
60 builder->AddPhysicsList(new QGSP_BERT());
61
62 G4cout << "Adding SpecialPhysicsList " << G4endl;
63 builder->AddPhysicsList(
64 new TG4SpecialPhysicsList(fSpecialProcessSelection.Data()));
65
66 return builder;
67}
68
69/*
70//_____________________________________________________________________________
71G4VUserDetectorConstruction* Ex03RunConfiguration2::CreateDetectorConstruction()
72{
73/// Create detector construction
74
75 return new ExN03DetectorConstruction();
76}
77
78
79//_____________________________________________________________________________
80G4VUserPrimaryGeneratorAction* Ex03RunConfiguration2::CreatePrimaryGenerator()
81{
82/// Create primary generator
83
84 return new ExN03PrimaryGeneratorAction();
85}
86*/
virtual G4VUserPhysicsList * CreatePhysicsList()
Ex03RunConfiguration2(const TString &userGeometry, const TString &specialProcess="stepLimiter")