// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration. It is provided under the terms and * // * conditions of the Geant4 Software License, included in the file * // * LICENSE and available at http://cern.ch/geant4/license . These * // * include a list of copyright holders. * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. Please see the license in the file LICENSE and URL above * // * for the full disclaimer and the limitation of liability. * // * * // * This code implementation is the result of the scientific and * // * technical work of the GEANT4 collaboration. * // * By using, copying, modifying or distributing the software (or * // * any work based on the software) you agree to acknowledge its * // * use in resulting scientific publications, and indicate your * // * acceptance of all terms of the Geant4 Software license. * // ******************************************************************** // // $Id: G4NuclWatcher.hh,v 1.15 2010-10-14 20:55:10 mkelsey Exp $ // Geant4 tag: $Name: not supported by cvs2svn $ // // 20100202 M. Kelsey -- Move most code into .cc file // 20100405 M. Kelsey -- Pass const-ref std::vector<> // 20101010 M. Kelsey -- Migrate to integer A and Z #ifndef G4NUCL_WATCHER_HH #define G4NUCL_WATCHER_HH #include "G4Types.hh" #include #include #include class G4NuclWatcher { public: G4NuclWatcher(G4int z, const std::vector& expa, const std::vector& expcs, const std::vector& experr, G4bool check, G4bool nucl); ~G4NuclWatcher() {} void watch(G4int a, G4int z); void setInuclCs(G4double csec, G4int nev); G4double getChsq() const { return izotop_chsq; } G4bool to_check() const { return checkable; } G4bool look_forNuclei() const { return nucleable; } G4double getLhood() const { return aver_lhood; } G4double getNmatched() const { return aver_matched; } std::pair getExpCs() const; std::pair getInuclCs() const; std::pair getAverageRatio() const { return std::pair(average_ratio, aver_rat_err); } void print(); private: G4int nuclz; G4double izotop_chsq; G4double average_ratio; G4double aver_rat_err; G4double aver_lhood; G4double aver_matched; std::vector exper_as; std::vector exper_cs; std::vector exper_err; std::vector simulated_as; std::vector simulated_cs; std::vector simulated_errors; std::vector simulated_prob; G4bool checkable; G4bool nucleable; }; #endif // G4NUCL_WATCHER_HH