FairShip
Loading...
Searching...
No Matches
tPythia6Generator.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-3.0-or-later
2// SPDX-FileCopyrightText: Copyright CERN for the benefit of the SHiP
3// Collaboration
4
5#ifndef SHIPGEN_TPYTHIA6GENERATOR_H_
6#define SHIPGEN_TPYTHIA6GENERATOR_H_
7
8#include "Generator.h"
9#include "TPythia6.h"
10#include "TPythia6Calls.h"
11#include "TROOT.h"
12#include "TString.h"
13
14class FairPrimaryGenerator;
15
17 public:
20
22 ~tPythia6Generator() override;
23
25 Bool_t ReadEvent(FairPrimaryGenerator*) override;
26
28 Bool_t Init() override;
29
30 void SetMom(Double_t mom) { fMom = mom; };
31 void SetTarget(TString Type, TString Target) {
32 fType = Type;
34 };
35 void UseDeepCopy() { fDeepCopy = kTRUE; };
36 double getPyint5_XSEC(int i, int j) {
37 return fPythia->GetPyint5()->XSEC[i][j];
38 };
39 double getPyint5_NGEN(int i, int j) {
40 return fPythia->GetPyint5()->NGEN[i][j];
41 };
42 int getPyint5_NGENPD() { return fPythia->GetPyint5()->NGENPD; };
43
44 private:
45 TPythia6* fPythia;
46
47 protected:
48 Double_t fMom; // proton momentum
49 Bool_t fDeepCopy; // copy complete pythia event
51 TString fType; // muon proton scattering
52 TString fTarget;
53};
54
55#endif // SHIPGEN_TPYTHIA6GENERATOR_H_ /* !PNDP6GENERATOR_H */
virtual Bool_t Init(const char *, int)=0
Definition: Target.h:23
void SetMom(Double_t mom)
Bool_t Init() override
double getPyint5_XSEC(int i, int j)
void SetTarget(TString Type, TString Target)
Bool_t ReadEvent(FairPrimaryGenerator *) override
double getPyint5_NGEN(int i, int j)
~tPythia6Generator() override