PandaRoot
PndJRGenerator.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 // ----- PndJRGenerator header file -----
15 // ----- Created 05/02/07 by S.Spataro -----
16 // ----- Modified 21/06/07 by A.Galoyan -----
17 // -------------------------------------------------------------------------
18 
26 #ifndef PND_JRGENERATOR_H
27 #define PND_JRGENERATOR_H
28 
29 #include "FairGenerator.h"
30 
31 class TClonesArray;
32 class TFile;
33 class TTree;
34 class TVirtualMCStack;
35 class FairPrimaryGenerator;
36 
37 class PndJRGenerator : public FairGenerator {
38 
39  public:
42 
46  PndJRGenerator(const Char_t *fileName);
47 
49  virtual ~PndJRGenerator();
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(PndJRGenerator, 1);
69 };
70 
71 #endif
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)
virtual ~PndJRGenerator()