Rivet is hosted by Hepforge, IPPP Durham
RivetYODA.hh
Go to the documentation of this file.
00001 #ifndef RIVET_RIVETYODA_HH
00002 #define RIVET_RIVETYODA_HH
00003 
00004 #include "Rivet/Config/RivetCommon.hh"
00005 #include "YODA/AnalysisObject.h"
00006 #include "YODA/Counter.h"
00007 #include "YODA/Histo1D.h"
00008 #include "YODA/Histo2D.h"
00009 #include "YODA/Profile1D.h"
00010 #include "YODA/Profile2D.h"
00011 #include "YODA/Scatter1D.h"
00012 #include "YODA/Scatter2D.h"
00013 #include "YODA/Scatter3D.h"
00014 
00015 namespace Rivet {
00016 
00017   typedef std::shared_ptr<YODA::AnalysisObject> AnalysisObjectPtr;
00018   typedef std::shared_ptr<YODA::Counter> CounterPtr;
00019   typedef std::shared_ptr<YODA::Histo1D> Histo1DPtr;
00020   typedef std::shared_ptr<YODA::Histo2D> Histo2DPtr;
00021   typedef std::shared_ptr<YODA::Profile1D> Profile1DPtr;
00022   typedef std::shared_ptr<YODA::Profile2D> Profile2DPtr;
00023   typedef std::shared_ptr<YODA::Scatter1D> Scatter1DPtr;
00024   typedef std::shared_ptr<YODA::Scatter2D> Scatter2DPtr;
00025   typedef std::shared_ptr<YODA::Scatter3D> Scatter3DPtr;
00026 
00027   using YODA::AnalysisObject;
00028   using YODA::Counter;
00029   using YODA::Histo1D;
00030   using YODA::HistoBin1D;
00031   using YODA::Histo2D;
00032   using YODA::HistoBin2D;
00033   using YODA::Profile1D;
00034   using YODA::ProfileBin1D;
00035   using YODA::Profile2D;
00036   using YODA::ProfileBin2D;
00037   using YODA::Scatter1D;
00038   using YODA::Point1D;
00039   using YODA::Scatter2D;
00040   using YODA::Point2D;
00041   using YODA::Scatter3D;
00042   using YODA::Point3D;
00043 
00044 
00045   /// Function to get a map of all the refdata in a paper with the given @a papername.
00046   map<string, AnalysisObjectPtr> getRefData(const string& papername);
00047 
00048   /// Get the file system path to the reference file for this paper.
00049   string getDatafilePath(const string& papername);
00050 
00051   /// Return the integral over the histogram bins
00052   /// @deprecated Prefer to directly use the histo's integral() method.
00053   DEPRECATED("Prefer to directly use the histo's integral() method.")
00054   inline double integral(Histo1DPtr histo) {
00055     return histo->integral();
00056   }
00057 
00058 
00059 }
00060 
00061 #endif