/home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/gen/include/RAT/GLG4DeferTrackProc.hh Source File

Ratpac-two: /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/gen/include/RAT/GLG4DeferTrackProc.hh Source File
Ratpac-two
GLG4DeferTrackProc.hh
1 // This file is part of the GenericLAND software library.
2 // $Id: GLG4DeferTrackProc.hh,v 1.1 2005/08/30 19:55:22 volsung Exp $
3 //
4 // Process to limit step length to stay within event time
5 // and defer long tracks (AND tracks which start after event time) using
6 // defered particle "generator".
7 //
8 // Written: G. Horton-Smith, 29-Oct-2001
9 //
10 #ifndef GLG4DeferTrackProc_h
11 #define GLG4DeferTrackProc_h 1
12 
13 #include "G4VProcess.hh"
14 #include "G4ios.hh"
15 #include "globals.hh"
16 
18 
20 class G4HadronCaptureProcess;
21 
22 class GLG4DeferTrackProc : public G4VProcess {
23  public: // with description
24  GLG4DeferTrackProc(const G4String &processName = "DeferTrackProc");
25 
27 
28  virtual G4double PostStepGetPhysicalInteractionLength(const G4Track &track, G4double previousStepSize,
29  G4ForceCondition *condition);
30 
31  virtual G4VParticleChange *PostStepDoIt(const G4Track &, const G4Step &);
32 
33  public: // without description
34  // no operation in AtRestGPIL
35  virtual G4double AtRestGetPhysicalInteractionLength(const G4Track &, G4ForceCondition *) { return -1.0; };
36 
37  // no operation in AtRestDoIt
38  virtual G4VParticleChange *AtRestDoIt(const G4Track &, const G4Step &) { return NULL; };
39 
40  // no operation in AlongStepGPIL
41  virtual G4double AlongStepGetPhysicalInteractionLength(const G4Track &, G4double, G4double, G4double &,
42  G4GPILSelection *) {
43  return -1.0;
44  };
45 
46  // no operation in AlongStepDoIt
47  virtual G4VParticleChange *AlongStepDoIt(const G4Track &, const G4Step &) { return NULL; };
48 
49  private:
50  // hide assignment operator as private
52  GLG4DeferTrackProc &operator=(const GLG4DeferTrackProc &right);
53 
54  private:
55  GLG4PrimaryGeneratorAction *_generator;
56 };
57 
58 #endif
Definition: GLG4DeferTrackProc.hh:22
Definition: GLG4PrimaryGeneratorAction.hh:21