|
||||
Warning, file /include/Geant4/G4WeightWindowAlgorithm.hh was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 // 0002 // ******************************************************************** 0003 // * License and Disclaimer * 0004 // * * 0005 // * The Geant4 software is copyright of the Copyright Holders of * 0006 // * the Geant4 Collaboration. It is provided under the terms and * 0007 // * conditions of the Geant4 Software License, included in the file * 0008 // * LICENSE and available at http://cern.ch/geant4/license . These * 0009 // * include a list of copyright holders. * 0010 // * * 0011 // * Neither the authors of this software system, nor their employing * 0012 // * institutes,nor the agencies providing financial support for this * 0013 // * work make any representation or warranty, express or implied, * 0014 // * regarding this software system or assume any liability for its * 0015 // * use. Please see the license in the file LICENSE and URL above * 0016 // * for the full disclaimer and the limitation of liability. * 0017 // * * 0018 // * This code implementation is the result of the scientific and * 0019 // * technical work of the GEANT4 collaboration. * 0020 // * By using, copying, modifying or distributing the software (or * 0021 // * any work based on the software) you agree to acknowledge its * 0022 // * use in resulting scientific publications, and indicate your * 0023 // * acceptance of all terms of the Geant4 Software license. * 0024 // ******************************************************************** 0025 // 0026 // G4WeightWindowAlgorithm 0027 // 0028 // Class description: 0029 // 0030 // Implementation of a weight window algorithm. 0031 // The arguments in the constructor configure the algorithm: 0032 // - upperLimitFactor: the factor defining the upper weight limit 0033 // W_u = upperLimitFactor * W_l (W_l lower weight bound) 0034 // - survivalFactor: used in calculating the survival weight 0035 // W_s = survivalFactor * W_l 0036 // - maxNumberOfSplits: the maximal number of splits allowed 0037 // to be created in one go, and the reciprocal of the minimal 0038 // survival probability in case of Russian roulette 0039 // 0040 // In case of upperLimitFactor=survivalFactor=1 the algorithm becomes 0041 // the expected weight algorithm of the importance sampling technique. 0042 // 0043 // See also G4VWeightWindowAlgorithm. 0044 0045 // Author: Michael Dressel (CERN), 2003 0046 // ---------------------------------------------------------------------- 0047 #ifndef G4WEIGHTWINDOWALGORITHM_HH 0048 #define G4WEIGHTWINDOWALGORITHM_HH 1 0049 0050 #include "G4Nsplit_Weight.hh" 0051 #include "G4VWeightWindowAlgorithm.hh" 0052 0053 class G4WeightWindowAlgorithm : public G4VWeightWindowAlgorithm 0054 { 0055 public: // with description 0056 0057 G4WeightWindowAlgorithm(G4double upperLimitFactor = 5, 0058 G4double survivalFactor = 3, 0059 G4int maxNumberOfSplits = 5); 0060 0061 ~G4WeightWindowAlgorithm() override; 0062 0063 G4Nsplit_Weight Calculate(G4double init_w, 0064 G4double lowerWeightBound) const override; 0065 // calculate number of tracks and their weight according 0066 // to the initial track weight and the lower energy bound 0067 0068 private: 0069 0070 G4double fUpperLimitFactor = 0.0; 0071 G4double fSurvivalFactor = 0.0; 0072 G4int fMaxNumberOfSplits = 0; 0073 }; 0074 0075 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |