Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:17:47

0001 // Tell emacs that this is a C++ source
0002 //  -*- C++ -*-.
0003 #ifndef G4DETECTORS_PHG4EVENTACTIONCLEARZEROEDEP_H
0004 #define G4DETECTORS_PHG4EVENTACTIONCLEARZEROEDEP_H
0005 
0006 #include <g4main/PHG4EventAction.h>
0007 
0008 #include <set>
0009 #include <string>
0010 
0011 class G4Event;
0012 class PHCompositeNode;
0013 
0014 class PHG4EventActionClearZeroEdep : public PHG4EventAction
0015 {
0016  public:
0017   //! constructor
0018   PHG4EventActionClearZeroEdep(PHCompositeNode *topNode, const std::string &name);
0019 
0020   void AddNode(const std::string &name);
0021 
0022   //! destuctor
0023   ~PHG4EventActionClearZeroEdep() override
0024   {
0025   }
0026 
0027   void EndOfEventAction(const G4Event *) override;
0028 
0029  private:
0030   std::set<std::string> nodename_set;
0031   PHCompositeNode *topNode;
0032 };
0033 
0034 #endif