|
|
|||
File indexing completed on 2026-09-12 08:30:55
0001 // 0002 // ******************************************************************** 0003 // * License and Disclaimer * 0004 // * * 0005 // * The Geant4 software is copyright of the Copyright Holders of * 0006 // * the Geant4 Collaboration. It is provided under the terms and * 0007 // * conditions of the Geant4 Software License, included in the file * 0008 // * LICENSE and available at http://cern.ch/geant4/license . These * 0009 // * include a list of copyright holders. * 0010 // * * 0011 // * Neither the authors of this software system, nor their employing * 0012 // * institutes,nor the agencies providing financial support for this * 0013 // * work make any representation or warranty, express or implied, * 0014 // * regarding this software system or assume any liability for its * 0015 // * use. Please see the license in the file LICENSE and URL above * 0016 // * for the full disclaimer and the limitation of liability. * 0017 // * * 0018 // * This code implementation is the result of the scientific and * 0019 // * technical work of the GEANT4 collaboration. * 0020 // * By using, copying, modifying or distributing the software (or * 0021 // * any work based on the software) you agree to acknowledge its * 0022 // * use in resulting scientific publications, and indicate your * 0023 // * acceptance of all terms of the Geant4 Software license. * 0024 // ******************************************************************** 0025 // 0026 /// \file RE02RunAction.hh 0027 /// \brief Definition of the RE02RunAction class 0028 0029 #ifndef RE02RunAction_h 0030 #define RE02RunAction_h 1 0031 0032 #include "G4UserRunAction.hh" 0033 #include "globals.hh" 0034 0035 #include <vector> 0036 0037 class G4Run; 0038 0039 //======================================================================= 0040 // RE02RunAction 0041 // 0042 // Generate Run object and Dumping Run summary. 0043 // 0044 // T.Aso Created. 2007.Nov. 0045 // 0046 //======================================================================= 0047 // 0048 /// User run action class 0049 /// 0050 /// - G4Run* GenerateRun() 0051 /// instanciates a run of RE02Run with a sensitive detector name 0052 /// 0053 /// - void BeginOfRunAction(const G4Run*) 0054 /// shows the run number 0055 /// 0056 /// - void EndOfRunAction(const G4Run*) 0057 /// shows accumulated information of primitive scorers and 0058 /// outputs total energy deposit into "totED.txt" file 0059 /// 0060 /// - G4int CopyNo(G4int ix, G4int iy, G4int iz) 0061 /// returns a copy number of the segment number of the water phantom 0062 /// indicated by three dimentional indexes 0063 // 0064 class RE02RunAction : public G4UserRunAction 0065 { 0066 public: 0067 // constructor and destructor 0068 RE02RunAction(); 0069 virtual ~RE02RunAction(); 0070 0071 public: 0072 // virtual method from G4UserRunAction. 0073 virtual G4Run* GenerateRun(); 0074 virtual void BeginOfRunAction(const G4Run*); 0075 virtual void EndOfRunAction(const G4Run*); 0076 0077 public: 0078 // Utility method for converting segment number of 0079 // water phantom to copyNo of HitsMap. 0080 G4int CopyNo(G4int ix, G4int iy, G4int iz) { return (iy * (fNx * fNz) + ix * fNz + iz); } 0081 0082 private: 0083 // Data member 0084 // - vector of MultiFunctionalDetecor names. 0085 std::vector<G4String> fSDName; 0086 0087 // for conversion of sengment number to copyNo. 0088 G4int fNx, fNy, fNz; 0089 }; 0090 0091 // 0092 0093 #endif
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|