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

PSFanalysis.h

Go to the documentation of this file.
00001 // PSFanalysis.h
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 // analysis of the Point Spread Function
00019 public:
00020 
00021     PSFanalysis(const Tuple& t, double emin=0, double emax=0);
00022     // create new analysis object connected to the tuple, that will accept events in the 
00023     // energy range and layer range. (Default values: all events accepted)
00024     PSFanalysis();
00025 
00026     virtual void report(std::ostream& out);
00027     // formatted report
00028 
00029     void clear();
00030 
00031     unsigned        count () const; 
00032     // return number used (override Analyze) 
00033 
00034     double sigma();
00035     // return the effective sigma
00036 
00037     double percentile(double percent);
00038     // return angle for cumulative distribution
00039 
00040     void row_report(std::ostream& out);
00041     // special row for making tables
00042 
00043 private:
00044     virtual bool  apply ();
00045     // analyze an event from the tuple
00046 
00047     double m_sigma;
00048     Analyze m_energy; // access to energy
00049     Analyze m_first_layer; // access to (fit) conversion layer
00050     SampleStatistic m_loge; // histogra
00051     double m_emin, m_emax; // optional energy cuts to apply
00052 };
00053 
00054 #endif

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