31 #include "AnalysisManager.hh"
58 manager->SetVerboseLevel(2);
61 G4String fileName =
"radioprotection.root";
64 manager->SetNtupleDirectoryName(
"radioprotection_ntuple");
67 G4bool fileOpen = manager->OpenFile(fileName);
69 G4cout <<
"\n---> HistoManager::book(): cannot open "
74 manager->SetFirstNtupleId(1);
77 manager -> CreateNtuple(
"101",
"Primary Energy");
78 fNtColId[0] = manager -> CreateNtupleDColumn(
"Ek");
79 manager -> FinishNtuple();
82 manager -> CreateNtuple(
"102",
"Edep");
83 fNtColId[1] = manager -> CreateNtupleDColumn(
"edep");
84 manager -> FinishNtuple();
87 manager -> CreateNtuple(
"103",
"secondary");
88 fNtColId[2] = manager -> CreateNtupleDColumn(
"AA");
89 fNtColId[3] = manager -> CreateNtupleDColumn(
"ZZ");
90 fNtColId[4] = manager -> CreateNtupleDColumn(
"KE");
91 manager -> FinishNtuple();
101 manager -> FillNtupleDColumn(1,
fNtColId[0], energy);
102 manager -> AddNtupleRow(1);
108 manager -> FillNtupleDColumn(2,
fNtColId[1], edep);
109 manager -> AddNtupleRow(2);
116 manager -> FillNtupleDColumn(3,
fNtColId[2], AA);
117 manager -> FillNtupleDColumn(3,
fNtColId[3], charge);
118 manager -> FillNtupleDColumn(3,
fNtColId[4], energy);
119 manager -> AddNtupleRow(3);
128 manager -> CloseFile();
130 delete G4AnalysisManager::Instance();
void StoreEnergyDeposition(G4double edep)
void FillSecondaries(G4int AA, G4double charge, G4double energy)
G4CsvAnalysisManager G4AnalysisManager
void SetPrimaryEnergy(G4double energy)
G4GLOB_DLL std::ostream G4cout
virtual ~AnalysisManager()