FairRoot/PandaRoot
PndPiPiGenerator.h
Go to the documentation of this file.
1 //----------------------------------------------------//
2 // PndPiPiGenerator header file //
3 //----------------------------------------------------//
4 
11 #ifndef PND_PIPIGENERATOR_H
12 #define PND_PIPIGENERATOR_H
13 
14 // c/c++
15 #include <stdlib.h>
16 #include <iostream>
17 #include <fstream>
18 #include <sstream>
19 #include <cmath>
20 #include <algorithm>
21 #include <time.h>
22 
23 //ranlux
24 #include "ranlxs.h"
25 #include "ranlxd.h"
26 
27 void ranlxs(float r[], int n);
28 void ranlxd(double r[], int n);
29 
30 void rlxs_init(int level, int seed);
31 void rlxd_init(int level, int seed);
32 
33 //mz (general)
34 #include "mzparameters.h"
35 #include "mzfunctions.h"
36 
37 //mz for pp_to_pipi_vandewi
39 
40 #include "FairGenerator.h"
41 
42 using namespace std;
43 
44 class FairPrimaryGenerator;
45 
46 class PndPiPiGenerator : public FairGenerator
47 {
48 public:
51 
53  virtual ~PndPiPiGenerator();
54 
56  void SetBeamMom(Double_t in_P) {P = in_P;}; // set pbar momentum
57  void SetSeed(Int_t in_seed) {seed = in_seed;}; // set seed
58  void SetCosThetaMin(Double_t in_cos_theta_min) {cos_theta_min = in_cos_theta_min;}; // set cos(theta*) min in the pbarp CM frame
59  void SetCosThetaMax(Double_t in_cos_theta_max) {cos_theta_max = in_cos_theta_max;}; // set cos(theta*) max in the pbarp CM frame
60 
62  virtual Bool_t ReadEvent(FairPrimaryGenerator* primGen);
63 
65  Bool_t Init();
66 
67  ClassDef(PndPiPiGenerator,1);
68 
69  Double_t P; // pbar momentum
70  Int_t seed; // seed
71  Double_t cos_theta_min; // cos(theta*) min in the pbarp CM frame
72  Double_t cos_theta_max; // cos(theta*) max in the pbarp CM frame
73  Double_t piplus_p[4]; // lab frame: 4-mom pi+
74  Double_t piminus_p[4]; // lab frame: 4-mom pi-
75 };
76 
77 #endif
double r
Definition: RiemannTest.C:14
void SetBeamMom(Double_t in_P)
void ranlxd(double r[], int n)
Definition: ranlxd.cxx:571
void SetCosThetaMax(Double_t in_cos_theta_max)
int n
FairPrimaryGenerator * primGen
Definition: sim_emc_apd.C:81
Double_t
unsigned int seed
void SetCosThetaMin(Double_t in_cos_theta_min)
void ranlxs(float r[], int n)
Definition: ranlxs.cxx:566
GeV c P
fRun Init()
Definition: NHitsPerEvent.C:20
void rlxs_init(int level, int seed)
Definition: ranlxs.cxx:495
void rlxd_init(int level, int seed)
Definition: ranlxd.cxx:501
void SetSeed(Int_t in_seed)