Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:59:17

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 //
0027 // class description
0028 //
0029 // A "process" to be registered to the process manager of each particle,
0030 // in the UserPhysicsList, in order to take into account the user limits
0031 // defined in the G4UserLimits object attached to a logical volume.
0032 
0033 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0034 
0035 #ifndef G4UserSpecialCuts_h
0036 #define G4UserSpecialCuts_h 1
0037 
0038 #include "G4ios.hh"
0039 #include "globals.hh"
0040 #include "G4VProcess.hh"
0041 
0042 class G4LossTableManager;
0043 
0044 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0045 
0046 class G4UserSpecialCuts : public G4VProcess 
0047 {
0048   public:  // with description     
0049 
0050      G4UserSpecialCuts(const G4String& processName ="UserSpecialCut" );
0051 
0052      virtual ~G4UserSpecialCuts();
0053 
0054      virtual G4double PostStepGetPhysicalInteractionLength(
0055                              const G4Track& track,
0056                              G4double   previousStepSize,
0057                              G4ForceCondition* condition
0058                             );
0059 
0060      virtual G4VParticleChange* PostStepDoIt(
0061                              const G4Track& ,
0062                              const G4Step& 
0063                             );
0064                             
0065   public:  // without description 
0066                                  
0067      //  no operation in  AtRestGPIL
0068      virtual G4double AtRestGetPhysicalInteractionLength(
0069                              const G4Track& ,
0070                              G4ForceCondition* 
0071                             ){ return -1.0; };
0072                             
0073      //  no operation in  AtRestDoIt      
0074      virtual G4VParticleChange* AtRestDoIt(
0075                              const G4Track& ,
0076                              const G4Step&
0077                             ){return 0;};
0078 
0079      //  no operation in  AlongStepGPIL
0080      virtual G4double AlongStepGetPhysicalInteractionLength(
0081                              const G4Track&,
0082                              G4double  ,
0083                              G4double  ,
0084                              G4double& ,
0085                              G4GPILSelection*
0086                             ){ return -1.0; };
0087 
0088      //  no operation in  AlongStepDoIt
0089      virtual G4VParticleChange* AlongStepDoIt(
0090                              const G4Track& ,
0091                              const G4Step& 
0092                             ) {return 0;};
0093 
0094   private:
0095   
0096   // hide assignment operator as private 
0097       G4UserSpecialCuts(G4UserSpecialCuts&);
0098       G4UserSpecialCuts& operator=(const G4UserSpecialCuts& right);
0099 
0100   G4LossTableManager* theLossTableManager;
0101 
0102 };
0103 
0104 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0105 
0106 #endif
0107