PandaRoot
PndEvtGenDirect.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 // ----- PndEvtGenDirect header file -----
15 // ----- Created 11/04/08 by M.Al-Turany -----
16 // -------------------------------------------------------------------------
17 
26 #ifndef PND_EVTDIRECT_H
27 #define PND_EVTDIRECT_H
28 
29 #include "PndTargetGenerator.h"
30 #include "TF1.h"
31 
32 class TVirtualMCStack;
33 class FairPrimaryGenerator;
34 
35 #include "EvtGenBase/EvtStdHep.hh"
36 #include "EvtGenBase/EvtId.hh"
37 
38 class EvtGen;
39 
40 // class PndEvtGenDirect : public FairGenerator {
42 
43  public:
46 
47  PndEvtGenDirect(TString particle, TString decfile = "", Double_t Mom = 0, Long_t Seed = -1, TString defDECAY = "", TString defPDL = "",
48  Double_t ATarg = 0.0); // Mom>0 -> pbar Momentum; Mom<0 -> cms Energy
49  // ATarg is for nuclear target, value is 0 for p and d, and between 3 and 238 for heavier nuclei
50 
52  virtual ~PndEvtGenDirect();
53 
57  virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen);
58 
59  void SetStoreTree(Bool_t store = true) { fStoreTree = store; };
60  inline void SetVerbose(int v = 1) { verbose = v; };
61 
62  private:
63  Bool_t fStoreTree;
64  Int_t verbose;
68  Double_t fEnergy;
69  Double_t fMomentum;
70 
71  EvtGen *myGenerator;
72  EvtStdHep evtstdhep;
73  EvtId PART;
74 
75  ClassDef(PndEvtGenDirect, 2);
76 };
77 
78 #endif
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)
virtual ~PndEvtGenDirect()
void SetVerbose(int v=1)
__m128 v
Definition: P4_F32vec4.h:15
void SetStoreTree(Bool_t store=true)