|
||||
File indexing completed on 2025-01-31 09:22:47
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 // 0027 // 0028 // Author: A. Pfeiffer (Andreas.Pfeiffer@cern.ch) 0029 // 0030 // 0031 // History: 0032 // ----------- 0033 // 19 Mar 2013 LP Migrated to G4AnalysisManager 0034 // 7 Nov 2001 MGP Implemented according to A. Pfeiffer's instructions 0035 // 0036 // ------------------------------------------------------------------- 0037 // Class description: 0038 // Example of analysis in a simulation application (histograms, ntuples etc.) 0039 // This class follows the singleton design pattern; 0040 // it is responsible for the analysis management and algorithms 0041 // 0042 // ------------------------------------------------------------------- 0043 0044 #ifndef G4PROCESSTESTANALYSIS_HH 0045 #define G4PROCESSTESTANALYSIS_HH 0046 0047 #include "globals.hh" 0048 #include "G4ios.hh" 0049 #include "G4AnalysisManager.hh" 0050 0051 class G4Track; 0052 0053 class XrayTelAnalysis 0054 { 0055 public: 0056 0057 ~XrayTelAnalysis(); 0058 0059 void book(G4bool isMaster); 0060 0061 void finish(G4bool isMaster); 0062 0063 void analyseStepping(const G4Track& track, G4bool entering); 0064 0065 static XrayTelAnalysis* getInstance(); 0066 0067 void Update(G4double energy,G4int threadID); 0068 0069 private: 0070 0071 XrayTelAnalysis(); 0072 0073 static XrayTelAnalysis* instance; 0074 0075 // Quantities for the ntuple 0076 G4double eKin; 0077 G4double x; 0078 G4double y; 0079 G4double z; 0080 G4double dirX; 0081 G4double dirY; 0082 G4double dirZ; 0083 0084 G4String asciiFileName; 0085 G4String histFileName; 0086 0087 std::ofstream *asciiFile; 0088 0089 //global counters: log separately for each thread (or sequential) 0090 std::map<G4int,G4int> *nEnteringTracks; 0091 std::map<G4int,G4double> *totEnteringEnergy; 0092 0093 }; 0094 0095 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |