File indexing completed on 2025-02-23 09:22:23
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034 #include "HistoManager.hh"
0035
0036 #include "G4UnitsTable.hh"
0037
0038
0039
0040 HistoManager::HistoManager() : fFileName("opnovice2")
0041 {
0042 Book();
0043 }
0044
0045
0046
0047 void HistoManager::Book()
0048 {
0049
0050 G4AnalysisManager* analysisMan = G4AnalysisManager::Instance();
0051 analysisMan->SetDefaultFileType("root");
0052 analysisMan->SetFileName(fFileName);
0053 analysisMan->SetVerboseLevel(1);
0054 analysisMan->SetActivation(true);
0055
0056
0057
0058 G4int n = 100;
0059 G4double xmn = 0.;
0060 G4double xmx = 100.;
0061
0062
0063 analysisMan->CreateH1("0", "dummy", n, xmn, xmx);
0064
0065 analysisMan->CreateH1("Cerenkov spectrum", "Cerenkov spectrum", n, xmn, xmx);
0066
0067 analysisMan->CreateH1("Scintillation spectrum", "Scintillation spectrum", n, xmn, xmx);
0068
0069 analysisMan->CreateH1("Scintillation time", "scintillation photons creation time", n, xmn, xmx);
0070
0071 analysisMan->CreateH1("WLS abs", "WLS absorption spectrum", n, xmn, xmx);
0072
0073 analysisMan->CreateH1("WLS em", "WLS emission spectrum", n, xmn, xmx);
0074
0075 analysisMan->CreateH1("WLS time", "WLS emission time", n, xmn, xmx);
0076
0077 analysisMan->CreateH1("WLS2 abs", "WLS2 absorption spectrum", n, xmn, xmx);
0078
0079 analysisMan->CreateH1("WLS2 em", "WLS2 emission spectrum", n, xmn, xmx);
0080
0081 analysisMan->CreateH1("WLS2 time", "WLS2 emission time", n, xmn, xmx);
0082
0083 analysisMan->CreateH1("bdry status", "boundary process status", n, xmn, xmx);
0084
0085 analysisMan->CreateH1("x_backward", "X momentum dir of backward-going photons", n, xmn, xmx);
0086
0087 analysisMan->CreateH1("y_backward", "Y momentum dir of backward-going photons", n, xmn, xmx);
0088
0089 analysisMan->CreateH1("z_backward", "Z momentum dir of backward-going photons", n, xmn, xmx);
0090
0091 analysisMan->CreateH1("x_forward", "X momentum dir of forward-going photons", n, xmn, xmx);
0092
0093 analysisMan->CreateH1("y_forward", "Y momentum dir of forward-going photons", n, xmn, xmx);
0094
0095 analysisMan->CreateH1("z_forward", "Z momentum dir of forward-going photons", n, xmn, xmx);
0096
0097 analysisMan->CreateH1("x_fresnel", "X momentum dir of Fresnel-refracted photons", n, xmn, xmx);
0098
0099 analysisMan->CreateH1("y_fresnel", "Y momentum dir of Fresnel-refracted photons", n, xmn, xmx);
0100
0101 analysisMan->CreateH1("z_fresnel", "Z momentum dir of Fresnel-refracted photons", n, xmn, xmx);
0102
0103 analysisMan->CreateH1("Fresnel refraction", "Fresnel-refracted photons", n, xmn, xmx);
0104
0105 analysisMan->CreateH1("Fresnel reflection", "Fresnel-reflected photons", n, xmn, xmx);
0106
0107 analysisMan->CreateH1("Total internal reflection", "Total internal reflected photons", n, xmn,
0108 xmx);
0109
0110 analysisMan->CreateH1("Fresnel reflection plus TIR", "Fresnel-reflected plus TIR photons", n, xmn,
0111 xmx);
0112
0113 analysisMan->CreateH1("Absorption", "Absorbed photons", n, xmn, xmx);
0114
0115 analysisMan->CreateH1("Transmitted", "Transmitted photons", n, xmn, xmx);
0116
0117 analysisMan->CreateH1("Spike reflection", "Spike reflected photons", n, xmn, xmx);
0118
0119 for (G4int i = 0; i < analysisMan->GetNofH1s(); ++i) {
0120 analysisMan->SetH1Activation(i, false);
0121 }
0122 }