PandaRoot
pgenerators/FileReaders/PndHypBupGenerator.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 // ----- PndHypBupGenerator header file -----
15 // ----- Created by Alicia Sanchez -----
16 // -------------------------------------------------------------------------
17 
29 #ifndef PNDHYPBUPGENERATOR_H
30 #define PNDHYPBUPGENERATOR_H 1
31 
32 #include "THParticle.h" //detectors/hyp
33 
34 #include "FairGenerator.h"
35 
36 class TClonesArray;
37 class TFile;
38 class TTree;
39 class TVirtualMCStack;
40 
41 class PndPrimaryGenerator;
42 // class CbmParticle;
43 
44 class PndHypBupGenerator : public FairGenerator {
45 
46  public:
49 
53  PndHypBupGenerator(const char *fileName);
54 
56  virtual ~PndHypBupGenerator();
57 
62  virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen);
63 
64  private:
66  Int_t iEvent;
67  const Char_t *fFileName;
68  TFile *fInputFile;
69  TTree *fInputTree;
70  TClonesArray *fParticles;
71 
74  void CloseInput();
75 
79  // Int_t RegisterIons();
80 
82  // std::map<TString,CbmParticle*> fIonMap; //!
83 
84  ClassDef(PndHypBupGenerator, 1);
85 };
86 
87 #endif
virtual ~PndHypBupGenerator()
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)