35 #include "HistoManager.hh"
37 #include "DetectorConstruction.hh"
63 delete G4AnalysisManager::Instance();
76 analysisManager->SetVerboseLevel(1);
77 analysisManager->SetActivation(
true);
82 fHisto[iHisto] = analysisManager->CreateH1(
"10",
83 "Energy deposit at radius (mm) normalised on 1st channel",
87 fHisto[iHisto] = analysisManager->CreateH1(
"11",
88 "Energy deposit at radius (mm) normalised to integral",
92 fHisto[iHisto] = analysisManager->CreateH1(
"12",
93 "Energy deposit (MeV/kg/electron) at radius (mm)",
97 fHisto[iHisto] = analysisManager->CreateH1(
"13",
101 fHisto[iHisto] = analysisManager->CreateH1(
"14",
102 "Energy profile (MeV/kg/electron) over Z (mm) at Central Voxel",
106 fHisto[iHisto] = analysisManager->CreateH1(
"15",
107 "Energy (MeV) of fGamma produced in the target",
111 fHisto[iHisto] = analysisManager->CreateH1(
"16",
115 fHisto[iHisto] = analysisManager->CreateH1(
"17",
119 fHisto[iHisto] = analysisManager->CreateH1(
"18",
123 fHisto[iHisto] = analysisManager->CreateH1(
"19",
124 "Gamma Energy Fluence (MeV/cm2) at radius(mm) in front of phantom",
129 for(
int i=0; i<iHisto+1; i++) analysisManager->SetH1Activation(i,
false);
139 if(bForceActivation) {
141 analysisManager->SetH1Activation(
fHisto[i],
true);
142 analysisManager->SetActivation(
true);
145 if(analysisManager->IsActive()) {
153 std::vector<G4int> histoId { 0, 1, 2, 9 };
154 for(
auto v : histoId)
167 std::vector<G4int> histoId { 3, 4 };
168 for(
auto v : histoId)
180 std::vector<G4int> histoId { 5, 6, 7 ,8 };
181 for(
auto v : histoId)
195 if(!G4AnalysisManager::Instance()->IsActive())
return;
200 G4String title = G4AnalysisManager::Instance()->GetH1Title(histoId);
201 G4int nbins = G4AnalysisManager::Instance()->GetH1Nbins(histoId);
202 G4double xmin = G4AnalysisManager::Instance()->GetH1Xmin(histoId);
203 G4double xmax = G4AnalysisManager::Instance()->GetH1Xmax(histoId);
204 G4double width = G4AnalysisManager::Instance()->GetH1Width(histoId);
205 G4cout<<
"Histogram parameters : "<<i<<
" "<<histoId<<
" : "<<nbins<<
" ";
static constexpr double MeV
static constexpr double mm
G4double GetMaxEnergy() const
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
G4CsvAnalysisManager G4AnalysisManager
G4int GetNumberDivZ() const
G4double GetAbsorberZ() const
G4double GetAbsorberR() const
G4int GetNumberDivE() const
G4GLOB_DLL std::ostream G4cout
void Update(DetectorConstruction *det, bool bForceActivation=false)
void DumpHistoParameters()
G4int GetNumberDivR() const
Simple detector construction with a box volume placed in a world.