CGEM BOSS
6.6.5.i
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
20
class
G4ParticleGun;
21
class
G4Event;
22
class
G4ParticleTable;
23
class
BesPrimaryGeneratorMessenger
;
24
class
G4VPrimaryGenerator;
25
26
class
BesPrimaryGeneratorAction
:
public
G4VUserPrimaryGeneratorAction
27
{
28
public
:
29
30
BesPrimaryGeneratorAction
();
31
~BesPrimaryGeneratorAction
();
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;
56
BesPrimaryGeneratorMessenger
* messenger;
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
x
Double_t x[10]
Definition
DataBase/tau_mode.c:57
BesPrimaryGeneratorAction
Definition
BesPrimaryGeneratorAction.hh:27
BesPrimaryGeneratorAction::SetPosX
void SetPosX(G4double x)
Definition
BesPrimaryGeneratorAction.hh:49
BesPrimaryGeneratorAction::SetMinCos
void SetMinCos(G4double min1)
Definition
BesPrimaryGeneratorAction.hh:43
BesPrimaryGeneratorAction::SetPosZ
void SetPosZ(G4double z)
Definition
BesPrimaryGeneratorAction.hh:51
BesPrimaryGeneratorAction::SetPosY
void SetPosY(G4double y)
Definition
BesPrimaryGeneratorAction.hh:50
BesPrimaryGeneratorAction::GetGeneratorName
G4String GetGeneratorName()
Definition
BesPrimaryGeneratorAction.hh:37
BesPrimaryGeneratorAction::GetGenbesName
G4String GetGenbesName()
Definition
BesPrimaryGeneratorAction.hh:39
BesPrimaryGeneratorAction::SetGeneratorName
void SetGeneratorName(G4String genNew)
Definition
BesPrimaryGeneratorAction.hh:38
BesPrimaryGeneratorAction::SetDeltaP
void SetDeltaP(G4double dp)
Definition
BesPrimaryGeneratorAction.hh:48
BesPrimaryGeneratorAction::SetGenbesName
void SetGenbesName(G4String genbesNew)
Definition
BesPrimaryGeneratorAction.hh:40
BesPrimaryGeneratorAction::SetMomentum
void SetMomentum(G4double pm)
Definition
BesPrimaryGeneratorAction.hh:47
BesPrimaryGeneratorAction::~BesPrimaryGeneratorAction
~BesPrimaryGeneratorAction()
Definition
BesPrimaryGeneratorAction.cc:70
BesPrimaryGeneratorAction::SetMaxCos
void SetMaxCos(G4double max1)
Definition
BesPrimaryGeneratorAction.hh:44
BesPrimaryGeneratorAction::BesPrimaryGeneratorAction
BesPrimaryGeneratorAction()
Definition
BesPrimaryGeneratorAction.cc:24
BesPrimaryGeneratorAction::SetParticleName
void SetParticleName(G4String pname)
Definition
BesPrimaryGeneratorAction.hh:42
BesPrimaryGeneratorAction::SetPhiEnd
void SetPhiEnd(G4double pe)
Definition
BesPrimaryGeneratorAction.hh:46
BesPrimaryGeneratorAction::GeneratePrimaries
void GeneratePrimaries(G4Event *anEvent)
Definition
BesPrimaryGeneratorAction.cc:77
BesPrimaryGeneratorAction::SetPhiStart
void SetPhiStart(G4double ps)
Definition
BesPrimaryGeneratorAction.hh:45
BesPrimaryGeneratorAction::SetNParticle
void SetNParticle(G4int np)
Definition
BesPrimaryGeneratorAction.hh:41
BesPrimaryGeneratorMessenger
Definition
BesPrimaryGeneratorMessenger.hh:25
6.6.5.i
Simulation
BOOST
GenSim
GenSim-00-00-07
GenSim
BesPrimaryGeneratorAction.hh
Generated by
1.12.0