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  public:
50 
52  virtual ~PndPiPiGenerator();
53 
55  void SetBeamMom(Double_t in_P) { P = in_P; }; // set pbar momentum
56  void SetSeed(Int_t in_seed) { seed = in_seed; }; // set seed
57  void SetCosThetaMin(Double_t in_cos_theta_min) { cos_theta_min = in_cos_theta_min; }; // set cos(theta*) min in the pbarp CM frame
58  void SetCosThetaMax(Double_t in_cos_theta_max) { cos_theta_max = in_cos_theta_max; }; // set cos(theta*) max in the pbarp CM frame
59 
61  virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen);
62 
64  Bool_t Init();
65 
66  ClassDef(PndPiPiGenerator, 1);
67 
68  Double_t P; // pbar momentum
69  Int_t seed; // seed
70  Double_t cos_theta_min; // cos(theta*) min in the pbarp CM frame
71  Double_t cos_theta_max; // cos(theta*) max in the pbarp CM frame
72  Double_t piplus_p[4]; // lab frame: 4-mom pi+
73  Double_t piminus_p[4]; // lab frame: 4-mom pi-
74 };
75 
76 #endif
void SetBeamMom(Double_t in_P)
void ranlxd(double r[], int n)
void SetCosThetaMax(Double_t in_cos_theta_max)
STL namespace.
void SetCosThetaMin(Double_t in_cos_theta_min)
void ranlxs(float r[], int n)
void rlxs_init(int level, int seed)
void rlxd_init(int level, int seed)
void SetSeed(Int_t in_seed)