CbmRoot
Loading...
Searching...
No Matches
CbmPlutoGenerator.h
Go to the documentation of this file.
1/* Copyright (C) 2004-2018 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Volker Friese, Denis Bertini [committer] */
4
5// -------------------------------------------------------------------------
6// ----- CbmPlutoGenerator header file -----
7// ----- Created 13/07/04 by V. Friese / D.Bertini -----
8// -------------------------------------------------------------------------
9
20#ifndef FAIR_PLUTOGENERATOR_H
21#define FAIR_PLUTOGENERATOR_H
22
23#include "FairGenerator.h" // for FairGenerator
24#include "PStaticData.h" // for PStaticData
25#include "Rtypes.h" // for Char_t, etc
26#include "TClonesArray.h" // for TClonesArray
27
28#include <string>
29#include <vector>
30
31class FairPrimaryGenerator;
32
33class TChain;
34
35class CbmPlutoGenerator : public FairGenerator {
36
37 public:
40
41
45 CbmPlutoGenerator(const Char_t* fileName);
46
50 CbmPlutoGenerator(std::vector<std::string> fileNames);
51
54
56 virtual ~CbmPlutoGenerator();
57
58
63 virtual Bool_t ReadEvent(FairPrimaryGenerator* primGen);
64 void SetManualPDG(Int_t pdg) { fPDGmanual = pdg; }
65
70
71 private:
74
75 Int_t iEvent{0};
76 const Char_t* fFileName{""};
77 TChain* fInputChain{nullptr};
78 TClonesArray* fParticles{new TClonesArray("PParticle", 100)};
79 Int_t fPDGmanual{0};
81
84 void CloseInput();
85
87};
88
89#endif
PDataBase * makeDataBase()
Definition PDataBase.cxx:22
PStaticData * makeStaticData()
CbmPlutoGenerator & operator=(const CbmPlutoGenerator &)=delete
PDataBase * fbase
pluto static data
Int_t GetNumAvailableEvents()
Get the maximum number of events available in the input file.
void CloseInput()
Maximum number of events in the input file.
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)
void SetManualPDG(Int_t pdg)
Int_t fAvailableEvents
forced pdg value for undefined pluto codes
CbmPlutoGenerator(const CbmPlutoGenerator &)=delete
Int_t iEvent
pluto data base
Int_t fPDGmanual
Particle array from PLUTO.
ClassDef(CbmPlutoGenerator, 5)
TClonesArray * fParticles
Pointer to input file.
const Char_t * fFileName
Event number.
TChain * fInputChain
Input file name.