| [819] | 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 | //
|
|---|
| [961] | 26 | // $Id: G4MultipleScattering.hh,v 1.36 2008/03/10 10:39:21 vnivanch Exp $
|
|---|
| 27 | // GEANT4 tag $Name: geant4-09-02-ref-02 $
|
|---|
| [819] | 28 | //
|
|---|
| 29 | // -----------------------------------------------------------------------------
|
|---|
| 30 | //
|
|---|
| 31 | // GEANT4 Class header file
|
|---|
| 32 | //
|
|---|
| 33 | // File name: G4MultipleScattering
|
|---|
| 34 | //
|
|---|
| 35 | // Author: Laszlo Urban
|
|---|
| 36 | //
|
|---|
| 37 | // Creation date: March 2001
|
|---|
| 38 | //
|
|---|
| 39 | // Modifications:
|
|---|
| 40 | //
|
|---|
| 41 | // 07-08-01 new methods Store/Retrieve PhysicsTable
|
|---|
| 42 | // 23-08-01 new angle and z distribution,energy dependence reduced,
|
|---|
| 43 | // Store,Retrieve methods commented out temporarily, L.Urban
|
|---|
| 44 | // 11-09-01 G4MultipleScatteringx put as default: G4MultipleScattering
|
|---|
| 45 | // Store,Retrieve methods reactived (mma)
|
|---|
| 46 | // 13-09-01 Unused TrueToGeomTransformation method deleted,
|
|---|
| 47 | // class description (L.Urban)
|
|---|
| 48 | // 19-09-01 come back to previous process name msc
|
|---|
| 49 | // 17-04-02 NEW angle distribution + boundary algorithm modified, L.Urban
|
|---|
| 50 | // 22-04-02 boundary algorithm modified -> important improvement in timing !!!!
|
|---|
| 51 | // (L.Urban)
|
|---|
| 52 | // 24-05-02 changes in data members, L.Urban
|
|---|
| 53 | // 30-10-02 changes in data members, L.Urban
|
|---|
| 54 | // 20-01-03 Migrade to cut per region (V.Ivanchenko)
|
|---|
| 55 | // 05-02-03 changes in data members, L.Urban
|
|---|
| 56 | // 28-03-03 Move to model design (V.Ivanchenko)
|
|---|
| 57 | // 18-04-03 Change name (V.Ivanchenko)
|
|---|
| 58 | // 16-06-03: ShortLived are not applicable any more (V.Ivanchenko)
|
|---|
| 59 | // 17-08-04 name of data member facxsi changed to factail together
|
|---|
| 60 | // with the corresponding set function (L.Urban)
|
|---|
| 61 | // 08-11-04 Migration to new interface of Store/Retrieve tables (V.Ivantchenko)
|
|---|
| 62 | // 15-04-05 optimize internal interfaces (V.Ivanchenko)
|
|---|
| 63 | // 02-10-05 new algorithm for step limitation, new data members (L.Urban)
|
|---|
| 64 | // 05-10-05 value of data member tlimitmin has been changed (L.Urban)
|
|---|
| 65 | // 23-10-05 new Boolean data member prec (false ~ 7.1 like, true new step
|
|---|
| 66 | // limit in TruePathLengthLimit, L.Urban)
|
|---|
| 67 | // 25-10-05 prec renamed to steppingAlgorithm, set function triggers
|
|---|
| 68 | // 'default' facrange too, true - 0.02, false - 0.2 (L.Urban)
|
|---|
| 69 | // 26-10-05 the above is put in the function MscStepLimitation() (mma)
|
|---|
| 70 | // 05-11-05 new data member rangecut (L.Urban)
|
|---|
| 71 | // 13-11-05 some code cleaning (L.Urban)
|
|---|
| 72 | // 07-12-05 GeomLimit is protected instead of public
|
|---|
| 73 | // 11-12-05 data menber rangecut removed (L.Urban)
|
|---|
| 74 | // 19-01-07 tlimitmin = facrange*50*micrometer, i.e. it depends on the
|
|---|
| 75 | // value of facrange (L.Urban)
|
|---|
| 76 | // 16-02-06 set function for data member factail (L.Urban)
|
|---|
| 77 | // 13-10-06 data member factail removed, new data member skin
|
|---|
| 78 | // together with set function, data member tkinlimit
|
|---|
| 79 | // changed to lambdalimit (L.Urban)
|
|---|
| 80 | // 07-03-07 remove method SetSkin, because it is now in the base class (VI)
|
|---|
| 81 | //
|
|---|
| 82 | //------------------------------------------------------------------------------
|
|---|
| 83 | //
|
|---|
| 84 |
|
|---|
| 85 | // class description
|
|---|
| 86 | //
|
|---|
| 87 | // The class simulates the multiple scattering for any kind
|
|---|
| 88 | // of charged particle.
|
|---|
| 89 | //
|
|---|
| 90 | // class description - end
|
|---|
| 91 |
|
|---|
| 92 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|---|
| 93 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|---|
| 94 |
|
|---|
| 95 | #ifndef G4MultipleScattering_h
|
|---|
| 96 | #define G4MultipleScattering_h 1
|
|---|
| 97 |
|
|---|
| 98 | #include "G4VMultipleScattering.hh"
|
|---|
| 99 |
|
|---|
| 100 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|---|
| 101 |
|
|---|
| [961] | 102 | class G4VMscModel;
|
|---|
| [819] | 103 |
|
|---|
| 104 | class G4MultipleScattering : public G4VMultipleScattering
|
|---|
| 105 |
|
|---|
| 106 | {
|
|---|
| 107 | public: // with description
|
|---|
| 108 |
|
|---|
| 109 | G4MultipleScattering(const G4String& processName="msc");
|
|---|
| 110 |
|
|---|
| 111 | virtual ~G4MultipleScattering();
|
|---|
| 112 |
|
|---|
| 113 | // returns true for charged particles, false otherwise
|
|---|
| 114 | G4bool IsApplicable (const G4ParticleDefinition& p);
|
|---|
| 115 |
|
|---|
| 116 | // Print few lines of informations about the process: validity range,
|
|---|
| 117 | void PrintInfo();
|
|---|
| 118 |
|
|---|
| 119 | // geom. step length distribution should be sampled or not
|
|---|
| 120 | void Setsamplez(G4bool value) { samplez = value;};
|
|---|
| 121 |
|
|---|
| 122 | // to reduce the energy/step dependence
|
|---|
| 123 | void Setdtrl(G4double value) { dtrl = value;};
|
|---|
| 124 |
|
|---|
| 125 | // 'soften' step limitation above lambdalimit
|
|---|
| 126 | void SetLambdalimit(G4double value) { lambdalimit = value;};
|
|---|
| 127 |
|
|---|
| 128 | protected:
|
|---|
| 129 |
|
|---|
| 130 | // This function initialise models
|
|---|
| 131 | void InitialiseProcess(const G4ParticleDefinition*);
|
|---|
| 132 |
|
|---|
| 133 | private: // data members
|
|---|
| 134 |
|
|---|
| [961] | 135 | G4VMscModel* mscUrban;
|
|---|
| [819] | 136 |
|
|---|
| 137 | G4double lambdalimit;
|
|---|
| 138 | G4double dtrl;
|
|---|
| 139 |
|
|---|
| 140 | G4bool samplez;
|
|---|
| 141 | G4bool isInitialized;
|
|---|
| 142 |
|
|---|
| 143 | };
|
|---|
| 144 |
|
|---|
| 145 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|---|
| 146 |
|
|---|
| 147 | #endif
|
|---|