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