Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4NuclWatcher.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 // $Id: G4NuclWatcher.hh 66241 2012-12-13 18:34:42Z gunter $
27 //
28 // 20100202 M. Kelsey -- Move most code into .cc file
29 // 20100405 M. Kelsey -- Pass const-ref std::vector<>
30 // 20101010 M. Kelsey -- Migrate to integer A and Z
31 
32 #ifndef G4NUCL_WATCHER_HH
33 #define G4NUCL_WATCHER_HH
34 
35 #include "G4Types.hh"
36 
37 #include <algorithm>
38 #include <vector>
39 #include <cmath>
40 
42 public:
44  const std::vector<G4double>& expa,
45  const std::vector<G4double>& expcs,
46  const std::vector<G4double>& experr,
47  G4bool check,
48  G4bool nucl);
49 
51 
52  void watch(G4int a, G4int z);
53  void setInuclCs(G4double csec, G4int nev);
54 
55  G4double getChsq() const { return izotop_chsq; }
56  G4bool to_check() const { return checkable; }
57  G4bool look_forNuclei() const { return nucleable; }
58  G4double getLhood() const { return aver_lhood; }
59  G4double getNmatched() const { return aver_matched; }
60 
61  std::pair<G4double, G4double> getExpCs() const;
62  std::pair<G4double, G4double> getInuclCs() const;
63 
64  std::pair<G4double, G4double> getAverageRatio() const {
65  return std::pair<G4double, G4double>(average_ratio, aver_rat_err);
66  }
67 
68  void print();
69 
70 private:
71  G4int nuclz;
72  G4double izotop_chsq;
73  G4double average_ratio;
74  G4double aver_rat_err;
75  G4double aver_lhood;
76  G4double aver_matched;
77  std::vector<G4double> exper_as;
78  std::vector<G4double> exper_cs;
79  std::vector<G4double> exper_err;
80  std::vector<G4double> simulated_as;
81  std::vector<G4double> simulated_cs;
82  std::vector<G4double> simulated_errors;
83  std::vector<G4double> simulated_prob;
84  G4bool checkable;
85  G4bool nucleable;
86 };
87 
88 #endif // G4NUCL_WATCHER_HH
89 
G4NuclWatcher(G4int z, const std::vector< G4double > &expa, const std::vector< G4double > &expcs, const std::vector< G4double > &experr, G4bool check, G4bool nucl)
std::pair< G4double, G4double > getInuclCs() const
std::vector< ExP01TrackerHit * > a
Definition: ExP01Classes.hh:33
std::pair< G4double, G4double > getAverageRatio() const
int G4int
Definition: G4Types.hh:78
G4double getNmatched() const
void setInuclCs(G4double csec, G4int nev)
bool G4bool
Definition: G4Types.hh:79
G4double getChsq() const
std::pair< G4double, G4double > getExpCs() const
G4bool to_check() const
tuple z
Definition: test.py:28
double G4double
Definition: G4Types.hh:76
G4double getLhood() const
G4bool look_forNuclei() const
void watch(G4int a, G4int z)