source: trunk/source/processes/hadronic/models/cascade/cascade/include/G4CascadeColliderBase.hh @ 1350

Last change on this file since 1350 was 1350, checked in by garnier, 13 years ago

update to last version 4.9.4

File size: 4.0 KB
Line 
1#ifndef G4CASCADE_COLLIDER_BASE_HH
2#define G4CASCADE_COLLIDER_BASE_HH
3//
4// ********************************************************************
5// * License and Disclaimer                                           *
6// *                                                                  *
7// * The  Geant4 software  is  copyright of the Copyright Holders  of *
8// * the Geant4 Collaboration.  It is provided  under  the terms  and *
9// * conditions of the Geant4 Software License,  included in the file *
10// * LICENSE and available at  http://cern.ch/geant4/license .  These *
11// * include a list of copyright holders.                             *
12// *                                                                  *
13// * Neither the authors of this software system, nor their employing *
14// * institutes,nor the agencies providing financial support for this *
15// * work  make  any representation or  warranty, express or implied, *
16// * regarding  this  software system or assume any liability for its *
17// * use.  Please see the license in the file  LICENSE  and URL above *
18// * for the full disclaimer and the limitation of liability.         *
19// *                                                                  *
20// * This  code  implementation is the result of  the  scientific and *
21// * technical work of the GEANT4 collaboration.                      *
22// * By using,  copying,  modifying or  distributing the software (or *
23// * any work based  on the software)  you  agree  to acknowledge its *
24// * use  in  resulting  scientific  publications,  and indicate your *
25// * acceptance of all terms of the Geant4 Software license.          *
26// ********************************************************************
27// $Id: G4CascadeColliderBase.hh,v 1.3 2010/09/26 04:06:03 mkelsey Exp $
28// Geant4 tag: $Name: hadr-casc-V09-03-85 $
29//
30// 20100714  M. Kelsey -- Move functionality from G4VCascadeCollider, and
31//              provide conservation-checking here, with wrapper function
32//              and control flag.
33// 20100720  M. Kelsey -- Change G4CascadeCheckBalance to pointer member
34// 20010925  M. Kelsey -- Add explosion(A,Z,Eex) and explosion(G4Fragment)
35//              interfaces
36
37#include "G4VCascadeCollider.hh"
38
39#include "globals.hh"
40#include "G4InteractionCase.hh"
41#include <vector>
42
43class G4InuclElementaryParticle;
44class G4InuclNuclei;
45class G4InuclParticle;
46class G4CollisionOutput;
47class G4CascadeCheckBalance;
48class G4Fragment;
49
50class G4CascadeColliderBase : public G4VCascadeCollider {
51public:
52  G4CascadeColliderBase(const char* name, G4int verbose=0);
53  virtual ~G4CascadeColliderBase();
54
55  virtual void setConservationChecks(G4bool doBalance=true) {
56    doConservationChecks = doBalance;
57  }
58
59protected:
60  G4InteractionCase interCase;          // Determine bullet vs. target
61  G4bool doConservationChecks;          // Conservation-law validation
62  G4CascadeCheckBalance* balance;
63
64  // Decide whether to use G4ElementaryParticleCollider or not
65  virtual G4bool useEPCollider(G4InuclParticle* bullet, 
66                               G4InuclParticle* target) const;
67
68  // Decide whether to use G4BigBanger or not
69  virtual G4bool explosion(G4InuclNuclei* target) const;
70  virtual G4bool explosion(G4Fragment* target) const;
71  virtual G4bool explosion(G4int A, G4int Z, G4double excitation) const;
72
73  // Decide whether to use G4IntraNuclearCascader or not
74  virtual G4bool inelasticInteractionPossible(G4InuclParticle* bullet,
75                                              G4InuclParticle* target, 
76                                              G4double ekin) const;
77
78  // ==> Provide same interfaces as G4CascadeCheckBalance itself
79
80  // Validate output for energy, momentum conservation, etc.
81  virtual G4bool validateOutput(G4InuclParticle* bullet,
82                                G4InuclParticle* target,
83                                G4CollisionOutput& output);
84
85  // This is for use with G4EPCollider and G4BigBanger
86  virtual G4bool validateOutput(G4InuclParticle* bullet,
87                                G4InuclParticle* target,
88                const std::vector<G4InuclElementaryParticle>& particles);
89
90  // This is for use with G4Fissioner
91  virtual G4bool validateOutput(G4InuclParticle* bullet,
92                                G4InuclParticle* target,
93                const std::vector<G4InuclNuclei>& fragments);
94};       
95
96#endif  /* G4CASCADE_COLLIDER_BASE_HH */
Note: See TracBrowser for help on using the repository browser.