Geant4 Cross Reference |
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 /// \file GB04BOptrBremSplitting.hh 28 /// \brief Definition of the GB04BOptrBremSplitting class 29 #ifndef GB04BOptrBremSplitting_hh 30 #define GB04BOptrBremSplitting_hh 1 31 32 #include "G4VBiasingOperator.hh" 33 class GB04BOptnBremSplitting; 34 class G4GenericMessenger; 35 36 class GB04BOptrBremSplitting : public G4VBiasingOperator 37 { 38 public: 39 GB04BOptrBremSplitting(); 40 virtual ~GB04BOptrBremSplitting() {} 41 42 public: 43 // ------------------------- 44 // Optional from base class: 45 // ------------------------- 46 // -- Call at run start: 47 virtual void StartRun(); 48 // -- Call at each track starting: 49 virtual void StartTracking(const G4Track* track); 50 51 private: 52 // ----------------------------- 53 // -- Mandatory from base class: 54 // ----------------------------- 55 // -- Unused: 56 virtual G4VBiasingOperation* 57 ProposeNonPhysicsBiasingOperation(const G4Track* /* track */, 58 const G4BiasingProcessInterface* /* callingProcess */) 59 { 60 return 0; 61 } 62 virtual G4VBiasingOperation* 63 ProposeOccurenceBiasingOperation(const G4Track* /* track */, 64 const G4BiasingProcessInterface* /* callingProcess */) 65 { 66 return 0; 67 } 68 // -- Used: 69 virtual G4VBiasingOperation* 70 ProposeFinalStateBiasingOperation(const G4Track* track, 71 const G4BiasingProcessInterface* callingProcess); 72 73 private: 74 // -- Avoid compiler complaining for (wrong) method shadowing, 75 // -- this is because other virtual method with same name exists. 76 using G4VBiasingOperator::OperationApplied; 77 78 private: 79 GB04BOptnBremSplitting* fBremSplittingOperation; 80 G4int fSplittingFactor; 81 G4bool fBiasPrimaryOnly; 82 G4bool fBiasOnlyOnce; 83 G4int fNInteractions; 84 // Messengers to change the 85 G4GenericMessenger* fSplittingFactorMessenger; 86 G4GenericMessenger* fBiasPrimaryOnlyMessenger; 87 G4GenericMessenger* fBiasOnlyOnceMessenger; 88 }; 89 90 #endif 91