source: trunk/examples/advanced/Tiara/source/tiara/include/TiaraSim.hh @ 1321

Last change on this file since 1321 was 807, checked in by garnier, 16 years ago

update

File size: 3.1 KB
Line 
1//
2// ********************************************************************
3// * License and Disclaimer                                           *
4// *                                                                  *
5// * The  Geant4 software  is  copyright of the Copyright Holders  of *
6// * the Geant4 Collaboration.  It is provided  under  the terms  and *
7// * conditions of the Geant4 Software License,  included in the file *
8// * LICENSE and available at  http://cern.ch/geant4/license .  These *
9// * include a list of copyright holders.                             *
10// *                                                                  *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work  make  any representation or  warranty, express or implied, *
14// * regarding  this  software system or assume any liability for its *
15// * use.  Please see the license in the file  LICENSE  and URL above *
16// * for the full disclaimer and the limitation of liability.         *
17// *                                                                  *
18// * This  code  implementation is the result of  the  scientific and *
19// * technical work of the GEANT4 collaboration.                      *
20// * By using,  copying,  modifying or  distributing the software (or *
21// * any work based  on the software)  you  agree  to acknowledge its *
22// * use  in  resulting  scientific  publications,  and indicate your *
23// * acceptance of all terms of the Geant4 Software license.          *
24// ********************************************************************
25//
26// $Id: TiaraSim.hh,v 1.5 2006/06/29 15:44:14 gunter Exp $
27// GEANT4 tag $Name:  $
28//
29// ----------------------------------------------------------------------
30//
31// Class TiaraSim
32//
33
34#ifndef TiaraSim_hh
35#define TiaraSim_hh TiaraSim_hh
36#include "G4UIterminal.hh"
37#include <map>
38#include <string>
39#include "G4ProcessPlacer.hh"
40
41class G4RunManager;
42class G4VUserPrimaryGeneratorAction;
43class G4VUserPhysicsList;
44class TiaraPhysicsList;
45class G4VUserDetectorConstruction;
46class G4VisManager;
47class TiaraStackingAction;
48class G4UserEventAction;
49class TiaraEnergyCutProcess;
50
51class TiaraSim {
52public:
53  ~TiaraSim();
54  static TiaraSim &GetTiaraSim();
55  void SetGeometry(G4VUserDetectorConstruction *geo);
56  void SetPrimaryGenerator(G4VUserPrimaryGeneratorAction *primGen);
57  void SetPhysicsList(G4VUserPhysicsList *physList);
58  void initialize();
59  void initializeVisManager();
60  void startSession();
61  void AddParticleCut(const std::string &particle,
62                      G4double cut);
63  void AddTiaraEventAction(G4UserEventAction *eventAction);
64  void AddVisRunAction();
65  void BeamOn(G4int nEvents);
66
67private:
68  TiaraSim();
69  static TiaraSim *fTiaraSim;
70  G4RunManager *frunMgr;
71  G4VisManager *fVisManager;
72  G4UIterminal fSession;
73
74  G4VUserDetectorConstruction *fGeometry;
75  G4VUserPrimaryGeneratorAction *fPrimary;
76  G4VUserPhysicsList *fPhysics;
77
78  std::vector<TiaraEnergyCutProcess *> fCutProcessVector;
79  std::vector<G4ProcessPlacer> fPlacers;
80
81  TiaraStackingAction *fStackingAction;
82  G4UserEventAction *fUserEventAction;
83};
84
85
86
87
88#endif
89
90
91
92
93
94
95
96
97
98
Note: See TracBrowser for help on using the repository browser.