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
22
using namespace
std
;
23
24
class
FairPrimaryGenerator;
25
26
class
MpdHypYPtGenerator
:
public
FairGenerator {
27
public
:
29
MpdHypYPtGenerator
();
30
36
MpdHypYPtGenerator
(Int_t pdgid, Int_t mult = 1, Double_t yield = -1.0);
37
39
virtual
~MpdHypYPtGenerator
(){};
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
66
private
:
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
MpdHypYPtGenerator
Definition
MpdHypYPtGenerator.h:26
MpdHypYPtGenerator::MpdHypYPtGenerator
MpdHypYPtGenerator()
Definition
MpdHypYPtGenerator.cxx:16
MpdHypYPtGenerator::~MpdHypYPtGenerator
virtual ~MpdHypYPtGenerator()
Definition
MpdHypYPtGenerator.h:39
MpdHypYPtGenerator::ReadEvent
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)
Definition
MpdHypYPtGenerator.cxx:55
MpdHypYPtGenerator::SetDistributionPt
void SetDistributionPt(Double_t T=0.223)
Definition
MpdHypYPtGenerator.h:45
MpdHypYPtGenerator::SetRangePt
void SetRangePt(Double_t ptMin=0, Double_t ptMax=3)
Definition
MpdHypYPtGenerator.h:52
MpdHypYPtGenerator::SetDistributionY
void SetDistributionY(Double_t y0=0, Double_t sigma=0.72)
Definition
MpdHypYPtGenerator.h:47
MpdHypYPtGenerator::Init
Bool_t Init()
Definition
MpdHypYPtGenerator.cxx:35
MpdHypYPtGenerator::SetPDGType
void SetPDGType(Int_t pdg)
Definition
MpdHypYPtGenerator.h:42
MpdHypYPtGenerator::SetMultiplicity
void SetMultiplicity(Int_t mult)
Definition
MpdHypYPtGenerator.h:43
std
STL namespace.
generators
MpdHypYPtGenerator.h
Generated on Fri May 15 2026 10:40:53 for BmnRoot by
1.9.8