00001
00002
00003
00004 #ifndef PSFANALYSIS_H
00005 #define PSFANALYSIS_H
00006
00007 #include "Analyze.h"
00008
00009 #include "analysis/RebinHist.h"
00010
00011 #include "analysis/Tuple.h"
00012 #include "analysis/smplstat.h"
00013
00014 #include <iostream>
00015
00016
00017 class PSFanalysis : public Analyze , public RebinHist{
00018
00019 public:
00020
00021 PSFanalysis(const Tuple& t, double emin=0, double emax=0);
00022
00023
00024 PSFanalysis();
00025
00026 virtual void report(std::ostream& out);
00027
00028
00029 void clear();
00030
00031 unsigned count () const;
00032
00033
00034 double sigma();
00035
00036
00037 double percentile(double percent);
00038
00039
00040 void row_report(std::ostream& out);
00041
00042
00043 private:
00044 virtual bool apply ();
00045
00046
00047 double m_sigma;
00048 Analyze m_energy;
00049 Analyze m_first_layer;
00050 SampleStatistic m_loge;
00051 double m_emin, m_emax;
00052 };
00053
00054 #endif