Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
TSRun.hh
이 파일의 문서화 페이지로 가기
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 //
28 //
29 //
30 // $Id: TSRun.hh 93110 2015-11-05 08:37:42Z jmadsen $
31 //
32 //
50 //
51 //
52 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
53 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
54 
55 
56 #ifndef tsrun_h
57 #define tsrun_h 1
58 
59 #include "globals.hh"
60 
61 #include "G4Run.hh"
62 #include "G4Event.hh"
63 #include "G4THitsMap.hh"
64 #include "G4TAtomicHitsMap.hh"
65 
66 #include <vector>
67 
68 class G4Event;
69 
70 class TSRun : public G4Run
71 {
72 public:
73  typedef std::map<G4int, G4double> MutexHitsMap_t;
74 
75 public:
76  TSRun(const G4String&);
77  virtual ~TSRun();
78 
79  // virtual method from G4Run.
80  // The method is overriden in this class for scoring.
81  virtual void RecordEvent(const G4Event*);
82 
83  // Access methods for scoring information.
84  // - Get HitsMap of this RUN.
85  G4THitsMap<G4double>* GetHitsMap(const G4String& collname) const;
88 
89  void ConstructMFD(const G4String&);
90 
91  virtual void Merge(const G4Run*);
92 
93 private:
94  std::vector<G4String> fCollNames;
95  std::vector<G4int> fCollIDs;
96  std::vector<G4THitsMap<G4double>*> fRunMaps;
97  static std::vector<G4TAtomicHitsMap<G4double>*> fAtomicRunMaps;
98  static std::map<G4String, MutexHitsMap_t> fMutexRunMaps;
99 
100 };
101 
102 #endif
virtual ~TSRun()
Definition: TSRun.cc:79
MutexHitsMap_t * GetMutexHitsMap(const G4String &) const
Definition: TSRun.cc:260
virtual void Merge(const G4Run *)
Definition: TSRun.cc:207
Definition: TSRun.hh:70
std::map< G4int, G4double > MutexHitsMap_t
Definition: TSRun.hh:73
static std::vector< G4TAtomicHitsMap< G4double > * > fAtomicRunMaps
Definition: TSRun.hh:97
std::vector< G4THitsMap< G4double > * > fRunMaps
Definition: TSRun.hh:96
TSRun(const G4String &)
Definition: TSRun.cc:71
Definition: G4Run.hh:46
G4TAtomicHitsMap< G4double > * GetAtomicHitsMap(const G4String &) const
Definition: TSRun.cc:241
Definition of the G4TAtomicHitsMap class.
G4THitsMap< G4double > * GetHitsMap(const G4String &collname) const
Definition: TSRun.cc:222
static std::map< G4String, MutexHitsMap_t > fMutexRunMaps
Definition: TSRun.hh:98
void ConstructMFD(const G4String &)
Definition: TSRun.cc:98
std::vector< G4String > fCollNames
Definition: TSRun.hh:94
std::vector< G4int > fCollIDs
Definition: TSRun.hh:95
virtual void RecordEvent(const G4Event *)
Definition: TSRun.cc:153