source: trunk/source/geometry/magneticfield/test/NTST/include/NTSTLooperDeath.hh@ 1256

Last change on this file since 1256 was 1199, checked in by garnier, 16 years ago

nvx fichiers dans CVS

File size: 3.7 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// -- Bogus -- BaBar Object-Oriented Geant-based Unified Simulation
28//
29// BgsLooperDeath
30//
31// Description:
32// This is a simple GEANT4 process that destroys any particle below
33// the specified total kinetic energy that reverse direction (loops 180
34// degress) in the x/y plane.
35//
36// Based on BgsChargedLowEnergyDeath
37//
38// Author List:
39// David Williams
40//
41// Modification History:
42//
43//-----------------------------------------------------------------------------
44#ifndef NTSTlooperDeath_hh
45#define NTSTLooperDeath_hh 1
46
47#include "globals.hh"
48#include "G4VProcess.hh"
49
50class NTSTLooperDeath : public G4VProcess
51{
52public:
53
54 NTSTLooperDeath( G4double theMinMomentum=5*MeV,
55 const char* name="NTSTLoopDeath",
56 G4ProcessType type=fUserDefined );
57
58 ~NTSTLooperDeath();
59
60
61 //
62 // Derived methods
63 //
64 virtual G4double
65 PostStepGetPhysicalInteractionLength( const G4Track& track,
66 G4double previousStepSize,
67 G4ForceCondition* condition );
68
69 virtual G4VParticleChange* PostStepDoIt( const G4Track &track,
70 const G4Step &step );
71
72 virtual G4double
73 AlongStepGetPhysicalInteractionLength( const G4Track&,
74 G4double , // previousStepSize,
75 G4double , // currentMinimumStep,
76 G4double& , // currentSafety,
77 G4GPILSelection* ) // selection )
78 { return -1.0; }
79
80 virtual G4VParticleChange* AlongStepDoIt( const G4Track & , // track,
81 const G4Step & ) // step
82 { return 0; }
83
84 virtual G4double
85 AtRestGetPhysicalInteractionLength( const G4Track &, // track,
86 G4ForceCondition * ) // force )
87 { return -1.0; }
88
89 virtual G4VParticleChange*
90 AtRestDoIt( const G4Track &, const G4Step & ) // track, step )
91 { return 0; }
92
93
94 virtual G4bool IsApplicable( const G4ParticleDefinition &particle )
95 { return (particle.GetPDGCharge() != 0); }
96
97 //
98 // Accessors
99 //
100 void SetMinMomentum( G4double theMinMomentum )
101 { minMomentum = theMinMomentum; }
102 G4double GetMinMomentum() const
103 { return minMomentum; }
104
105protected:
106
107 G4double minMomentum;
108};
109
110#endif
Note: See TracBrowser for help on using the repository browser.