FairRoot/PandaRoot
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
pgenerators
EMFFgenerators
PndLepLepGenerator.cxx
Go to the documentation of this file.
1
//----------------------------------------------------//
2
// PndLepLepGenerator source file //
3
//----------------------------------------------------//
4
11
#include "
PndLepLepGenerator.h
"
12
#include "FairPrimaryGenerator.h"
13
14
// Default constructor
15
PndLepLepGenerator::PndLepLepGenerator
() :
P
(0),
seed
(0), particleID(-1), PDGParticleID(0), gegm(-1), cos_theta_min(0), cos_theta_max(1)
16
{
17
}
18
19
PndLepLepGenerator::~PndLepLepGenerator
()
20
{
21
}
22
23
Bool_t
PndLepLepGenerator::Init
()
24
{
25
mz_pp_to_leplep_vandewi_init
(
seed
,
particleID
,
P
,
gegm
,
cos_theta_min
,
cos_theta_max
);
26
return
kTRUE;
27
}
28
29
Bool_t
PndLepLepGenerator::ReadEvent
(FairPrimaryGenerator*
primGen
)
30
{
31
mz_pp_to_leplep_vandewi_event
(
particleID
,
P
,
gegm
,
cos_theta_min
,
cos_theta_max
,
lepplus_p
,
lepminus_p
);
32
33
//set the lepton mass
34
if
(
particleID
==0)
PDGParticleID
=11;
35
if
(
particleID
==1)
PDGParticleID
=13;
36
if
(
particleID
==2)
PDGParticleID
=15;
37
38
primGen->AddTrack(-1*
PDGParticleID
,
lepplus_p
[1],
lepplus_p
[2],
lepplus_p
[3], 0.0, 0.0, 0.0);
39
primGen->AddTrack(
PDGParticleID
,
lepminus_p
[1],
lepminus_p
[2],
lepminus_p
[3], 0.0, 0.0, 0.0);
40
41
return
kTRUE;
42
}
43
44
ClassImp
(
PndLepLepGenerator
)
PndLepLepGenerator.h
PndLepLepGenerator
Definition:
PndLepLepGenerator.h:46
mz_pp_to_leplep_vandewi_init
void mz_pp_to_leplep_vandewi_init(int seed, int particle_flag, double P, double GE_to_GM, double cos_theta_min, double cos_theta_max)
Definition:
mzfunctions_pp_to_leplep_vandewi.cxx:30
PndLepLepGenerator::lepplus_p
Double_t lepplus_p[4]
Definition:
PndLepLepGenerator.h:78
PndLepLepGenerator::seed
Int_t seed
Definition:
PndLepLepGenerator.h:72
PndLepLepGenerator::P
Double_t P
Definition:
PndLepLepGenerator.h:71
PndLepLepGenerator::PDGParticleID
Int_t PDGParticleID
Definition:
PndLepLepGenerator.h:74
primGen
FairPrimaryGenerator * primGen
Definition:
sim_emc_apd.C:81
PndLepLepGenerator::particleID
Int_t particleID
Definition:
PndLepLepGenerator.h:73
PndLepLepGenerator::PndLepLepGenerator
PndLepLepGenerator()
Definition:
PndLepLepGenerator.cxx:15
PndLepLepGenerator::ReadEvent
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)
Definition:
PndLepLepGenerator.cxx:29
PndLepLepGenerator::gegm
Int_t gegm
Definition:
PndLepLepGenerator.h:75
PndLepLepGenerator::lepminus_p
Double_t lepminus_p[4]
Definition:
PndLepLepGenerator.h:79
seed
unsigned int seed
Definition:
createPndLmdMisalignmentMatrices.C:5
PndLepLepGenerator::~PndLepLepGenerator
virtual ~PndLepLepGenerator()
Definition:
PndLepLepGenerator.cxx:19
mz_pp_to_leplep_vandewi_event
void mz_pp_to_leplep_vandewi_event(int particle_flag, double P, double GE_to_GM, double cos_theta_min, double cos_theta_max, double *lepplus_p, double *lepminus_p)
Definition:
mzfunctions_pp_to_leplep_vandewi.cxx:331
PndLepLepGenerator::Init
Bool_t Init()
Definition:
PndLepLepGenerator.cxx:23
PndLepLepGenerator::cos_theta_max
Double_t cos_theta_max
Definition:
PndLepLepGenerator.h:77
PndLepLepGenerator::cos_theta_min
Double_t cos_theta_min
Definition:
PndLepLepGenerator.h:76
P
GeV c P
Definition:
ReadMesDecCorrRes_PiT.C:42
ClassImp
ClassImp(PndAnaContFact)
Bool_t
Bool_t
Definition:
SimCompleteLinkDef.h:6
Generated on Wed Apr 3 2019 08:43:57 for FairRoot/PandaRoot by
1.8.5