ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4NuclWatcher.hh
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file G4NuclWatcher.hh
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 //
27 // 20100202 M. Kelsey -- Move most code into .cc file
28 // 20100405 M. Kelsey -- Pass const-ref std::vector<>
29 // 20101010 M. Kelsey -- Migrate to integer A and Z
30 
31 #ifndef G4NUCL_WATCHER_HH
32 #define G4NUCL_WATCHER_HH
33 
34 #include "G4Types.hh"
35 
36 #include <algorithm>
37 #include <vector>
38 #include <cmath>
39 
41 public:
43  const std::vector<G4double>& expa,
44  const std::vector<G4double>& expcs,
45  const std::vector<G4double>& experr,
46  G4bool check,
47  G4bool nucl);
48 
50 
51  void watch(G4int a, G4int z);
52  void setInuclCs(G4double csec, G4int nev);
53 
54  G4double getChsq() const { return izotop_chsq; }
55  G4bool to_check() const { return checkable; }
56  G4bool look_forNuclei() const { return nucleable; }
57  G4double getLhood() const { return aver_lhood; }
58  G4double getNmatched() const { return aver_matched; }
59 
60  std::pair<G4double, G4double> getExpCs() const;
61  std::pair<G4double, G4double> getInuclCs() const;
62 
63  std::pair<G4double, G4double> getAverageRatio() const {
64  return std::pair<G4double, G4double>(average_ratio, aver_rat_err);
65  }
66 
67  void print();
68 
69 private:
76  std::vector<G4double> exper_as;
77  std::vector<G4double> exper_cs;
78  std::vector<G4double> exper_err;
79  std::vector<G4double> simulated_as;
80  std::vector<G4double> simulated_cs;
81  std::vector<G4double> simulated_errors;
82  std::vector<G4double> simulated_prob;
85 };
86 
87 #endif // G4NUCL_WATCHER_HH
88