1 | // |
---|
2 | // ******************************************************************** |
---|
3 | // * License and Disclaimer * |
---|
4 | // * * |
---|
5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
7 | // * conditions of the Geant4 Software License, included in the file * |
---|
8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
9 | // * include a list of copyright holders. * |
---|
10 | // * * |
---|
11 | // * Neither the authors of this software system, nor their employing * |
---|
12 | // * institutes,nor the agencies providing financial support for this * |
---|
13 | // * work make any representation or warranty, express or implied, * |
---|
14 | // * regarding this software system or assume any liability for its * |
---|
15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
16 | // * for the full disclaimer and the limitation of liability. * |
---|
17 | // * * |
---|
18 | // * This code implementation is the result of the scientific and * |
---|
19 | // * technical work of the GEANT4 collaboration. * |
---|
20 | // * By using, copying, modifying or distributing the software (or * |
---|
21 | // * any work based on the software) you agree to acknowledge its * |
---|
22 | // * use in resulting scientific publications, and indicate your * |
---|
23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
24 | // ******************************************************************** |
---|
25 | // |
---|
26 | // |
---|
27 | // Igor Pshenichnov 01.12.2006 |
---|
28 | |
---|
29 | #ifndef MFTestHistoManager_h |
---|
30 | #define MFTestHistoManager_h 1 |
---|
31 | |
---|
32 | #include "globals.hh" |
---|
33 | |
---|
34 | class TFile; |
---|
35 | class TH1D; |
---|
36 | class TH2D; |
---|
37 | |
---|
38 | class MFTestHistoManager |
---|
39 | { |
---|
40 | public: |
---|
41 | |
---|
42 | MFTestHistoManager(); |
---|
43 | ~MFTestHistoManager(); |
---|
44 | |
---|
45 | #ifdef G4ANALYSIS_USE_ROOT |
---|
46 | TH1D* GetHisto(G4int id) {return histo[id];}; |
---|
47 | TH2D* GetHisto2(G4int id) {return histo2[id];}; |
---|
48 | #endif |
---|
49 | |
---|
50 | void BookHisto(); |
---|
51 | void NormalizeHisto(); |
---|
52 | void CleanHisto(); |
---|
53 | |
---|
54 | void fill(G4int i, G4double x, G4double y); |
---|
55 | void fill2(G4int i, G4double x, G4double y, G4double z); |
---|
56 | |
---|
57 | inline G4int GetZ() {return Z;}; |
---|
58 | inline G4int GetA() {return A;}; |
---|
59 | inline G4int GetIterations() {return iterations;}; |
---|
60 | inline G4double GetLowEn() {return lowLimitExEn;}; |
---|
61 | inline G4double GetUpEn() {return upperLimitExEn;}; |
---|
62 | |
---|
63 | |
---|
64 | |
---|
65 | private: |
---|
66 | |
---|
67 | #ifdef G4ROOT_USE |
---|
68 | TFile* fFile; |
---|
69 | TH1D* histo[20]; |
---|
70 | TH2D* histo2[10]; |
---|
71 | #endif |
---|
72 | |
---|
73 | |
---|
74 | G4int Z; |
---|
75 | G4int A; |
---|
76 | G4int iterations; |
---|
77 | |
---|
78 | G4String fileName; |
---|
79 | G4String fileType; |
---|
80 | |
---|
81 | G4String fileFullName; |
---|
82 | G4int compressionFactor; |
---|
83 | |
---|
84 | G4double lowLimitExEn; |
---|
85 | G4double upperLimitExEn; |
---|
86 | G4int binsExEn; |
---|
87 | G4int eventsPerBin; |
---|
88 | |
---|
89 | }; |
---|
90 | |
---|
91 | #endif |
---|