CbmRoot
Loading...
Searching...
No Matches
CbmShieldGenerator.h
Go to the documentation of this file.
1/* Copyright (C) 2009-2015 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Volker Friese [committer], Florian Uhlig */
4
5// -------------------------------------------------------------------------
6// ----- CbmShieldGenerator header file -----
7// ----- Created 15/09/06 by V. Friese -----
8// -------------------------------------------------------------------------
9
29#ifndef FAIRSHIELDGENERATOR_H
30#define FAIRSHIELDGENERATOR_H 1
31
32
33#include "FairGenerator.h"
34
35#include <fstream>
36#include <map>
37
38class TDatabasePDG;
39class FairPrimaryGenerator;
40class FairIon;
41
42class CbmShieldGenerator : public FairGenerator {
43
44public:
47
48
52 CbmShieldGenerator(const char* fileName);
53
54
56 virtual ~CbmShieldGenerator();
57
58
63 // virtual Bool_t ReadEvent(FairPrimaryGenerator* primGen);
64 virtual Bool_t ReadEvent(FairPrimaryGenerator* primGen);
65
66 void SetPartType(int partType) { fpartType = partType; }
67
68private:
69 std::ifstream* fInputFile;
70 const Char_t* fFileName;
71 TDatabasePDG* fPDG;
72
73 int fpartType; // SELIM
74
77 void CloseInput();
78
79
82 Int_t RegisterIons();
83
84
86 std::map<TString, FairIon*> fIonMap;
87
88
91
93};
94
95#endif
int fpartType
PDG database.
CbmShieldGenerator & operator=(const CbmShieldGenerator &)
const Char_t * fFileName
Input file stream.
CbmShieldGenerator(const CbmShieldGenerator &)
std::map< TString, FairIon * > fIonMap
std::ifstream * fInputFile
ClassDef(CbmShieldGenerator, 2)
TDatabasePDG * fPDG
Input file Name.
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)
void SetPartType(int partType)