Geant4  10.01.p03
XWrapperDiscreteProcess.hh
Go to the documentation of this file.
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 
27 #ifndef XWrapperDiscreteProcess_h
28 #define XWrapperDiscreteProcess_h 1
29 
30 #include "G4ios.hh"
31 #include "globals.hh"
32 #include "G4VDiscreteProcess.hh"
34 
35 class G4Material;
36 
38 {
39 public:
40 
41  XWrapperDiscreteProcess(const G4String& processName =
42  "XWrapperDiscreteProcess" );
44 
45  virtual ~XWrapperDiscreteProcess();
46 
47 public:
50 
51  G4double GetDensity(const G4Track&);
53 
56 
57 private:
58  // hide assignment operator as private
61 
62  //private data members
64  //density to change parameter
67 
68 
72 public:
73  // DO IT
74  virtual G4VParticleChange* PostStepDoIt(const G4Track&, const G4Step& );
75 
76  // GPIL
79 
80  // GENERAL
81  void StartTracking(G4Track*);
83 
84  // PHYSICS TABLE
85  virtual void BuildPhysicsTable(const G4ParticleDefinition&);
86  virtual void PreparePhysicsTable(const G4ParticleDefinition&);
89 
90 protected:
91  // MFP
93 
94 public:
95  virtual void EndTracking() {fRegisteredProcess->EndTracking();};
96 
97  virtual void SetProcessManager(const G4ProcessManager* aPM)
98  {fRegisteredProcess->SetProcessManager(aPM);};
100  {return fRegisteredProcess->GetProcessManager();};
102  {fRegisteredProcess->ResetNumberOfInteractionLengthLeft();};
103 
104  virtual void DumpInfo() const {fRegisteredProcess->DumpInfo();};
105 
106  virtual void SetMasterProcess(G4VProcess* masterP){
107  fRegisteredProcess->SetMasterProcess(
108  static_cast<XWrapperDiscreteProcess*>(masterP)->fRegisteredProcess
109  );
110  };
112  {fRegisteredProcess->BuildWorkerPhysicsTable(aPD);};
114  {fRegisteredProcess->PrepareWorkerPhysicsTable(aPD);};
115 
119 
120 };
121 
122 #endif
123 
virtual void SetMasterProcess(G4VProcess *masterP)
Definition: G4VProcess.cc:212
G4VDiscreteProcess * fRegisteredProcess
virtual G4double PostStepGetPhysicalInteractionLength(const G4Track &, G4double, G4ForceCondition *)
virtual G4bool RetrievePhysicsTable(const G4ParticleDefinition *, const G4String &, G4bool)
virtual void SetProcessManager(const G4ProcessManager *)
Definition: G4VProcess.hh:508
virtual const G4ProcessManager * GetProcessManager()
virtual void ResetNumberOfInteractionLengthLeft()
Definition: G4VProcess.cc:95
int G4int
Definition: G4Types.hh:78
virtual G4bool IsApplicable(const G4ParticleDefinition &)
G4double GetDensityPreviousStep(const G4Track &)
virtual void BuildWorkerPhysicsTable(const G4ParticleDefinition &part)
Definition: G4VProcess.cc:202
virtual void BuildWorkerPhysicsTable(const G4ParticleDefinition &aPD)
bool G4bool
Definition: G4Types.hh:79
virtual void PreparePhysicsTable(const G4ParticleDefinition &)
Definition: G4Step.hh:76
virtual void SetProcessManager(const G4ProcessManager *aPM)
virtual const G4ProcessManager * GetProcessManager()
Definition: G4VProcess.hh:514
G4double GetDensity(const G4Track &)
G4int bNucleiOrElectronFlag
Decide whether to use nuclei (+1) or electron (-1) or both (0)
XWrapperDiscreteProcess & operator=(const XWrapperDiscreteProcess &)
virtual G4double GetMeanFreePath(const G4Track &, G4double, G4ForceCondition *)
virtual void ResetNumberOfInteractionLengthLeft()
virtual void DumpInfo() const
Definition: G4VProcess.cc:178
void RegisterProcess(G4VDiscreteProcess *)
virtual void SetMasterProcess(G4VProcess *masterP)
virtual void DumpInfo() const
virtual void PrepareWorkerPhysicsTable(const G4ParticleDefinition &)
Definition: G4VProcess.cc:207
virtual G4VParticleChange * PostStepDoIt(const G4Track &, const G4Step &)
double G4double
Definition: G4Types.hh:76
virtual void EndTracking()
Definition: G4VProcess.cc:113
XWrapperDiscreteProcess(const G4String &processName="XWrapperDiscreteProcess")
G4ForceCondition
virtual void BuildPhysicsTable(const G4ParticleDefinition &)
virtual void PrepareWorkerPhysicsTable(const G4ParticleDefinition &aPD)
virtual G4bool StorePhysicsTable(const G4ParticleDefinition *, const G4String &, G4bool)