PandaRoot
PndFtfGenerator.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 // ----- PndFtfGenerator header file ----
15 // ----- edited 29/08/14 by Aida Galoyan
16 //---- from the file PndDpmGenerator.h created 05/02/07 by S.Spataro
17 
18 // -------------------------------------------------------------------------
19 
27 #ifndef PND_FTFGENERATOR_H
28 #define PND_FTFGENERATOR_H
29 
30 #include "FairGenerator.h"
31 
32 class TClonesArray;
33 class TFile;
34 class TTree;
35 class TVirtualMCStack;
36 class FairPrimaryGenerator;
37 
38 class PndFtfGenerator : public FairGenerator {
39 
40  public:
43 
47  PndFtfGenerator(const Char_t *fileName);
48 
50  virtual ~PndFtfGenerator();
51 
56  virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen);
57 
58  void SetStartEvent(Int_t start) { iEvent = start; };
59 
60  private:
61  Int_t iEvent;
62  const Char_t *fFileName;
63  TFile *fInputFile;
64  TTree *fInputTree;
65  TClonesArray *fParticles;
66 
69  void CloseInput();
70 
71  ClassDef(PndFtfGenerator, 1);
72 };
73 
74 #endif
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)
void SetStartEvent(Int_t start)
virtual ~PndFtfGenerator()