BmnRoot
Loading...
Searching...
No Matches
MpdHypYPtGenerator.h
Go to the documentation of this file.
1// -------------------------------------------------------------------------
2// ----- CbmAnaHypYPtGenerator header file -----
3// ----- Created 03/10/04 by E. Kryshen -----
4// ----- Updated 10/02/10 by A. Zinchenko for MPD (with name change) -----
5// -------------------------------------------------------------------------
6
16#ifndef MPDHYPYPTGENERATOR_H
17#define MPDHYPYPTGENERATOR_H
18
19#include "FairGenerator.h"
20#include "TF1.h"
21
22using namespace std;
23
24class FairPrimaryGenerator;
25
26class MpdHypYPtGenerator : public FairGenerator {
27public:
30
36 MpdHypYPtGenerator(Int_t pdgid, Int_t mult = 1, Double_t yield = -1.0);
37
40
42 inline void SetPDGType(Int_t pdg) { fPDGType = pdg; };
43 inline void SetMultiplicity(Int_t mult) { fMult = mult; };
44 // inline void SetDistributionPt (Double_t T=0.154319) {fT=T;};
45 inline void SetDistributionPt(Double_t T = 0.223) { fT = T; }; // AZ - for Omega- @ 9 GeV/n AuAu UrQMD
46 // inline void SetDistributionY (Double_t y0=1.98604, Double_t sigma=0.617173) {fY0=y0;fSigma=sigma;};
47 inline void SetDistributionY(Double_t y0 = 0, Double_t sigma = 0.72)
48 {
49 fY0 = y0;
50 fSigma = sigma;
51 }; // AZ - for Omega- @ 9 GeV/n AuAu UrQMD
52 inline void SetRangePt(Double_t ptMin = 0, Double_t ptMax = 3)
53 {
54 fPtMin = ptMin;
55 fPtMax = ptMax;
56 };
57
59 Bool_t Init();
60
64 virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen);
65
66private:
67 Int_t fPDGType;
68 Int_t fMult;
69 Double_t fT;
70 Double_t fY0;
71 Double_t fSigma;
72 Double_t fPtMin;
73 Double_t fPtMax;
74 Double_t fPDGMass;
75 TF1 *fDistPt;
76 Double_t fYield;
77
78 ClassDef(MpdHypYPtGenerator, 1);
79};
80
81#endif
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)
void SetDistributionPt(Double_t T=0.223)
void SetRangePt(Double_t ptMin=0, Double_t ptMax=3)
MpdHypYPtGenerator(Int_t pdgid, Int_t mult=1, Double_t yield=-1.0)
void SetDistributionY(Double_t y0=0, Double_t sigma=0.72)
void SetPDGType(Int_t pdg)
void SetMultiplicity(Int_t mult)
STL namespace.