source: trunk/source/processes/transportation/include/G4Transportation.icc @ 1055

Last change on this file since 1055 was 1055, checked in by garnier, 15 years ago

maj sur la beta de geant 4.9.3

File size: 4.4 KB
Line 
1//
2// ********************************************************************
3// * License and Disclaimer                                           *
4// *                                                                  *
5// * The  Geant4 software  is  copyright of the Copyright Holders  of *
6// * the Geant4 Collaboration.  It is provided  under  the terms  and *
7// * conditions of the Geant4 Software License,  included in the file *
8// * LICENSE and available at  http://cern.ch/geant4/license .  These *
9// * include a list of copyright holders.                             *
10// *                                                                  *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work  make  any representation or  warranty, express or implied, *
14// * regarding  this  software system or assume any liability for its *
15// * use.  Please see the license in the file  LICENSE  and URL above *
16// * for the full disclaimer and the limitation of liability.         *
17// *                                                                  *
18// * This  code  implementation is the result of  the  scientific and *
19// * technical work of the GEANT4 collaboration.                      *
20// * By using,  copying,  modifying or  distributing the software (or *
21// * any work based  on the software)  you  agree  to acknowledge its *
22// * use  in  resulting  scientific  publications,  and indicate your *
23// * acceptance of all terms of the Geant4 Software license.          *
24// ********************************************************************
25//
26//
27// $Id: G4Transportation.icc,v 1.11 2007/11/08 17:59:52 japost Exp $
28// GEANT4 tag $Name: geant4-09-03-beta-cand-01 $
29//
30
31//
32//
33//        Inline function implementation.
34//
35// =======================================================================
36// Created:  9 June 1998, J. Apostolakis
37// =======================================================================
38//
39
40inline void
41G4Transportation::SetPropagatorInField( G4PropagatorInField* pFieldPropagator)
42{
43   fFieldPropagator= pFieldPropagator;
44}
45
46inline G4PropagatorInField* G4Transportation::GetPropagatorInField()
47{
48   return fFieldPropagator;
49}
50
51inline G4bool G4Transportation::DoesGlobalFieldExist()
52{
53  G4TransportationManager* transportMgr;
54  transportMgr= G4TransportationManager::GetTransportationManager();
55
56  // fFieldExists= transportMgr->GetFieldManager()->DoesFieldExist();
57  // return fFieldExists;
58  return transportMgr->GetFieldManager()->DoesFieldExist();
59}
60
61inline void G4Transportation::SetVerboseLevel( G4int verboseLev )
62{
63  fVerboseLevel= verboseLev;
64}
65
66inline G4int G4Transportation::GetVerboseLevel( ) const
67{
68  return fVerboseLevel;
69}
70
71inline G4double G4Transportation::GetThresholdWarningEnergy() const
72{
73  return fThreshold_Warning_Energy;
74}
75 
76inline G4double G4Transportation::GetThresholdImportantEnergy() const
77{
78  return fThreshold_Important_Energy;
79}
80
81inline G4int G4Transportation::GetThresholdTrials() const
82{
83  return fThresholdTrials;
84}
85
86inline void G4Transportation::SetThresholdWarningEnergy( G4double newEnWarn )
87{
88  fThreshold_Warning_Energy= newEnWarn;
89}
90
91inline void G4Transportation::SetThresholdImportantEnergy( G4double newEnImp )
92{
93  fThreshold_Important_Energy = newEnImp;
94}
95
96inline void G4Transportation::SetThresholdTrials(G4int newMaxTrials )
97{
98  fThresholdTrials = newMaxTrials;
99}
100
101     // Get/Set parameters for killing loopers:
102     //   Above 'important' energy a 'looping' particle in field will
103     //   *NOT* be abandoned, except after fThresholdTrials attempts.
104     // Below Warning energy, no verbosity for looping particles is issued
105
106inline G4double G4Transportation::GetMaxEnergyKilled() const
107{
108  return fMaxEnergyKilled;
109}
110
111inline G4double G4Transportation::GetSumEnergyKilled() const
112{
113  return fSumEnergyKilled;
114}
115
116inline void G4Transportation::ResetKilledStatistics(G4int report)
117{
118  if( report ) {
119    G4cout << " G4Transportation: Statistics for looping particles " << G4endl;
120    G4cout << "   Sum of energy of loopers killed: " <<  fSumEnergyKilled << G4endl;
121    G4cout << "   Max energy of loopers killed: " <<  fMaxEnergyKilled << G4endl;
122  }
123
124  fSumEnergyKilled= 0;
125  fMaxEnergyKilled= -1.0*GeV;
126}
127     // Statistics for tracks killed (currently due to looping in field)
128
129inline void G4Transportation::EnableShortStepOptimisation(G4bool optimiseShortStep)
130{
131  fShortStepOptimisation=optimiseShortStep;
132}
Note: See TracBrowser for help on using the repository browser.