Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:16:19

0001 #ifndef PHOOL_PHNODEINTEGRATE_H
0002 #define PHOOL_PHNODEINTEGRATE_H
0003 
0004 //  Declaration of class PHNodeIntegrate
0005 //  Purpose: strategy which calls Integrate() on a PHNode if it is
0006 //  a PHObject
0007 
0008 #include "PHNodeOperation.h"
0009 
0010 class PHNode;
0011 class PHCompositeNode;
0012 
0013 class PHNodeIntegrate : public PHNodeOperation
0014 {
0015  public:
0016   PHNodeIntegrate()
0017     : runnode(nullptr)
0018     , runsumnode(nullptr)
0019   {
0020   }
0021   ~PHNodeIntegrate() override {}
0022   void RunNode(PHCompositeNode *node)
0023   {
0024     runnode = node;
0025   }
0026   void RunSumNode(PHCompositeNode *node)
0027   {
0028     runsumnode = node;
0029   }
0030 
0031  protected:
0032   void perform(PHNode *) override;
0033 
0034  private:
0035   PHCompositeNode *runnode;
0036   PHCompositeNode *runsumnode;
0037 };
0038 
0039 #endif