RivetAIDA.hh

Go to the documentation of this file.
00001 #ifndef RIVET_RIVETAIDA_HH
00002 #define RIVET_RIVETAIDA_HH
00003 
00004 /// @author Andy Buckley
00005 /// @date   2009-01-30
00006 
00007 // Include files
00008 #include "Rivet/Rivet.hh"
00009 #include "Rivet/RivetAIDA.fhh"
00010 #include "LWH/AIAnalysisFactory.h"
00011 #include "LWH/AIHistogramFactory.h"
00012 #include "LWH/AIHistogram1D.h"
00013 #include "LWH/AIHistogram2D.h"
00014 #include "LWH/AIProfile1D.h"
00015 #include "LWH/AITreeFactory.h"
00016 #include "LWH/AIDataPointSetFactory.h"
00017 #include "LWH/AIDataPointSet.h"
00018 #include "LWH/AIDataPoint.h"
00019 #include "LWH/AIMeasurement.h"
00020 #include "LWH/AITree.h"
00021 #include "LWH/AIAxis.h"
00022 
00023 namespace Rivet {
00024 
00025 
00026   AIDA::IAnalysisFactory* createAnalysisFactory();
00027 
00028   /// Function to get a map of all the bin edge vectors in a paper with the
00029   /// given @a papername.
00030   const map<string, BinEdges> getBinEdges(string papername);
00031 
00032   const map<string, BinEdges>
00033   getBinEdges(const map<string, vector<DPSXPoint> >& xpoints);
00034 
00035   const map<string, vector<DPSXPoint> > getDPSXValsErrs(string papername);
00036 
00037   const map<string, vector<DPSXYPoint> > getDPSXYValsErrs(string papername);
00038 
00039   /// Get the file system path to the AIDA reference file for this paper.
00040   const string getDataPath(string papername);
00041 
00042   /// Return the integral over the histogram bins
00043   inline double integral(AIDA::IHistogram1D* histo) {
00044     double intg = 0.;
00045     for ( int i = 0; i < histo->axis().bins(); ++i ) {
00046       // Don't multiply with binWidth -- it's already included in binHeight
00047       intg += histo->binHeight(i); // * histo->axis().binWidth(i);
00048     }
00049     return intg;
00050   }
00051 
00052 
00053   using AIDA::IHistogram1D;
00054   using AIDA::IDataPointSet;
00055   using AIDA::IDataPoint;
00056   using AIDA::IMeasurement;
00057   using AIDA::ITree;
00058   using AIDA::IAxis;
00059   using AIDA::IProfile1D;
00060 
00061 
00062 }
00063 
00064 #endif