FairRoot/PandaRoot
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 
20 {
21 }
22 
24 {
26  return kTRUE;
27 }
28 
30 {
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 
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)
FairPrimaryGenerator * primGen
Definition: sim_emc_apd.C:81
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)
unsigned int seed
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)
GeV c P
ClassImp(PndAnaContFact)