source: trunk/source/event/test/GeneralParticleSource/include/ExamplePrimaryGeneratorAction.hh @ 1316

Last change on this file since 1316 was 1316, checked in by garnier, 14 years ago

update geant4-09-04-beta-cand-01 interfaces-V09-03-09 vis-V09-03-08

File size: 2.7 KB
Line 
1//
2// ********************************************************************
3// * License and Disclaimer                                           *
4// *                                                                  *
5// * The  Geant4 software  is  copyright of the Copyright Holders  of *
6// * the Geant4 Collaboration.  It is provided  under  the terms  and *
7// * conditions of the Geant4 Software License,  included in the file *
8// * LICENSE and available at  http://cern.ch/geant4/license .  These *
9// * include a list of copyright holders.                             *
10// *                                                                  *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work  make  any representation or  warranty, express or implied, *
14// * regarding  this  software system or assume any liability for its *
15// * use.  Please see the license in the file  LICENSE  and URL above *
16// * for the full disclaimer and the limitation of liability.         *
17// *                                                                  *
18// * This  code  implementation is the result of  the  scientific and *
19// * technical work of the GEANT4 collaboration.                      *
20// * By using,  copying,  modifying or  distributing the software (or *
21// * any work based  on the software)  you  agree  to acknowledge its *
22// * use  in  resulting  scientific  publications,  and indicate your *
23// * acceptance of all terms of the Geant4 Software license.          *
24// ********************************************************************
25//
26#ifndef ExamplePrimaryGeneratorAction_h
27#define ExamplePrimaryGeneratorAction_h 1
28
29#include "G4VUserPrimaryGeneratorAction.hh"
30#include "globals.hh"
31#include "G4ThreeVector.hh"
32
33class G4GeneralParticleSource;
34class G4Event;
35
36class ExamplePrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
37{
38  public:
39    ExamplePrimaryGeneratorAction();
40    ~ExamplePrimaryGeneratorAction();
41
42  // DEBUG arrays
43  G4int debugx[100], debugy[100], debugz[100];
44  G4int debugpx[100], debugpy[100], debugpz[100];
45  G4int debugtheta[100], debugphi[100];
46  G4int debugenergy[100];
47  G4double debug_energy_step;
48  G4double DebugXmin, DebugXmax, DebugYmin, DebugYmax;
49  G4double DebugZmin, DebugZmax, DebugXStep, DebugYStep;
50  G4double DebugZStep;
51
52  G4String SourceType;
53  G4String SourceShape;
54  G4double radius;
55  G4double halfx;
56  G4double halfy;
57  G4double halfz;
58  G4ThreeVector centre;
59
60    // for use with energy
61  G4String EneDisType ;
62  G4String InterpolationType;
63  G4double emin;
64  G4double emax;
65
66  public:
67    void GeneratePrimaries(G4Event* anEvent);
68
69  private:
70    G4GeneralParticleSource* particleGun;
71 
72};
73
74#endif
75
76
77
Note: See TracBrowser for help on using the repository browser.