Import Geant4 10.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-10 11:51:14 +02:00
parent e2d2f9810a
commit 286caacf06
12421 changed files with 730077 additions and 502383 deletions
@@ -23,11 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file eventgenerator/particleGun/include/HistoManager.hh
/// \file hadronic/Hadr03/include/HistoManager.hh
/// \brief Definition of the HistoManager class
//
//
// $Id$
// $Id: HistoManager.hh 68734 2013-04-05 09:47:02Z gcosmo $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -36,58 +35,21 @@
#define HistoManager_h 1
#include "globals.hh"
#include "g4root.hh"
////#include "g4xml.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
class HistoMessenger;
const G4int MaxHisto = 9;
//#include "g4xml.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
class HistoManager
{
public:
HistoManager();
~HistoManager();
void SetFileName (const G4String& name) { fileName[0] = name;};
void book();
void save();
void SetHisto (G4int,G4int,G4double,G4double,const G4String& unit="none");
void FillHisto(G4int id, G4double e, G4double weight = 1.0);
void Normalize(G4int id, G4double fac);
void PrintHisto (G4int);
G4bool HistoExist (G4int id) {return fExist[id];}
G4double GetHistoUnit(G4int id) {return fUnit[id];}
G4double GetBinWidth (G4int id) {return fWidth[id];}
HistoManager();
~HistoManager();
private:
G4String fileName[2];
G4bool factoryOn;
G4int fNbHist;
G4int fHistId[MaxHisto];
G4AnaH1* fHistPt[MaxHisto];
G4bool fExist[MaxHisto];
G4String fLabel[MaxHisto];
G4String fTitle[MaxHisto];
G4int fNbins[MaxHisto];
G4double fVmin [MaxHisto];
G4double fVmax [MaxHisto];
G4double fUnit [MaxHisto];
G4double fWidth[MaxHisto];
G4bool fAscii[MaxHisto];
HistoMessenger* fHistoMessenger;
private:
void saveAscii();
void Book();
G4String fFileName;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......