GGS(GenericGEANT4Simulation)Software  2.7.0
 All Data Structures Namespaces Files Functions Variables Typedefs Macros
GGSSaveTGeoAction.h
Go to the documentation of this file.
1 /*
2  * GGSSaveTGeoAction.h
3  *
4  * Created on: Jun 3, 2020
5  * Author: Valerio Formato
6  */
7 
10 #ifndef GGSSAVETGEO_H_
11 #define GGSSAVETGEO_H_
12 
14 
15 #include "TFile.h"
16 
17 #include <string>
18 
19 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
20 
22 public:
25 
27  ~GGSSaveTGeoAction() = default;
28 
36  void BeginOfRunAction(const G4Run *run);
37 
45  void EndOfRunAction(const G4Run *run);
46 
58  void SetOutputFileBase(const std::string &outFileBase) { _outBase = outFileBase; }
59 
60 private:
61  TFile *_outFile;
62  std::string _outBase;
63 };
64 
65 #endif
void EndOfRunAction(const G4Run *run)
Actions executed at end of run.
Mother class for user actions in GGS.
Definition: GGSUserAction.h:27
GGSSaveTGeoAction()
Constructor.
void SetOutputFileBase(const std::string &outFileBase)
Sets the output file base name.
void BeginOfRunAction(const G4Run *run)
Actions executed at beginning of run.
~GGSSaveTGeoAction()=default
Destructor.