File indexing completed on 2025-08-06 08:17:56
0001 #include "DumpPHGenIntegral.h"
0002
0003 #include <phhepmc/PHGenIntegral.h>
0004
0005 #include <phool/PHIODataNode.h>
0006
0007 #include <ostream>
0008 #include <string>
0009
0010 using MyNode_t = PHIODataNode<PHGenIntegral>;
0011
0012 DumpPHGenIntegral::DumpPHGenIntegral(const std::string &NodeName)
0013 : DumpObject(NodeName)
0014 {
0015 return;
0016 }
0017
0018 int DumpPHGenIntegral::process_Node(PHNode *myNode)
0019 {
0020 PHGenIntegral *phgenintegral = nullptr;
0021 MyNode_t *thisNode = static_cast<MyNode_t *>(myNode);
0022 if (thisNode)
0023 {
0024 phgenintegral = thisNode->getData();
0025 }
0026 if (phgenintegral)
0027 {
0028 *fout << "get_Integrated_Lumi(): " << phgenintegral->get_Integrated_Lumi() << std::endl;
0029 *fout << "get_N_Generator_Accepted_Event(): " << phgenintegral->get_N_Generator_Accepted_Event() << std::endl;
0030 *fout << "get_N_Processed_Event(): " << phgenintegral->get_N_Processed_Event() << std::endl;
0031 *fout << "get_Sum_Of_Weight(): " << phgenintegral->get_Sum_Of_Weight() << std::endl;
0032 *fout << "get_CrossSection_Processed_Event(): " << phgenintegral->get_CrossSection_Processed_Event() << std::endl;
0033 *fout << "get_CrossSection_Generator_Accepted_Event(): " << phgenintegral->get_CrossSection_Generator_Accepted_Event() << std::endl;
0034 *fout << "get_Description(): " << phgenintegral->get_Description() << std::endl;
0035 }
0036 return 0;
0037 }