G4NuclWatcher.hh

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 // $Id$
00027 //
00028 // 20100202  M. Kelsey -- Move most code into .cc file
00029 // 20100405  M. Kelsey -- Pass const-ref std::vector<>
00030 // 20101010  M. Kelsey -- Migrate to integer A and Z
00031 
00032 #ifndef G4NUCL_WATCHER_HH
00033 #define G4NUCL_WATCHER_HH
00034 
00035 #include "G4Types.hh"
00036 
00037 #include <algorithm>
00038 #include <vector>
00039 #include <cmath>
00040 
00041 class G4NuclWatcher {
00042 public:
00043   G4NuclWatcher(G4int z, 
00044                 const std::vector<G4double>& expa, 
00045                 const std::vector<G4double>& expcs, 
00046                 const std::vector<G4double>& experr, 
00047                 G4bool check, 
00048                 G4bool nucl);
00049 
00050   ~G4NuclWatcher() {}
00051 
00052   void watch(G4int a, G4int z);
00053   void setInuclCs(G4double csec, G4int nev);
00054 
00055   G4double getChsq() const { return izotop_chsq; }
00056   G4bool to_check() const { return checkable; }
00057   G4bool look_forNuclei() const { return nucleable; }
00058   G4double getLhood() const { return aver_lhood; }
00059   G4double getNmatched() const { return aver_matched; }
00060 
00061   std::pair<G4double, G4double> getExpCs() const;
00062   std::pair<G4double, G4double> getInuclCs() const;
00063 
00064   std::pair<G4double, G4double> getAverageRatio() const { 
00065     return std::pair<G4double, G4double>(average_ratio, aver_rat_err); 
00066   }
00067 
00068   void print();
00069 
00070 private: 
00071   G4int nuclz;
00072   G4double izotop_chsq;
00073   G4double average_ratio;
00074   G4double aver_rat_err;
00075   G4double aver_lhood;
00076   G4double aver_matched;
00077   std::vector<G4double> exper_as;
00078   std::vector<G4double> exper_cs;
00079   std::vector<G4double> exper_err;
00080   std::vector<G4double> simulated_as;
00081   std::vector<G4double> simulated_cs;
00082   std::vector<G4double> simulated_errors;
00083   std::vector<G4double> simulated_prob;
00084   G4bool checkable;
00085   G4bool nucleable;
00086 };
00087 
00088 #endif // G4NUCL_WATCHER_HH 
00089 

Generated on Mon May 27 17:49:07 2013 for Geant4 by  doxygen 1.4.7