45 #include "HistoMessenger.hh"
87 G4cout <<
"Histo::Book: ERROR open file <" << nam <<
">" <<
G4endl;
92 G4cout <<
"### Histo::Save: Opended file <" << nam <<
"> for "
102 G4cout <<
"Created histogram #" << i <<
" id= " <<
fHisto[i]
140 G4cout <<
"Histo::Save: FATAL ERROR writing ROOT file" <<
G4endl;
144 G4cout <<
"### Histo::Save: Histograms and Ntuples are saved" <<
G4endl;
159 G4cout <<
"Histo::Add1D: New histogram will be booked: #"
160 <<
id <<
" <" << name
161 <<
" " << nb <<
" " << x1 <<
" " << x2 <<
" " << u
182 if(i>=0 && i<fNHisto) {
184 G4cout <<
"Histo::SetHisto1D: #" << i
185 <<
" " << nb <<
" " << x1 <<
" " << x2 <<
" " << u
195 G4cout <<
"Histo::SetHisto1D: WARNING! wrong histogram index "
205 G4cout <<
"Histo::Activate: Histogram: #" << i <<
" "
208 if(i>=0 && i<fNHisto) {
220 G4cout <<
"Histo::Fill: Histogram: #" << i <<
" at x= " << x
224 if(i>=0 && i<fNHisto) {
227 G4cout <<
"Histo::Fill: WARNING! wrong histogram index " << i <<
G4endl;
237 G4cout <<
"Histo::Scale: Histogram: #" << i
238 <<
" by factor " << x <<
G4endl;
240 if(i>=0 && i<fNHisto) {
243 G4cout <<
"Histo::Scale: WARNING! wrong histogram index " << i <<
G4endl;
287 if(i >= 0 && i < n) {
289 G4cout <<
"Histo::FillTupleI: i= " << i <<
" id= " <<
fTupleI[i]
294 G4cout <<
"Histo::FillTupleI: WARNING! wrong ntuple index "
305 if(i >= 0 && i < n) {
307 G4cout <<
"Histo::FillTupleF: i= " << i <<
" id= " <<
fTupleF[i]
312 G4cout <<
"Histo::FillTupleF: WARNING! wrong ntuple index "
323 if(i >= 0 && i < n) {
325 G4cout <<
"Histo::FillTupleD: i= " << i <<
" id= " <<
fTupleD[i]
330 G4cout <<
"Histo::FillTupleD: WARNING! wrong ntuple index "
std::vector< G4int > fHisto
void SetHisto1D(G4int, G4int, G4double, G4double, G4double)
std::vector< G4String > fTitles
Float_t x1[n_points_granero]
G4RootAnalysisManager * fManager
void Fill(G4int, G4double, G4double)
std::vector< G4double > fXmax
G4bool OpenFile(const G4String &fileName="")
std::vector< G4double > fUnit
G4bool FillNtupleIColumn(G4int id, G4int value)
G4int CreateH1(const G4String &name, const G4String &title, G4int nbins, G4double xmin, G4double xmax, const G4String &unitName="none", const G4String &fcnName="none", const G4String &binSchemeName="linear")
void FillTupleF(G4int, G4float)
std::vector< G4String > fIds
G4int CreateNtupleIColumn(const G4String &name)
void AddTupleI(const G4String &)
G4bool FillNtupleDColumn(G4int id, G4double value)
std::vector< G4String > fNtupleF
void AddTupleF(const G4String &)
void SetFileName(const G4String &)
G4int CreateNtupleDColumn(const G4String &name)
std::vector< G4int > fTupleF
std::vector< G4String > fNtupleI
HistoMessenger * fMessenger
void ScaleH1(G4int, G4double)
void FillTupleD(G4int, G4double)
std::vector< G4int > fTupleD
G4bool FillNtupleFColumn(G4int id, G4float value)
static G4RootAnalysisManager * Instance()
std::vector< G4String > fNtupleD
G4GLOB_DLL std::ostream G4cout
G4int CreateNtuple(const G4String &name, const G4String &title)
std::vector< G4double > fXmin
void FillTupleI(G4int, G4int)
void Activate(G4int, G4bool)
std::vector< G4int > fBins
Float_t x2[n_points_geant4]
void Add1D(const G4String &, const G4String &, G4int nb, G4double x1, G4double x2, G4double u=1.)
G4bool FillH1(G4int id, G4double value, G4double weight=1.0)
void AddTupleD(const G4String &)
G4int CreateNtupleFColumn(const G4String &name)
std::vector< G4int > fTupleI
std::vector< G4bool > fActive
void AddTuple(const G4String &)