39 #include "AIDA/AIDA.h"
51 :outputFileName(
"fcal.his"),analysisFactory(0),
tree(0),histogramFactory(0)
55 analisysMessenger =
new FCALAnalysisMessenger(
this);
58 analysisFactory = AIDA_createAnalysisFactory();
61 AIDA::ITreeFactory* treeFactory = analysisFactory->createTreeFactory();
66 tree = treeFactory->create(outputFileName,
"hbook",
false,
true);
69 histogramFactory = analysisFactory->createHistogramFactory(*
tree);
70 tupleFactory = analysisFactory->createTupleFactory(*
tree);
82 delete histogramFactory;
85 delete analysisFactory;
108 void FCALAnalysisManager::book()
112 histo_1 = histogramFactory->createHistogram1D(
"1",
"Number of Out Of World", 100,0.,10.);
113 histo_2 = histogramFactory->createHistogram1D(
"2",
"Number of Secondaries", 100,0.,100.);
114 histo_3 = histogramFactory->createHistogram1D(
"3",
"Electromagnetic Energy/MeV", 100,0.,100.);
115 histo_4 = histogramFactory->createHistogram1D(
"4",
"hadronic Energy/MeV", 100,10.,60.);
130 void FCALAnalysisManager::finish()
178 void FCALAnalysisManager::SetOutputFileName(
G4String newName)