Geant4  10.01.p03
G4CascadeDeexciteBase.hh
Go to the documentation of this file.
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 #ifndef G4CASCADE_DEEXCITE_BASE_HH
27 #define G4CASCADE_DEEXCITE_BASE_HH 1
28 // $Id$
29 //
30 // Semi-concrete base class for de-excitation modules, analogous to
31 // G4CascadeColliderBase.
32 //
33 // 20130628 M.Kelsey -- Add makeFragment() with zero momentum
34 
37 #include "G4InuclNuclei.hh"
38 #include "G4LorentzVector.hh"
39 #include <vector>
40 
42 class G4Fragment;
43 
44 
46 public:
47  G4CascadeDeexciteBase(const char* name);
48  virtual ~G4CascadeDeexciteBase();
49 
50  virtual void setVerboseLevel(G4int verbose=0);
51 
52 protected:
53  // Decide whether to use G4BigBanger or not
54  virtual G4bool explosion(const G4Fragment& target) const;
55  virtual G4bool explosion(G4int A, G4int Z, G4double excitation) const;
56 
57 protected:
58  G4CascadeCheckBalance* balance; // For conservation checking
59 
60  // ==> Provide interfaces to G4CascadeCheckBalance
61  virtual G4bool validateOutput(const G4Fragment& target,
62  G4CollisionOutput& output);
63 
64  // This is for use with G4BigBanger
65  virtual G4bool validateOutput(const G4Fragment& target,
66  const std::vector<G4InuclElementaryParticle>& particles);
67 
68  // This is for use with G4Fissioner
69  virtual G4bool validateOutput(const G4Fragment& target,
70  const std::vector<G4InuclNuclei>& fragments);
71 
72  // Interfaces between local content and G4Fragment
73  void getTargetData(const G4Fragment& target);
74  G4int A; // Buffers to collect target data for all modules
76  G4LorentzVector PEX; // Four momentum of recoil in Bertini units (GeV)
77  G4double EEXS; // Excitation energy in MeV
78 
79  // NOTE: Momentum passed by value so that energy/mass can be adjusted
81  G4double EX=0.);
82  const G4Fragment& makeFragment(G4int A, G4int Z, G4double EX=0.);
83  G4Fragment aFragment; // Reusable buffer to reduce new/delete cycling
84 
85 private:
86  // Copying of modules is forbidden
89 };
90 
91 #endif /* G4CASCADE_DEEXCITE_BASE_HH */
virtual void setVerboseLevel(G4int verbose=0)
G4String name
Definition: TRTMaterials.hh:40
int G4int
Definition: G4Types.hh:78
void getTargetData(const G4Fragment &target)
bool G4bool
Definition: G4Types.hh:79
G4CascadeDeexciteBase & operator=(const G4CascadeDeexciteBase &)
virtual G4bool explosion(const G4Fragment &target) const
G4CascadeCheckBalance * balance
const G4Fragment & makeFragment(G4LorentzVector mom, G4int A, G4int Z, G4double EX=0.)
virtual G4bool validateOutput(const G4Fragment &target, G4CollisionOutput &output)
G4CascadeDeexciteBase(const char *name)
double G4double
Definition: G4Types.hh:76
CLHEP::HepLorentzVector G4LorentzVector