source: trunk/source/processes/hadronic/models/chiral_inv_phase_space/interface/include/G4QDiscProcessMixer.hh @ 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.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// $Id: G4QDiscProcessMixer.hh,v 1.6 2009/04/17 15:22:31 mkossov Exp $
27// GEANT4 tag $Name: geant4-09-03-beta-cand-01 $
28//
29//      ---------------- G4QDiscProcessMixer header ----------------
30//                 by Mikhail Kossov, Aug 2007.
31//  Header of G4QDiscProcessMixer class of the CHIPS Simulation Branch in GEANT4
32// -----------------------------------------------------------------------------
33// Short description: universal mixer of processes (NOT models as in GHAD!)
34// depending on the application energy region (defined by users).
35// ------------------------------------------------------------------------
36
37#ifndef G4QDiscProcessMixer_hh
38#define G4QDiscProcessMixer_hh
39
40// GEANT4 Headers
41#include "globals.hh"
42#include "G4ios.hh"
43#include "Randomize.hh"
44#include "G4VDiscreteProcess.hh"
45#include "G4Track.hh"
46#include "G4Step.hh"
47//#include "G4ParticleTypes.hh"
48//#include "G4VParticleChange.hh"
49//#include "G4ParticleDefinition.hh"
50#include "G4ParticleDefinition.hh"
51#include "G4Gamma.hh"
52#include "G4DynamicParticle.hh"
53#include "G4QDiscreteProcessVector.hh"
54//#include "G4NucleiPropertiesTable.hh"
55//#include "G4ThreeVector.hh"
56//#include "G4LorentzVector.hh"
57
58#include <vector>
59
60class G4QDiscProcessMixer : public G4VDiscreteProcess
61{
62public:
63
64  // Constructor
65  G4QDiscProcessMixer(const G4String& processName = "Mixed Discrete Process",
66                      const G4ParticleDefinition* proj = G4Gamma::Gamma(),
67                      G4ProcessType pType = fHadronic );
68  // Destructor
69  ~G4QDiscProcessMixer();
70
71  G4bool IsApplicable(const G4ParticleDefinition& particle);
72
73  G4double PostStepGetPhysicalInteractionLength(const G4Track& track,
74                                                G4double previousStepSize,
75                                                G4ForceCondition* condition);
76
77  G4double GetMeanFreePath(const G4Track& aTrack, G4double previousStepSize,
78                           G4ForceCondition* condition);
79
80  G4VParticleChange* PostStepDoIt(const G4Track& aTrack, const G4Step& aStep); 
81
82  // DP is the name of the Discrete Process, MaxE is the maximum energy for this process
83  // The processes must be defined, starting from high energy processes (MaxE decreasing)
84  // The MaxE for the first (highest energy process) is always infinity (automatic)
85  // The MinE = MaxE of the lower energy process (MinE=0 for the lowest energy process)
86
87  void AddDiscreteProcess(G4VDiscreteProcess* DP, G4double MaxE);
88
89  //G4LorentzVector GetEnegryMomentumConservation();
90
91  //G4int GetNumberOfNeutronsInTarget();
92
93private:
94
95  // Hide assignment operator as private
96  G4QDiscProcessMixer& operator=(const G4QDiscProcessMixer &right);
97
98  // Copy constructor
99  G4QDiscProcessMixer(const G4QDiscProcessMixer& DPM);
100
101  // BODY
102  const G4ParticleDefinition* DPParticle;             // Particle for DiscreteProc mixture
103  G4QDiscreteProcessVector theDPVector;               // Vector of Discrete Processes
104  //G4LorentzVector EnMomConservation;                // Residual of Energy/Momentum Cons.
105  //G4int nOfNeutrons;                                // #of neutrons in the target nucleus
106};
107#endif
Note: See TracBrowser for help on using the repository browser.