![]() |
|
|||
File indexing completed on 2025-09-17 08:58:07
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 // G4BOptrForceCollisionTrackData 0027 // 0028 // Class Description: 0029 // 0030 // Extends G4Track properties with information needed for the 0031 // force collision biasing operator. 0032 // The G4BOptrForceCollision class is made friend of this one in 0033 // order to keep unexposed to public most of the data members, as 0034 // they are used to control the logic. 0035 // 0036 // Author: M.Verderi (LLR), October 2015. 0037 // -------------------------------------------------------------------- 0038 #ifndef G4BOptrForceCollisionTrackData_hh 0039 #define G4BOptrForceCollisionTrackData_hh 1 0040 0041 #include "G4VAuxiliaryTrackInformation.hh" 0042 0043 class G4BOptrForceCollision; 0044 0045 enum class ForceCollisionState { free, toBeCloned, toBeForced, toBeFreeFlight }; 0046 0047 class G4BOptrForceCollisionTrackData : public G4VAuxiliaryTrackInformation 0048 { 0049 friend class G4BOptrForceCollision; 0050 0051 public: 0052 0053 G4BOptrForceCollisionTrackData( const G4BOptrForceCollision* ); 0054 ~G4BOptrForceCollisionTrackData(); 0055 0056 // -- from base class: 0057 void Print() const; 0058 0059 // -- Get methods: 0060 G4bool IsFreeFromBiasing() const 0061 { 0062 return ( fForceCollisionState == ForceCollisionState::free); 0063 } 0064 0065 // -- no set methods are provided : sets are made under exclusive 0066 // control of G4BOptrForceCollision objects through friendness. 0067 0068 private: 0069 0070 void Reset() 0071 { 0072 fForceCollisionOperator = nullptr; 0073 fForceCollisionState = ForceCollisionState::free; 0074 } 0075 0076 private: 0077 0078 const G4BOptrForceCollision* fForceCollisionOperator = nullptr; 0079 ForceCollisionState fForceCollisionState; 0080 }; 0081 0082 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |