G4UserLimits.icc

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 //
00027 // $Id$
00028 //
00029 // 
00030 //
00031 // class G4UserLimits inline implementation
00032 // 
00033 // 01-11-97: change GetMaxAllowedStep(), Hisaya Kurashige
00034 // 08-04-98: new data members, mma
00035 //
00036 
00037 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00038 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00039 
00040 inline G4UserLimits::G4UserLimits(G4double ustepMax,
00041                                   G4double utrakMax,
00042                                   G4double utimeMax,
00043                                   G4double uekinMin,
00044                                   G4double urangMin)
00045 :fMaxStep (ustepMax),fMaxTrack(utrakMax),fMaxTime(utimeMax),
00046  fMinEkine(uekinMin),fMinRange(urangMin),fType("base")
00047 {}
00048 
00049 inline G4UserLimits::G4UserLimits(const G4String& type,
00050                                   G4double ustepMax,
00051                                   G4double utrakMax,
00052                                   G4double utimeMax,
00053                                   G4double uekinMin,
00054                                   G4double urangMin)
00055 :fMaxStep (ustepMax),fMaxTrack(utrakMax),fMaxTime(utimeMax),
00056  fMinEkine(uekinMin),fMinRange(urangMin),fType(type)
00057 {}
00058 
00059 inline const G4String& G4UserLimits::GetType() const
00060 {
00061   return fType;
00062 }
00063 
00064 inline void G4UserLimits::SetType(const G4String& type)
00065 {
00066   fType = type;
00067 }
00068 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00069 
00070 inline G4UserLimits::~G4UserLimits(){}
00071 
00072 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00073   
00074 inline G4double G4UserLimits::GetMaxAllowedStep(const G4Track&)
00075 {
00076   return fMaxStep;
00077 }
00078 
00079 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00080 
00081 inline G4double G4UserLimits::GetUserMaxTrackLength(const G4Track&)
00082 {
00083   return fMaxTrack;
00084 }
00085 
00086 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00087 
00088 inline G4double G4UserLimits::GetUserMaxTime(const G4Track&)
00089 {
00090   return fMaxTime;
00091 }
00092 
00093 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00094 
00095 inline G4double G4UserLimits::GetUserMinEkine(const G4Track&)
00096 {
00097   return fMinEkine;
00098 }
00099 
00100 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00101 
00102 inline G4double G4UserLimits::GetUserMinRange(const G4Track&)
00103 {
00104   return fMinRange;
00105 }
00106 
00107 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00108 
00109 inline void G4UserLimits::SetMaxAllowedStep(G4double ustepMax)
00110 {
00111   fMaxStep=ustepMax;
00112 }
00113 
00114 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00115 
00116 inline void G4UserLimits::SetUserMaxTrackLength(G4double utrakMax)
00117 {
00118   fMaxTrack=utrakMax;
00119 }
00120 
00121 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00122 
00123 inline void G4UserLimits::SetUserMaxTime(G4double utimeMax)
00124 {
00125   fMaxTime=utimeMax;
00126 }
00127 
00128 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00129 
00130 inline void G4UserLimits::SetUserMinEkine(G4double uekinMin)
00131 {
00132   fMinEkine=uekinMin;
00133 }
00134 
00135 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00136 
00137 inline void G4UserLimits::SetUserMinRange(G4double urangMin)
00138 {
00139   fMinRange=urangMin;
00140 }
00141 
00142 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......

Generated on Mon May 27 17:50:08 2013 for Geant4 by  doxygen 1.4.7