34 #include "RunAction.hh"
35 #include "RunActionMessenger.hh"
36 #include "DetectorConstruction.hh"
37 #include "PrimaryGeneratorAction.hh"
50 :fDetector(det),fKinematic(kin)
55 analysisManager->SetFileName(
"monopole");
56 analysisManager->SetVerboseLevel(1);
57 analysisManager->SetActivation(
true);
64 #ifdef G4MULTITHREADED
98 if ( analysisManager->IsActive() ) {
99 analysisManager->Write();
100 analysisManager->CloseFile();
119 analysisManager->SetFirstHistoId(1);
125 analysisManager->CreateH1(
"h1",
"Edep (MeV/mm) along absorber (mm)",
127 analysisManager->CreateH1(
"h2",
"DEDX (MeV/mm) of proton", 100, -3., 7.);
128 analysisManager->CreateH1(
"h3",
"DEDX (MeV/mm) of monopole", 100, -3., 7.);
129 analysisManager->CreateH1(
"h4",
"Range(mm) of proton", 100, -3., 7.,
"mm");
130 analysisManager->CreateH1(
"h5",
"Range(mm) of monopole", 100, -3., 7.,
"mm");
131 analysisManager->OpenFile();
void EndOfRunAction(const G4Run *)
RunActionMessenger * fMessenger
virtual G4Run * GenerateRun()
G4double GetMaxStepSize()
void BeginOfRunAction(const G4Run *)
The primary generator action class with particle gun.
G4CsvAnalysisManager G4AnalysisManager
void SetBinSize(G4double size)
PrimaryGeneratorAction * fKinematic
DetectorConstruction * fDetector
static constexpr double mm
G4GLOB_DLL std::ostream G4cout
Simple detector construction with a box volume placed in a world.