Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
extended/medical/dna/neuron/include/Run.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 //
26 // This example is provided by the Geant4-DNA collaboration
27 // Any report or published results obtained using the Geant4-DNA software
28 // shall cite the following Geant4-DNA collaboration publication:
29 // Med. Phys. 37 (2010) 4692-4708
30 // and papers
31 // M. Batmunkh et al. J Radiat Res Appl Sci 8 (2015) 498-507
32 // O. Belov et al. Physica Medica 32 (2016) 1510-1520
33 // The Geant4-DNA web site is available at http://geant4-dna.org
34 //
35 // -------------------------------------------------------------------
36 // November 2016
37 // -------------------------------------------------------------------
38 //
39 // $ID$
42 
43 #ifndef Run_h
44 #define Run_h 1
45 
46 #include "G4Run.hh"
47 #include "G4VProcess.hh"
48 #include "globals.hh"
49 #include <map>
50 #include "G4Molecule.hh"
51 
54 //class NeuronLoadDataFile;
55 class G4Molecule;
56 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
57 
58 class Run : public G4Run
59 {
60  public:
62  ~Run();
63 
64  public:
66  void AddPrimaryLET(G4double let);
67  void SetTrackLength(G4double tracklen);
68  void CountProcesses(const G4VProcess* process);
72  void MoleculeCountNeuron(G4Molecule* molecule);
73  void AddEdep (G4double edep);
74  void AddEflow (G4double eflow);
76 
77  virtual void Merge(const G4Run*);
78  void EndOfRun();
79 
80 // Edep in all volume
82  void SetEdepALL(G4double vall){ fEdepAll = vall;}
83  void AddEdepALL (G4double vall)
84  {
85  fEdepAll += vall;
86  fEdepAll_err += vall*vall;
87  }
88 // 0. Edep in homogeneous Medium
90  void SetEdepMedium(G4double vall){ fEdepMedium = vall;}
91  void AddEdepMedium (G4double vall)
92  {
93  fEdepMedium += vall;
94  fEdepMedium_err += vall*vall;
95  }
96 // 1. Edep in Bounding Slice Volume
98  void SetEdepSlice(G4double vall){ fEdepSlice = vall;}
99  void AddEdepSlice (G4double vall)
100  {
101  fEdepSlice += vall;
102  fEdepSlice_err += vall*vall;
103  }
104 // 2. Edep in Soma volume
106  void SetEdepSoma(G4double vall){ fEdepSoma = vall;}
107  void AddEdepSoma (G4double vall)
108  {
109  fEdepSoma += vall;
110  fEdepSoma_err += vall*vall;
111  }
112 
115  //G4double GetSomalength(G4int i){ return fSoma3DEdep[i];}
116  //G4ThreeVector GetVectSoma(G4int i) {return fSomaCompartments[i];}
117 
118 // 3. Edep in Dendrites volume
120  void SetEdepDend(G4double vall){ fEdepDend = vall;}
121  void AddEdepDend (G4double vall)
122  {
123  fEdepDend += vall;
124  fEdepDend_err += vall*vall;
125  }
126 
129 
130 // 4. Edep in Axon volume
132  void SetEdepAxon(G4double vall){ fEdepAxon = vall;}
133  void AddEdepAxon (G4double vall)
134  {
135  fEdepAxon += vall;
136  fEdepAxon_err += vall*vall;
137  }
138 
141 
142 // 5. Edep in whole Neuron volume
144  void SetEdepNeuron(G4double vall){ fEdepNeuron = vall;}
146  {
147  fEdepNeuron += vall;
148  fEdepNeuron_err += vall*vall;
149  }
150 
151  private:
152  struct ParticleData {
154  : fCount(0), fEmean(0.), fEmin(0.), fEmax(0.) {}
156  : fCount(count), fEmean(ekin), fEmin(emin), fEmax(emax) {}
157  G4int fCount;
159  G4double fEmin;
160  G4double fEmax;
161  };
162 
163  //NeuronLoadDataFile * fNeuronLoadParamz;
166  G4double fEkin;
171 
179 
182  std::map<G4String,G4int> fMoleculeNumber;
183  std::map<G4String,G4int> fProcCounter;
184  std::map<G4String,ParticleData> fParticleDataMap1;
185  std::map<G4String,ParticleData> fParticleDataMap2;
186 };
187 
188 #endif
Float_t x
Definition: compare.C:6
std::map< G4String, ParticleData > fParticleDataMap1
std::map< G4String, G4int > fMoleculeNumber
G4double GetSomaCompart(G4int i)
void SetEdepALL(G4double vall)
void SetPrimary(G4ParticleDefinition *particle, G4double energy)
DetectorConstruction * fDetector
void AddPrimaryLET(G4double let)
void ParticleFlux(G4String, G4double)
void MoleculeCountNeuron(G4Molecule *molecule)
void AddEdepALL(G4double vall)
void AddEflow(G4double eflow)
static const G4double emax
std::vector< G4double > fEnergyFlow
void AddEdepSlice(G4double vall)
void ParticleCount(G4String, G4double)
void SetEdepSlice(G4double vall)
void MoleculeCount(G4String, G4double)
G4double GetDendCompart(G4int i)
double G4double
Definition: G4Types.hh:76
void AddEdepDend(G4double vall)
void SetEdepAxon(G4double vall)
double energy
Definition: plottest35.C:25
virtual void Merge(const G4Run *)
G4double GetAxonCompart(G4int i)
void AddDendCompart(G4int i, G4double x)
void SetEdepMedium(G4double vall)
void SetEdepDend(G4double vall)
std::map< G4String, G4int > fProcCounter
Double_t edep
Definition: G4Run.hh:46
G4ParticleDefinition * fParticle
std::map< G4String, ParticleData > fParticleDataMap2
void ParticleCountNeuron(G4String, G4double)
void SetEdepSoma(G4double vall)
int G4int
Definition: G4Types.hh:78
void CountProcesses(G4String procName)
void AddAxonCompart(G4int i, G4double x)
void AddEdepMedium(G4double vall)
void AddEdepSoma(G4double vall)
void SetTrackLength(G4double tracklen)
void AddEdepNeuron(G4double vall)
void SetEdepNeuron(G4double vall)
void AddEdepAxon(G4double vall)
Simple detector construction with a box volume placed in a world.
ParticleData(G4int count, G4double ekin, G4double emin, G4double emax)
void AddSomaCompart(G4int i, G4double x)