Geant4  10.03
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 //
28 //
29 
30 #ifndef XWrapperContinuousDiscreteProcess_h
31 #define XWrapperContinuousDiscreteProcess_h 1
32 
33 #include "G4ios.hh"
34 #include "globals.hh"
38 
39 class G4Material;
40 
42 {
43 public:
44 
46  ="XWrapperContinuousDiscreteProcess" );
51 
52  G4int ItHasToWork(const G4Track&);
53 
55 
56 public:
59 
61  {return fRegisteredProcess;};
62 
63  G4double GetDensity(const G4Track&);
65 
68 
69 private:
70  // hide assignment operator as private
74 
75  //private data members
78  //Decide whether to use nuclei (+1) or electron (-1)
79  //or both (0) density to change parameters
81 
87 public:
88  // DO IT
89  virtual G4VParticleChange* PostStepDoIt(const G4Track&, const G4Step& );
90  virtual G4VParticleChange* AlongStepDoIt(const G4Track&, const G4Step& );
91  virtual G4VParticleChange* AtRestDoIt(const G4Track& aTrack,
92  const G4Step& aStep){
93  return fRegisteredProcess->AtRestDoIt(aTrack,aStep);
94  }
95 
96  // GPIL
98  const G4Track&,
99  G4double,
102  const G4Track&,
103  G4double,
104  G4double,
105  G4double&,
106  G4GPILSelection*);
109  return fRegisteredProcess->AtRestGetPhysicalInteractionLength(aTrack,
110  condition);
111  };
112 
113  // GENERAL
114  virtual void StartTracking(G4Track* aTrack);
115  virtual void EndTracking() {fRegisteredProcess->EndTracking();};
116  virtual void SetProcessManager(const G4ProcessManager* aPM)
117  {fRegisteredProcess->SetProcessManager(aPM);};
119  {return fRegisteredProcess->GetProcessManager();};
121  {fRegisteredProcess->ResetNumberOfInteractionLengthLeft();};
122  virtual void DumpInfo() const {fRegisteredProcess->DumpInfo();};
123 
124 
125  virtual void SetMasterProcess(G4VProcess* masterP) {
126  fRegisteredProcess->SetMasterProcess(
127  static_cast<XWrapperContinuousDiscreteProcess*>(masterP)
128  ->fRegisteredProcess);
129  };
130 
132  {fRegisteredProcess->BuildWorkerPhysicsTable(aPD);};
134  {fRegisteredProcess->PrepareWorkerPhysicsTable(aPD);};
135 
136 
137  // PHYSICS TABLE
139  {return fRegisteredProcess->IsApplicable(aPD);};
140  virtual void BuildPhysicsTable(const G4ParticleDefinition& aPD)
141  {fRegisteredProcess->BuildPhysicsTable(aPD);};
142  virtual void PreparePhysicsTable(const G4ParticleDefinition& aPD)
143  {fRegisteredProcess->PreparePhysicsTable(aPD);};
145  const G4String& aString,
146  G4bool aBool)
147  {return fRegisteredProcess->StorePhysicsTable(aPD,aString,aBool);};
149  const G4String& aString,
150  G4bool aBool)
151  {return fRegisteredProcess->RetrievePhysicsTable(aPD,aString,aBool);};
152 protected:
153  // MFP
154  virtual G4double GetMeanFreePath(const G4Track&,
155  G4double,
156  G4ForceCondition* );
157 
158 protected:
159  virtual G4double GetContinuousStepLimit(const G4Track&,
160  G4double,
161  G4double,
162  G4double&);
163 
167 
168 };
169 
170 #endif
virtual void SetMasterProcess(G4VProcess *masterP)
Definition: G4VProcess.cc:212
virtual G4double GetMeanFreePath(const G4Track &, G4double, G4ForceCondition *)
G4double condition(const G4ErrorSymMatrix &m)
void RegisterProcess(G4VContinuousDiscreteProcess *)
virtual void SetProcessManager(const G4ProcessManager *)
Definition: G4VProcess.hh:508
virtual G4VParticleChange * AtRestDoIt(const G4Track &, const G4Step &)
virtual void SetProcessManager(const G4ProcessManager *aPM)
virtual G4double AtRestGetPhysicalInteractionLength(const G4Track &aTrack, G4ForceCondition *condition)
virtual G4double AtRestGetPhysicalInteractionLength(const G4Track &, G4ForceCondition *)
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
Definition of the ExExChParticleUserInfo class.
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
G4ParticleChangeForNothing * fParticleChangeForNothing
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 G4VParticleChange * AtRestDoIt(const G4Track &aTrack, const G4Step &aStep)
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