EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4PrimaryGeneratorAction.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4PrimaryGeneratorAction.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4MAIN_PHG4PRIMARYGENERATORACTION_H
4 #define G4MAIN_PHG4PRIMARYGENERATORACTION_H
5 
6 #include <Geant4/G4VUserPrimaryGeneratorAction.hh>
7 
8 class G4Event;
9 class PHG4InEvent;
10 
11 class PHG4PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
12 {
13  public:
15  : verbosity(0)
16  , inEvent(0)
17  {
18  }
19 
21  {
22  }
23 
24  void GeneratePrimaries(G4Event* anEvent) override;
25 
27  void SetInEvent(PHG4InEvent* const inevt)
28  {
29  inEvent = inevt;
30  }
31 
33  void Verbosity(const int val) { verbosity = val; }
34  int Verbosity() const { return verbosity; }
35 
36  protected:
37  int verbosity;
38 
39  private:
42 };
43 
44 #endif // PHG4PrimaryGeneratorAction_H__