PandaRoot
PndDpmGenerator.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 // ----- PndDpmGenerator header file -----
15 // ----- Created 05/02/07 by S.Spataro -----
16 // -------------------------------------------------------------------------
17 
26 #ifndef PND_DPMGENERATOR_H
27 #define PND_DPMGENERATOR_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 PndDpmGenerator : public FairGenerator {
38 
39  public:
42 
46  PndDpmGenerator(const Char_t *fileName);
47 
49  virtual ~PndDpmGenerator();
50 
55  virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen);
56 
57  void SetStartEvent(Int_t start) { iEvent = start; };
58 
59  private:
60  Int_t iEvent;
61  const Char_t *fFileName;
62  TFile *fInputFile;
63  TTree *fInputTree;
64  TClonesArray *fParticles;
65 
68  void CloseInput();
69 
70  ClassDef(PndDpmGenerator, 1);
71 };
72 
73 #endif
virtual ~PndDpmGenerator()
void SetStartEvent(Int_t start)
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)