Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 10:32:21

0001 #ifndef YFS_Main_DEBUG_H
0002 #define YFS_Main_DEBUG_H
0003 
0004 #include "ATOOLS/Math/Histogram.H"
0005 #include "ATOOLS/Math/Histogram_2D.H"
0006 #include "ATOOLS/Math/MathTools.H"
0007 
0008 #include "YFS/Main/YFS_Base.H"
0009 #include "YFS/Main/ISR.H"
0010 #include "YFS/Main/FSR.H"
0011 
0012 
0013 #include <map>
0014 
0015 namespace YFS {
0016 typedef std::map<std::string, ATOOLS::Histogram *> histograms;
0017 typedef std::map<std::string, ATOOLS::Histogram_2D *> histograms2d;
0018 
0019 
0020   class Debug : public YFS_Base
0021   {
0022   public:
0023     Debug();
0024     ~Debug();
0025 
0026     histograms m_histograms_ISR, m_histograms_FSR;
0027     histograms2d m_histograms2d;
0028 
0029 
0030     void InitializeHist();
0031     void FillHist(const Vec4D_Vector &plab, YFS::ISR *p_isr, YFS::FSR *p_fsr, double weight=1);
0032     void FillHist(const std::string &name, const double &x, double weight=1);
0033     void FillHist(const std::string &name, const double &x, const double &y, double weight=1);
0034     void WriteHistograms();
0035 
0036   };
0037 
0038 }
0039 #endif