gabbbri_ella

Define Run Action + output in root

May 12th, 2022
940
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.64 KB | None | 0 0
  1. //DEFINING RUN ACTION
  2. //............................................RUN.HH
  3.  
  4. #ifndef RUN_HH
  5. #define RUN_HH
  6.  
  7. #include "G4UserRunAction.hh"
  8.  
  9. class MyRunAction: public G4UserRunAction
  10. {
  11. public:
  12.    MyRunAction();
  13.    ~MyRunAction();
  14.    
  15.    virtual void BeginOfRunaction(const G4Run*);
  16.    virtual void EndOfRunaction(const G4Run*);
  17. }
  18.  
  19. #endif
  20.  
  21. //...............................RUN.CC
  22.  
  23. #include "run.hh"
  24.  
  25. //definiamo il nostro costruttore e distruttore
  26.  
  27. MyRunAction::MyRunAction();
  28. {}
  29.  
  30. MyRunAction::~MyRunAction();
  31. {}
  32.  
  33. void MyRunAction::BeginOfRunaction(const G4Run*);
  34. {
  35. }
  36.  
  37. void MyRunAction::EndOfRunaction(const G4Run*);
  38. {
  39. }
  40.  
Advertisement
Add Comment
Please, Sign In to add comment