38 #include <CLHEP/Units/SystemOfUnits.h>
40 #include "HistoManager.hh"
47 fNtuple1(0), fNtuple2(0),
48 fEabs(0), fEgap(0) ,fLabs(0), fLgap(0)
74 fRootFile =
new TFile(fileName,
"RECREATE");
76 G4cout <<
" HistoManager::book :"
77 <<
" problem creating the ROOT TFile "
86 fHisto[3] =
new TH1D(
"3",
"trackL in absorber", 100, 0., 1*
CLHEP::m);
99 fNtuple2 =
new TTree(
"102",
"TrackL");
104 G4cout <<
"\n----> Histogram file is opened in " << fileName <<
G4endl;
114 G4cout <<
"\n----> Histogram Tree is saved \n" <<
G4endl;
123 G4cout <<
"---> warning from HistoManager::FillHisto() : histo " << ih
124 <<
" does not exist. (xbin=" << xbin <<
" weight=" << weight <<
")"
136 G4cout <<
"---> warning from HistoManager::Normalize() : histo " << ih
137 <<
" does not exist. (fac=" << fac <<
")" <<
G4endl;
162 G4cout <<
"\n ----> print histograms statistic \n" <<
G4endl;
void FillNtuple(G4int id, G4int column, G4double value)
static const G4double fac
void FillHisto(G4int id, G4double bin, G4double weight=1.0)
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
void Normalize(G4int id, G4double fac)
G4GLOB_DLL std::ostream G4cout