SND@LHC Software
Loading...
Searching...
No Matches
tPythia6Generator.h
Go to the documentation of this file.
1#ifndef PNDP6GENERATOR_H
2#define PNDP6GENERATOR_H 1
3
4#include "TROOT.h"
5#include "FairGenerator.h"
6#include "TPythia6.h"
7#include "TString.h"
8#include "TPythia6Calls.h"
9
10class FairPrimaryGenerator;
11
12class tPythia6Generator : public FairGenerator
13{
14 public:
15
18
20 virtual ~tPythia6Generator();
21
23 Bool_t ReadEvent(FairPrimaryGenerator*);
24
25 virtual Bool_t Init();
26
27 void SetMom(Double_t mom) { fMom = mom; };
28 void SetTarget(TString Type, TString Target) { fType = Type; fTarget=Target;};
29 void UseDeepCopy(){ fDeepCopy = kTRUE; };
30 double getPyint5_XSEC(int i, int j){return fPythia->GetPyint5()->XSEC[i][j];};
31 double getPyint5_NGEN(int i, int j){return fPythia->GetPyint5()->NGEN[i][j];};
32 int getPyint5_NGENPD( ){return fPythia->GetPyint5()->NGENPD;};
33 private:
34
35 TPythia6* fPythia;
36
37 protected:
38
39 Double_t fMom; // proton momentum
40 Bool_t fDeepCopy; // copy complete pythia event
42 TString fType; // muon proton scattering
43 TString fTarget;
45};
46
47#endif /* !PNDP6GENERATOR_H */
void SetMom(Double_t mom)
double getPyint5_XSEC(int i, int j)
void SetTarget(TString Type, TString Target)
Bool_t ReadEvent(FairPrimaryGenerator *)
virtual Bool_t Init()
double getPyint5_NGEN(int i, int j)
ClassDef(tPythia6Generator, 1)