FairRoot/PandaRoot
Public Member Functions | Public Attributes | List of all members
PndLepLepGenerator Class Reference

#include <PndLepLepGenerator.h>

Inheritance diagram for PndLepLepGenerator:

Public Member Functions

 PndLepLepGenerator ()
 
virtual ~PndLepLepGenerator ()
 
void SetBeamMom (Double_t in_P)
 
void SetSeed (Int_t in_seed)
 
void SetParticleID (Int_t in_particleID)
 
void SetGeGmRatio (Int_t in_gegm)
 
void SetCosThetaMin (Double_t in_cos_theta_min)
 
void SetCosThetaMax (Double_t in_cos_theta_max)
 
virtual Bool_t ReadEvent (FairPrimaryGenerator *primGen)
 
Bool_t Init ()
 
 ClassDef (PndLepLepGenerator, 1)
 

Public Attributes

Double_t P
 
Int_t seed
 
Int_t particleID
 
Int_t PDGParticleID
 
Int_t gegm
 
Double_t cos_theta_min
 
Double_t cos_theta_max
 
Double_t lepplus_p [4]
 
Double_t lepminus_p [4]
 

Detailed Description

Definition at line 46 of file PndLepLepGenerator.h.

Constructor & Destructor Documentation

PndLepLepGenerator::PndLepLepGenerator ( )
PndLepLepGenerator::~PndLepLepGenerator ( )
virtual

Destructor

Definition at line 19 of file PndLepLepGenerator.cxx.

20 {
21 }

Member Function Documentation

PndLepLepGenerator::ClassDef ( PndLepLepGenerator  ,
 
)
Bool_t PndLepLepGenerator::Init ( )

Initializer

Definition at line 23 of file PndLepLepGenerator.cxx.

References cos_theta_max, cos_theta_min, gegm, mz_pp_to_leplep_vandewi_init(), P, particleID, and seed.

24 {
26  return kTRUE;
27 }
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)
Bool_t PndLepLepGenerator::ReadEvent ( FairPrimaryGenerator *  primGen)
virtual

Pass event to the PANDAroot

Definition at line 29 of file PndLepLepGenerator.cxx.

References cos_theta_max, cos_theta_min, gegm, lepminus_p, lepplus_p, mz_pp_to_leplep_vandewi_event(), P, particleID, and PDGParticleID.

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 }
FairPrimaryGenerator * primGen
Definition: sim_emc_apd.C:81
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)
void PndLepLepGenerator::SetBeamMom ( Double_t  in_P)
inline

Set parameters of event generator

Definition at line 56 of file PndLepLepGenerator.h.

References P.

Referenced by PndMasterRunSim::UseLepLepGenerator().

56 {P = in_P;}; // set pbar momentum
void PndLepLepGenerator::SetCosThetaMax ( Double_t  in_cos_theta_max)
inline

Definition at line 61 of file PndLepLepGenerator.h.

Referenced by PndMasterRunSim::UseLepLepGenerator().

61 {cos_theta_max = in_cos_theta_max;}; // set cos(theta*) max in the pbarp CM frame
void PndLepLepGenerator::SetCosThetaMin ( Double_t  in_cos_theta_min)
inline

Definition at line 60 of file PndLepLepGenerator.h.

Referenced by PndMasterRunSim::UseLepLepGenerator().

60 {cos_theta_min = in_cos_theta_min;}; // set cos(theta*) min in the pbarp CM frame
void PndLepLepGenerator::SetGeGmRatio ( Int_t  in_gegm)
inline

Definition at line 59 of file PndLepLepGenerator.h.

59 {gegm = in_gegm;}; // GE/GM ratio (|GE|/|GM| = 0,1,3)
void PndLepLepGenerator::SetParticleID ( Int_t  in_particleID)
inline

Definition at line 58 of file PndLepLepGenerator.h.

58 {particleID = in_particleID;}; // particle ID (0 - electron, 1 - muon, 2 - tau)
void PndLepLepGenerator::SetSeed ( Int_t  in_seed)
inline

Definition at line 57 of file PndLepLepGenerator.h.

References seed.

57 {seed = in_seed;}; // set seed

Member Data Documentation

Double_t PndLepLepGenerator::cos_theta_max

Definition at line 77 of file PndLepLepGenerator.h.

Referenced by Init(), and ReadEvent().

Double_t PndLepLepGenerator::cos_theta_min

Definition at line 76 of file PndLepLepGenerator.h.

Referenced by Init(), and ReadEvent().

Int_t PndLepLepGenerator::gegm

Definition at line 75 of file PndLepLepGenerator.h.

Referenced by Init(), and ReadEvent().

Double_t PndLepLepGenerator::lepminus_p[4]

Definition at line 79 of file PndLepLepGenerator.h.

Referenced by ReadEvent().

Double_t PndLepLepGenerator::lepplus_p[4]

Definition at line 78 of file PndLepLepGenerator.h.

Referenced by ReadEvent().

Double_t PndLepLepGenerator::P

Definition at line 71 of file PndLepLepGenerator.h.

Referenced by Init(), and ReadEvent().

Int_t PndLepLepGenerator::particleID

Definition at line 73 of file PndLepLepGenerator.h.

Referenced by Init(), and ReadEvent().

Int_t PndLepLepGenerator::PDGParticleID

Definition at line 74 of file PndLepLepGenerator.h.

Referenced by ReadEvent().

Int_t PndLepLepGenerator::seed

Definition at line 72 of file PndLepLepGenerator.h.

Referenced by Init().


The documentation for this class was generated from the following files: