CbmRoot
CbmShieldGenerator.h
Go to the documentation of this file.
1
// -------------------------------------------------------------------------
2
// ----- CbmShieldGenerator header file -----
3
// ----- Created 15/09/06 by V. Friese -----
4
// -------------------------------------------------------------------------
5
25
#ifndef FAIRSHIELDGENERATOR_H
26
#define FAIRSHIELDGENERATOR_H 1
27
28
29
#include "FairGenerator.h"
30
31
#include <fstream>
32
#include <map>
33
34
class
TDatabasePDG;
35
class
FairPrimaryGenerator;
36
class
FairIon;
37
38
class
CbmShieldGenerator
:
public
FairGenerator {
39
40
public
:
42
CbmShieldGenerator
();
43
44
48
CbmShieldGenerator
(
const
char
* fileName);
49
50
52
virtual
~CbmShieldGenerator
();
53
54
59
// virtual Bool_t ReadEvent(FairPrimaryGenerator* primGen);
60
virtual
Bool_t
ReadEvent
(FairPrimaryGenerator* primGen);
61
62
void
SetPartType
(
int
partType) {
fpartType
= partType; }
63
64
private
:
65
std::ifstream*
fInputFile
;
66
const
Char_t*
fFileName
;
67
TDatabasePDG*
fPDG
;
68
69
int
fpartType
;
// SELIM
70
73
void
CloseInput
();
74
75
78
Int_t
RegisterIons
();
79
80
82
std::map<TString, FairIon*>
fIonMap
;
83
84
85
CbmShieldGenerator
(
const
CbmShieldGenerator
&);
86
CbmShieldGenerator
&
operator=
(
const
CbmShieldGenerator
&);
87
88
ClassDef
(
CbmShieldGenerator
, 2);
89
};
90
91
#endif
CbmShieldGenerator::CloseInput
void CloseInput()
Definition:
CbmShieldGenerator.cxx:163
CbmShieldGenerator::fFileName
const Char_t * fFileName
Input file stream.
Definition:
CbmShieldGenerator.h:66
CbmShieldGenerator
Definition:
CbmShieldGenerator.h:38
CbmShieldGenerator::CbmShieldGenerator
CbmShieldGenerator(const CbmShieldGenerator &)
CbmShieldGenerator::CbmShieldGenerator
CbmShieldGenerator()
Definition:
CbmShieldGenerator.cxx:24
CbmShieldGenerator::ReadEvent
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)
Definition:
CbmShieldGenerator.cxx:62
CbmShieldGenerator::~CbmShieldGenerator
virtual ~CbmShieldGenerator()
Definition:
CbmShieldGenerator.cxx:57
CbmShieldGenerator::ClassDef
ClassDef(CbmShieldGenerator, 2)
CbmShieldGenerator::RegisterIons
Int_t RegisterIons()
Definition:
CbmShieldGenerator.cxx:178
CbmShieldGenerator::operator=
CbmShieldGenerator & operator=(const CbmShieldGenerator &)
CbmShieldGenerator::fpartType
int fpartType
PDG database.
Definition:
CbmShieldGenerator.h:69
CbmShieldGenerator::fIonMap
std::map< TString, FairIon * > fIonMap
Definition:
CbmShieldGenerator.h:82
CbmShieldGenerator::SetPartType
void SetPartType(int partType)
Definition:
CbmShieldGenerator.h:62
CbmShieldGenerator::fInputFile
std::ifstream * fInputFile
Definition:
CbmShieldGenerator.h:65
CbmShieldGenerator::fPDG
TDatabasePDG * fPDG
Input file Name.
Definition:
CbmShieldGenerator.h:67
sim
transport
generators
CbmShieldGenerator.h
Generated on Wed Oct 28 2020 15:11:44 for CbmRoot by
1.8.18