G4ITTransportation.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 // $Id$
00027 //
00031 //
00032 // Original Author : John Apostolakis
00033 //
00034 // Contact : Mathieu Karamitros (kara (AT) cenbg . in2p3 . fr)
00035 //
00036 // WARNING : This class is released as a prototype.
00037 // It might strongly evolve or even disapear in the next releases.
00038 //
00039 // History:
00040 // -----------
00041 // 10 Oct 2011 M.Karamitros created
00042 //
00043 // -------------------------------------------------------------------
00044 
00045 inline void
00046 G4ITTransportation::SetPropagatorInField( G4PropagatorInField* pFieldPropagator)
00047 {
00048    fFieldPropagator= pFieldPropagator;
00049 }
00050 
00051 inline G4PropagatorInField* G4ITTransportation::GetPropagatorInField()
00052 {
00053    return fFieldPropagator;
00054 }
00055 
00056 inline void G4ITTransportation::SetVerboseLevel( G4int verboseLev )
00057 {
00058   fVerboseLevel= verboseLev;
00059 }
00060 
00061 inline G4int G4ITTransportation::GetVerboseLevel( ) const
00062 {
00063   return fVerboseLevel;
00064 }
00065 
00066 inline G4double G4ITTransportation::GetThresholdWarningEnergy() const
00067 {
00068   return fThreshold_Warning_Energy;
00069 }
00070 
00071 inline G4double G4ITTransportation::GetThresholdImportantEnergy() const
00072 {
00073   return fThreshold_Important_Energy;
00074 }
00075 
00076 inline G4int G4ITTransportation::GetThresholdTrials() const
00077 {
00078   return fThresholdTrials;
00079 }
00080 
00081 inline void G4ITTransportation::SetThresholdWarningEnergy( G4double newEnWarn )
00082 {
00083   fThreshold_Warning_Energy= newEnWarn;
00084 }
00085 
00086 inline void G4ITTransportation::SetThresholdImportantEnergy( G4double newEnImp )
00087 {
00088   fThreshold_Important_Energy = newEnImp;
00089 }
00090 
00091 inline void G4ITTransportation::SetThresholdTrials(G4int newMaxTrials )
00092 {
00093   fThresholdTrials = newMaxTrials;
00094 }
00095 
00096      // Get/Set parameters for killing loopers:
00097      //   Above 'important' energy a 'looping' particle in field will
00098      //   *NOT* be abandoned, except after fThresholdTrials attempts.
00099      // Below Warning energy, no verbosity for looping particles is issued
00100 
00101 inline G4double G4ITTransportation::GetMaxEnergyKilled() const
00102 {
00103   return fMaxEnergyKilled;
00104 }
00105 
00106 inline G4double G4ITTransportation::GetSumEnergyKilled() const
00107 {
00108   return fSumEnergyKilled;
00109 }
00110 
00111 inline void G4ITTransportation::ResetKilledStatistics(G4int report)
00112 {
00113   if( report ) {
00114     G4cout << " G4ITTransportation: Statistics for looping particles " << G4endl;
00115     G4cout << "   Sum of energy of loopers killed: " <<  fSumEnergyKilled << G4endl;
00116     G4cout << "   Max energy of loopers killed: " <<  fMaxEnergyKilled << G4endl;
00117   }
00118 
00119   fSumEnergyKilled= 0;
00120   fMaxEnergyKilled= -1.0*CLHEP::GeV;
00121 }
00122      // Statistics for tracks killed (currently due to looping in field)
00123 
00124 inline void G4ITTransportation::EnableShortStepOptimisation(G4bool optimiseShortStep)
00125 {
00126   fShortStepOptimisation=optimiseShortStep;
00127 }

Generated on Mon May 27 17:48:42 2013 for Geant4 by  doxygen 1.4.7