Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

EnergyAnalysis.h

Go to the documentation of this file.
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

Generated at Wed Nov 21 12:20:39 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000