![]() |
|
|||
File indexing completed on 2025-02-23 09:20:46
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 /// \file GB07/include/GB07BOptrLeadingParticle.hh 0027 /// \brief Definition of the GB07BOptrLeadingParticle class 0028 // 0029 #ifndef GB07BOptrLeadingParticle_hh 0030 #define GB07BOptrLeadingParticle_hh 1 0031 0032 #include "G4VBiasingOperator.hh" 0033 class G4BOptnLeadingParticle; 0034 class G4VProcess; 0035 0036 #include <map> 0037 0038 class GB07BOptrLeadingParticle : public G4VBiasingOperator 0039 { 0040 public: 0041 GB07BOptrLeadingParticle(G4String operatorName = "LeadingParticleBiasingOperator"); 0042 virtual ~GB07BOptrLeadingParticle(); 0043 0044 private: 0045 // ----------------------------- 0046 // -- Mandatory from base class: 0047 // ----------------------------- 0048 // -- Unsused: 0049 virtual G4VBiasingOperation* 0050 ProposeNonPhysicsBiasingOperation(const G4Track*, const G4BiasingProcessInterface*) final 0051 { 0052 return nullptr; 0053 } 0054 // -- Unused: 0055 virtual G4VBiasingOperation* 0056 ProposeOccurenceBiasingOperation(const G4Track*, const G4BiasingProcessInterface*) final 0057 { 0058 return nullptr; 0059 } 0060 // -- Used: 0061 // -- Will return the biasing operation at the final state generation stage 0062 virtual G4VBiasingOperation* 0063 ProposeFinalStateBiasingOperation(const G4Track* track, 0064 const G4BiasingProcessInterface* callingProcess) final; 0065 0066 public: 0067 // ------------------------------------ 0068 // -- Optional methods from base class: 0069 // ------------------------------------ 0070 virtual void StartRun() final; 0071 virtual void StartTracking(const G4Track* track) final; 0072 0073 private: 0074 // -- The leading particle biasing operation that will actually 0075 // -- trim the final state generation: 0076 G4BOptnLeadingParticle* fLeadingParticleBiasingOperation; 0077 // -- Two-particle final states, they will be biased with a 0078 // -- "further killing probability" for particles accompanying 0079 // -- the leading particle, we remember what processes are concerned: 0080 const G4VProcess* fAnnihilation; 0081 const G4VProcess* fConversion; 0082 const G4VProcess* fDecay; 0083 const G4VProcess* fTwoParticleProcess; 0084 }; 0085 0086 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |