G4Analyser.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 // 20101010  M. Kelsey -- Migrate to integer A and Z
00029 
00030 #ifndef G4ANALYSER_HH
00031 #define G4ANALYSER_HH
00032 
00033 #define WITH_NUCLEI
00034 
00035 #include "G4CollisionOutput.hh"
00036 //#include "G4InuclParticle.hh"
00037 #include "G4InuclElementaryParticle.hh"
00038 #include "G4InuclNuclei.hh"
00039 #include "G4NuclWatcher.hh"
00040 //#include "G4ExitonConfiguration.hh"
00041 
00042 #include <vector>
00043 
00044 class G4Analyser {
00045 
00046 public:
00047 
00048   G4Analyser();
00049   void setInelCsec(G4double csec, G4bool withn);
00050   void setWatchers(const std::vector<G4NuclWatcher>& watchers);
00051   void try_watchers(G4int a, G4int z, G4bool if_nucl);
00052   void analyse(const G4CollisionOutput& output);
00053   void printResults();
00054   void printResultsSimple();
00055   void handleWatcherStatistics();
00056   void printResultsNtuple();
00057 
00058 private: 
00059 
00060   G4int verboseLevel;
00061   G4double eventNumber;
00062   G4double averageMultiplicity;
00063   G4double averageProtonNumber;
00064   G4double averageNeutronNumber;
00065   G4double averagePionNumber;
00066   G4double averageNucleonKinEnergy;
00067   G4double averageProtonKinEnergy;
00068   G4double averageNeutronKinEnergy;
00069   G4double averagePionKinEnergy;
00070   G4double averageExitationEnergy;
00071   G4double averageOutgoingNuclei;
00072   G4double fissy_prob;
00073   G4double averagePionPl;
00074   G4double averagePionMin;
00075   G4double averagePion0;
00076   G4double averageA;
00077   G4double averageZ;
00078   std::vector<G4NuclWatcher> ana_watchers;
00079   G4double inel_csec;
00080   G4bool withNuclei;
00081 };        
00082 
00083 #endif // G4ANALYSER_HH

Generated on Mon May 27 17:47:38 2013 for Geant4 by  doxygen 1.4.7