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/AIProfile1D.h"
00014 #include "LWH/AITreeFactory.h"
00015 #include "LWH/AIDataPointSetFactory.h"
00016 #include "LWH/AIDataPointSet.h"
00017 #include "LWH/AIDataPoint.h"
00018 #include "LWH/AIMeasurement.h"
00019 #include "LWH/AITree.h"
00020 #include "LWH/AIAxis.h"
00021 
00022 namespace Rivet {
00023 
00024 
00025   AIDA::IAnalysisFactory* createAnalysisFactory();
00026 
00027   /// Function to get a map of all the bin edge vectors in a paper with the
00028   /// given @a papername.
00029   const map<string, BinEdges> getBinEdges(string papername);
00030 
00031   const map<string, BinEdges>
00032   getBinEdges(const map<string, vector<DPSXPoint> >& xpoints);
00033 
00034   const map<string, vector<DPSXPoint> > getDPSXValsErrs(string papername);
00035 
00036   const map<string, vector<DPSXYPoint> > getDPSXYValsErrs(string papername);
00037 
00038   /// Get the file system path to the AIDA reference file for this paper.
00039   const string getDataPath(string papername);
00040 
00041   /// Return the integral over the histogram bins
00042   inline double integral(AIDA::IHistogram1D* histo) {
00043     double intg = 0.;
00044     for ( int i = 0; i < histo->axis().bins(); ++i ) {
00045       // Don't multiply with binWidth -- it's already included in binHeight
00046       intg += histo->binHeight(i); // * histo->axis().binWidth(i);
00047     }
00048     return intg;
00049   }
00050 
00051 
00052   using AIDA::IHistogram1D;
00053   using AIDA::IDataPointSet;
00054   using AIDA::IDataPoint;
00055   using AIDA::IMeasurement;
00056   using AIDA::ITree;
00057   using AIDA::IAxis;
00058   using AIDA::IProfile1D;
00059 
00060 
00061 }
00062 
00063 #endif