00001 // EnergyAnalysis.h 00002 00003 #ifndef ENERGYANALYSIS_H 00004 #define ENERGYANALYSIS_H 00005 00006 #include "Analyze.h" 00007 #include "Statistic.h" 00008 00009 #include "analysis/Histogram.h" 00010 00011 00012 class EnergyAnalysis : public Analyze , public Histogram { 00013 // Accumualte and analyze the reconstructed energy 00014 public: 00015 EnergyAnalysis(const Tuple& t); 00016 00017 virtual void report(std::ostream& out); 00018 00019 float mean_generated()const{return m_MC_energy.stat().mean();} 00020 private: 00021 virtual bool apply(); 00022 const Tuple* m_tuple; 00023 Statistic m_MC_energy; // keep track of generated energy 00024 }; 00025 00026 #endif
1.2.3 written by Dimitri van Heesch,
© 1997-2000