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 "
75 manager->SetFirstNtupleId(1);
78 manager -> CreateNtuple(
"101",
"Primary Energy");
79 fNtColId[0] = manager -> CreateNtupleDColumn(
"Ek");
80 manager -> FinishNtuple();
83 manager -> CreateNtuple(
"102",
"Edep");
84 fNtColId[1] = manager -> CreateNtupleDColumn(
"edep");
85 manager -> FinishNtuple();
88 manager -> CreateNtuple(
"103",
"secondary");
89 fNtColId[2] = manager -> CreateNtupleDColumn(
"AA");
90 fNtColId[3] = manager -> CreateNtupleDColumn(
"ZZ");
91 fNtColId[4] = manager -> CreateNtupleDColumn(
"KE");
92 manager -> FinishNtuple();
102 manager -> FillNtupleDColumn(1, fNtColId[0], energy);
103 manager -> AddNtupleRow(1);
109 manager -> FillNtupleDColumn(2, fNtColId[1], edep);
110 manager -> AddNtupleRow(2);
117 manager -> FillNtupleDColumn(3, fNtColId[2], AA);
118 manager -> FillNtupleDColumn(3, fNtColId[3], charge);
119 manager -> FillNtupleDColumn(3, fNtColId[4], energy);
120 manager -> AddNtupleRow(3);
129 manager -> CloseFile();
131 delete G4AnalysisManager::Instance();
void FillSecondaries(G4int AA, G4double charge, G4double energy)
G4GLOB_DLL std::ostream G4cout
void StoreEnergyDeposition(G4double edep)
ExG4HbookAnalysisManager G4AnalysisManager
virtual ~AnalysisManager()
void SetPrimaryEnergy(G4double energy)