PandaRoot
PndUrqmdSmmGenerator.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 // ----- PndUrqmdSmmGenerator header file -----
15 // ----- Created 23/05/07 by Aida Galoyan -----
16 // -------------------------------------------------------------------------
17 
24 #ifndef PND_URQMDSMMGENERATOR_H
25 #define PND_URQMDSMMGENERATOR_H
26 
27 #include "FairGenerator.h"
28 
29 // using namespace std;
30 
31 class TClonesArray;
32 class TFile;
33 class TTree;
34 class TVirtualMCStack;
35 class FairPrimaryGenerator;
36 
37 class PndUrqmdSmmGenerator : public FairGenerator {
38 
39  public:
42 
46  PndUrqmdSmmGenerator(const Char_t *fileName);
47 
49  virtual ~PndUrqmdSmmGenerator();
50 
55  virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen);
56 
57  private:
58  Int_t iEvent;
59  const Char_t *fFileName;
60  TFile *fInputFile;
61  TTree *fInputTree;
62  TClonesArray *fParticles;
63 
66  void CloseInput();
67 
68  ClassDef(PndUrqmdSmmGenerator, 1);
69 };
70 
71 #endif
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)
virtual ~PndUrqmdSmmGenerator()