BOSS 7.0.8
BESIII Offline Software System
Loading...
Searching...
No Matches
BesPrimaryGeneratorAction.hh
Go to the documentation of this file.
1//---------------------------------------------------------------------------//
2// BOOST --- BESIII Object_Oriented Simulation Tool //
3//---------------------------------------------------------------------------//
4//Description: for generators, TESTER and GENBES
5//Author: Liuhm
6//Created: June, 2003
7//Modified:
8//Comment:
9//---------------------------------------------------------------------------//
10
11#ifndef BesPrimaryGeneratorAction_h
12#define BesPrimaryGeneratorAction_h 1
13
14#include "G4VUserPrimaryGeneratorAction.hh"
15#include "globals.hh"
16//#include "TFile.h"
17//#include "TNtuple.h"
18#include "TH1F.h"
19
20class G4ParticleGun;
21class G4Event;
22class G4ParticleTable;
24class G4VPrimaryGenerator;
25
26class BesPrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
27{
28 public:
29
32
33 public:
34
35 void GeneratePrimaries(G4Event* anEvent);
36// Getter and setters
37 G4String GetGeneratorName(){return generatorName;}
38 void SetGeneratorName(G4String genNew){generatorName=genNew;}
39 G4String GetGenbesName(){return genbesName;}
40 void SetGenbesName(G4String genbesNew){genbesName=genbesNew;}
41 void SetNParticle(G4int np){nParticle = np;}
42 void SetParticleName(G4String pname){particleName = pname;}
43 void SetMinCos(G4double min1){minCos = min1;}
44 void SetMaxCos(G4double max1){maxCos = max1;}
45 void SetPhiStart(G4double ps){phiStart =ps;}
46 void SetPhiEnd(G4double pe){phiEnd = pe;}
47 void SetMomentum(G4double pm){pMomentum = pm;}
48 void SetDeltaP(G4double dp){deltaP = dp;}
49 void SetPosX(G4double x){posX = x;}
50 void SetPosY(G4double y){posY = y;}
51 void SetPosZ(G4double z){posZ = z;}
52
53 private:
54
55 G4ParticleGun* particleGun;
57 G4VPrimaryGenerator* HEPEvt;
58 G4String generatorName;
59 G4String genbesName;
60 G4bool isGenbes;
61
62 G4int nParticle;
63 G4String particleName;
64 G4double minCos;
65 G4double maxCos;
66 G4double phiStart;
67 G4double phiEnd;
68 G4double pMomentum;
69 G4double deltaP;
70 G4double posX;
71 G4double posY;
72 G4double posZ;
73 //TFile* ftest;
74 //TNtuple* tuple;
75 //G4int counter;
76 TH1F* h1;
77 TH1F* h2;
78 TH1F* h3;
79};
80
81#endif /*BesPrimaryGeneratorAction_h*/
82
83
84
Double_t x[10]
void SetGeneratorName(G4String genNew)
void SetGenbesName(G4String genbesNew)
void GeneratePrimaries(G4Event *anEvent)
double y[1000]