31 #include "AnalysisManager.hh"
61 G4String fileName =
"radioprotection.root";
69 G4cout <<
"\n---> HistoManager::book(): cannot open "
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();