RivetYODA.hh
Go to the documentation of this file.
00001 #ifndef RIVET_RIVETYODA_HH 00002 #define RIVET_RIVETYODA_HH 00003 00004 /// @author Andy Buckley 00005 /// @date 2009-01-30 00006 /// @author David Grellscheid 00007 /// @date 2011-07-18 00008 00009 #include "Rivet/Rivet.hh" 00010 #include "Rivet/Tools/RivetBoost.hh" 00011 00012 #include "YODA/AnalysisObject.h" 00013 #include "YODA/WriterYODA.h" 00014 #include "YODA/Histo1D.h" 00015 #include "YODA/Profile1D.h" 00016 #include "YODA/Scatter2D.h" 00017 #include "YODA/Point2D.h" 00018 #include <map> 00019 00020 00021 namespace Rivet { 00022 00023 00024 typedef shared_ptr<YODA::AnalysisObject> AnalysisObjectPtr; 00025 typedef shared_ptr<YODA::Histo1D> Histo1DPtr; 00026 typedef shared_ptr<YODA::Profile1D> Profile1DPtr; 00027 typedef shared_ptr<YODA::Scatter2D> Scatter2DPtr; 00028 00029 using YODA::WriterYODA; 00030 typedef YODA::Histo1D Histo1D; 00031 typedef YODA::Profile1D Profile1D; 00032 typedef YODA::Scatter2D Scatter2D; 00033 typedef YODA::Point2D Point2D; 00034 00035 /// Function to get a map of all the refdata in a paper with the 00036 /// given @a papername. 00037 map<string, Scatter2DPtr> getRefData(const string& papername); 00038 00039 /// Get the file system path to the reference file for this paper. 00040 string getDatafilePath(const string& papername); 00041 00042 /// Return the integral over the histogram bins 00043 /// @deprecated Prefer to directly use the histo's integral() method. 00044 inline double integral(Histo1DPtr histo) { 00045 return histo->integral(); 00046 } 00047 00048 00049 } 00050 00051 #endif Generated on Fri Oct 25 2013 12:41:47 for The Rivet MC analysis system by ![]() |