PandaRoot
PndDpmDirect.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 // -------------------------------------------------------------------------
14 // ----- PndDpmDirect header file -----
15 // ----- Created 11/04/08 by M.Al-Turany -----
16 // -------------------------------------------------------------------------
17 
27 #ifndef PND_DPMDIRECT_H
28 #define PND_DPMDIRECT_H
29 
30 #include "PndTargetGenerator.h"
31 #include "TF1.h"
32 
33 class TVirtualMCStack;
34 class FairPrimaryGenerator;
35 
37 
38  public:
40  PndDpmDirect();
41 
48  PndDpmDirect(Double_t Mom, Int_t Mode, Long_t Seed = -1);
49  PndDpmDirect(Double_t Mom, Int_t Mode, Long_t Seed, Double_t ThtMin, Double_t ThtMax = 180.);
50  PndDpmDirect(Double_t Mom, Int_t Mode, Double_t Rsigma, TF1 *DensityFunction, Long_t Seed = -1, Double_t ThtMin = 0.001, Double_t ThtMax = 180.);
51 
53  virtual ~PndDpmDirect();
54 
58  virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen);
59 
60  void SetUnstable(int pdg);
61  void SetStable(int pdg);
62 
63  private:
67  double fMom;
73  double fMode;
74  double fSeed;
75  int fGasmode;
76  double fRsigma;
77  double fThtMin;
78  double fThtMax;
79 
80  TF1 *fDensityFunction;
81 
82  ClassDef(PndDpmDirect, 1);
83 };
84 
85 #endif
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)
void SetUnstable(int pdg)
void SetStable(int pdg)
virtual ~PndDpmDirect()