Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:15:59

0001 // $Id: $
0002 
0003 /*!
0004  * \file PHGenIntegral.cc
0005  * \brief 
0006  * \author Jin Huang <jhuang@bnl.gov>
0007  * \version $Revision:   $
0008  * \date $Date: $
0009  */
0010 
0011 #include "PHGenIntegral.h"
0012 
0013 #include <limits>
0014 
0015 //! cross sections for the processed events in pb
0016 Double_t PHGenIntegral::get_CrossSection_Processed_Event() const
0017 {
0018   return get_Integrated_Lumi() > 0 ? get_N_Processed_Event() / get_Integrated_Lumi() : std::numeric_limits<Double_t>::signaling_NaN();
0019 }
0020 
0021 //! cross sections for the events accepted by the event generator in pb
0022 Double_t PHGenIntegral::get_CrossSection_Generator_Accepted_Event() const
0023 {
0024   return get_Integrated_Lumi() > 0 ? get_N_Generator_Accepted_Event() / get_Integrated_Lumi() : std::numeric_limits<Double_t>::signaling_NaN();
0025 }
0026 
0027 //! description on the source
0028 const std::string& PHGenIntegral::get_Description() const
0029 {
0030   static const std::string s_invalid("Invalid");
0031   return s_invalid;
0032 }