Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4TruthSubsystem.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4TruthSubsystem.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4MAIN_PHG4TRUTHSUBSYSTEM_H
4 #define G4MAIN_PHG4TRUTHSUBSYSTEM_H
5 
6 #include "PHG4Subsystem.h"
7 
8 #include <string>
9 
10 class PHCompositeNode;
11 class PHG4EventAction;
12 class PHG4TrackingAction;
15 
17 {
18  public:
20  PHG4TruthSubsystem(const std::string &name = "TRUTH");
21 
23  ~PHG4TruthSubsystem(void) override
24  {
25  }
26 
28  int InitRun(PHCompositeNode *) override;
29 
31  int process_event(PHCompositeNode *) override;
32 
34  int process_after_geant(PHCompositeNode *) override;
35 
37  int ResetEvent(PHCompositeNode *) override;
38 
40  PHG4EventAction *GetEventAction(void) const override;
41  PHG4TrackingAction *GetTrackingAction(void) const override;
42 
44  void SetSaveOnlyEmbeded(bool b = true) { m_SaveOnlyEmbededFlag = b; };
45 
46  private:
48 
50 
53 };
54 
55 #endif