Rivet  1.8.3
RivetAIDA.hh
1 #ifndef RIVET_RIVETAIDA_HH
2 #define RIVET_RIVETAIDA_HH
3 
6 
7 // Include files
8 #include "Rivet/Rivet.hh"
9 #include "Rivet/RivetAIDA.fhh"
10 #include "LWH/AIAnalysisFactory.h"
11 #include "LWH/AIHistogramFactory.h"
12 #include "LWH/AIHistogram1D.h"
13 #include "LWH/AIHistogram2D.h"
14 #include "LWH/AIProfile1D.h"
15 #include "LWH/AITreeFactory.h"
16 #include "LWH/AIDataPointSetFactory.h"
17 #include "LWH/AIDataPointSet.h"
18 #include "LWH/AIDataPoint.h"
19 #include "LWH/AIMeasurement.h"
20 #include "LWH/AITree.h"
21 #include "LWH/AIAxis.h"
22 
23 namespace Rivet {
24 
25 
26  AIDA::IAnalysisFactory* createAnalysisFactory();
27 
30  map<string, BinEdges> getBinEdges(string papername);
31 
32  map<string, BinEdges> getBinEdges(const map<string, vector<DPSXPoint> >& xpoints);
33 
34  map<string, vector<DPSXPoint> > getDPSXValsErrs(string papername);
35 
36  map<string, vector<DPSXYPoint> > getDPSXYValsErrs(string papername);
37 
39  string getDatafilePath(string papername);
40 
42  inline double integral(AIDA::IHistogram1D* histo) {
43  double intg = 0.;
44  for ( int i = 0; i < histo->axis().bins(); ++i ) {
45  // Don't multiply with binWidth -- it's already included in binHeight
46  intg += histo->binHeight(i); // * histo->axis().binWidth(i);
47  }
48  return intg;
49  }
50 
51  using AIDA::IHistogram1D;
52  using AIDA::IHistogram2D;
53  using AIDA::IDataPointSet;
54  using AIDA::IDataPoint;
55  using AIDA::IMeasurement;
56  using AIDA::ITree;
57  using AIDA::IAxis;
58  using AIDA::IProfile1D;
59 
60 
61 }
62 
63 #endif
map< string, vector< DPSXPoint > > getDPSXValsErrs(string papername)
Definition: RivetAIDA.cc:113
string getDatafilePath(string papername)
Get the file system path to the AIDA reference file for this paper.
Definition: RivetAIDA.cc:21
map< string, BinEdges > getBinEdges(string papername)
Definition: RivetAIDA.cc:188
double integral(AIDA::IHistogram1D *histo)
Return the integral over the histogram bins.
Definition: RivetAIDA.hh:42
map< string, vector< DPSXYPoint > > getDPSXYValsErrs(string papername)
Definition: RivetAIDA.cc:30
AIDA::IAnalysisFactory * createAnalysisFactory()
Get an AIDA system (LWH impl.)
Definition: RivetAIDA.cc:16