Geant4  10.01.p03
XWrapperContinuousDiscreteProcess.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 XWrapperContinuousDiscreteProcess_h
28 #define XWrapperContinuousDiscreteProcess_h 1
29 
30 #include "G4ios.hh"
31 #include "globals.hh"
34 
35 class G4Material;
36 
38 {
39 public:
40 
42  ="XWrapperContinuousDiscreteProcess" );
47 
49 
50 public:
53 
55  {return fRegisteredProcess;};
56 
57  G4double GetDensity(const G4Track&);
59 
62 
63 private:
64  // hide assignment operator as private
68 
69  //private data members
71  //Decide whether to use nuclei (+1) or electron (-1)
72  //or both (0) density to change parameters
74 
76 
80 public:
81  // DO IT
82  virtual G4VParticleChange* PostStepDoIt(const G4Track&, const G4Step& );
83  virtual G4VParticleChange* AlongStepDoIt(const G4Track&, const G4Step& );
84 
85  // GPIL
87  const G4Track&,
88  G4double,
91  const G4Track&,
92  G4double,
93  G4double,
94  G4double&,
96 
97  // GENERAL
98  virtual void StartTracking(G4Track* aTrack);
99  virtual void EndTracking() {fRegisteredProcess->EndTracking();};
100  virtual void SetProcessManager(const G4ProcessManager* aPM)
101  {fRegisteredProcess->SetProcessManager(aPM);};
103  {return fRegisteredProcess->GetProcessManager();};
105  {fRegisteredProcess->ResetNumberOfInteractionLengthLeft();};
106  virtual void DumpInfo() const {fRegisteredProcess->DumpInfo();};
107 
108 
109  virtual void SetMasterProcess(G4VProcess* masterP) {
110  fRegisteredProcess->SetMasterProcess(
111  static_cast<XWrapperContinuousDiscreteProcess*>(masterP)
112  ->fRegisteredProcess);
113  };
114 
116  {fRegisteredProcess->BuildWorkerPhysicsTable(aPD);};
118  {fRegisteredProcess->PrepareWorkerPhysicsTable(aPD);};
119 
120 
121  // PHYSICS TABLE
123  {return fRegisteredProcess->IsApplicable(aPD);};
124  virtual void BuildPhysicsTable(const G4ParticleDefinition& aPD)
125  {fRegisteredProcess->BuildPhysicsTable(aPD);};
126  virtual void PreparePhysicsTable(const G4ParticleDefinition& aPD)
127  {fRegisteredProcess->PreparePhysicsTable(aPD);};
129  const G4String& aString,
130  G4bool aBool)
131  {return fRegisteredProcess->StorePhysicsTable(aPD,aString,aBool);};
133  const G4String& aString,
134  G4bool aBool)
135  {return fRegisteredProcess->RetrievePhysicsTable(aPD,aString,aBool);};
136 protected:
137  // MFP
138  virtual G4double GetMeanFreePath(const G4Track&,
139  G4double,
140  G4ForceCondition* );
141 
142 protected:
143  virtual G4double GetContinuousStepLimit(const G4Track&,
144  G4double,
145  G4double,
146  G4double&);
147 
151 
152 };
153 
154 #endif
virtual void SetMasterProcess(G4VProcess *masterP)
Definition: G4VProcess.cc:212
virtual G4double GetMeanFreePath(const G4Track &, G4double, G4ForceCondition *)
void RegisterProcess(G4VContinuousDiscreteProcess *)
virtual void SetProcessManager(const G4ProcessManager *)
Definition: G4VProcess.hh:508
virtual void SetProcessManager(const G4ProcessManager *aPM)
virtual void PreparePhysicsTable(const G4ParticleDefinition &aPD)
virtual void ResetNumberOfInteractionLengthLeft()
Definition: G4VProcess.cc:95
int G4int
Definition: G4Types.hh:78
virtual void BuildWorkerPhysicsTable(const G4ParticleDefinition &part)
Definition: G4VProcess.cc:202
virtual const G4ProcessManager * GetProcessManager()
virtual void PreparePhysicsTable(const G4ParticleDefinition &)
Definition: G4VProcess.hh:217
bool G4bool
Definition: G4Types.hh:79
virtual void BuildWorkerPhysicsTable(const G4ParticleDefinition &aPD)
virtual G4VParticleChange * PostStepDoIt(const G4Track &, const G4Step &)
XWrapperContinuousDiscreteProcess(const G4String &processName="XWrapperContinuousDiscreteProcess")
virtual G4bool RetrievePhysicsTable(const G4ParticleDefinition *aPD, const G4String &aString, G4bool aBool)
Definition: G4Step.hh:76
virtual void SetMasterProcess(G4VProcess *masterP)
virtual G4double GetContinuousStepLimit(const G4Track &, G4double, G4double, G4double &)
virtual G4bool RetrievePhysicsTable(const G4ParticleDefinition *, const G4String &, G4bool)
Definition: G4VProcess.hh:236
virtual const G4ProcessManager * GetProcessManager()
Definition: G4VProcess.hh:514
XWrapperContinuousDiscreteProcess & operator=(const XWrapperContinuousDiscreteProcess &right)
virtual void BuildPhysicsTable(const G4ParticleDefinition &aPD)
virtual void BuildPhysicsTable(const G4ParticleDefinition &)
Definition: G4VProcess.hh:210
virtual G4bool StorePhysicsTable(const G4ParticleDefinition *aPD, const G4String &aString, G4bool aBool)
G4VContinuousDiscreteProcess * GetRegisteredProcess()
virtual G4VParticleChange * AlongStepDoIt(const G4Track &, const G4Step &)
virtual G4double AlongStepGetPhysicalInteractionLength(const G4Track &, G4double, G4double, G4double &, G4GPILSelection *)
virtual G4double PostStepGetPhysicalInteractionLength(const G4Track &, G4double, G4ForceCondition *)
virtual void DumpInfo() const
Definition: G4VProcess.cc:178
virtual G4bool StorePhysicsTable(const G4ParticleDefinition *, const G4String &, G4bool)
Definition: G4VProcess.hh:231
virtual void PrepareWorkerPhysicsTable(const G4ParticleDefinition &)
Definition: G4VProcess.cc:207
double G4double
Definition: G4Types.hh:76
virtual void EndTracking()
Definition: G4VProcess.cc:113
G4ForceCondition
virtual G4bool IsApplicable(const G4ParticleDefinition &aPD)
virtual void PrepareWorkerPhysicsTable(const G4ParticleDefinition &aPD)
virtual G4bool IsApplicable(const G4ParticleDefinition &)
Definition: G4VProcess.hh:205
G4GPILSelection
G4ProcessType