[807] | 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 | |
---|
| 41 | class G4RunManager; |
---|
| 42 | class G4VUserPrimaryGeneratorAction; |
---|
| 43 | class G4VUserPhysicsList; |
---|
| 44 | class TiaraPhysicsList; |
---|
| 45 | class G4VUserDetectorConstruction; |
---|
| 46 | class G4VisManager; |
---|
| 47 | class TiaraStackingAction; |
---|
| 48 | class G4UserEventAction; |
---|
| 49 | class TiaraEnergyCutProcess; |
---|
| 50 | |
---|
| 51 | class TiaraSim { |
---|
| 52 | public: |
---|
| 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 | |
---|
| 67 | private: |
---|
| 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 | |
---|