FairRoot
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
FairParticleGenerator.h
Go to the documentation of this file.
1
/********************************************************************************
2
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3
* *
4
* This software is distributed under the terms of the *
5
* GNU Lesser General Public Licence (LGPL) version 3, *
6
* copied verbatim in the file "LICENSE" *
7
********************************************************************************/
8
// -------------------------------------------------------------------------
9
// ----- FairParticleGenerator header file -----
10
// ----- Created 09/07/04 by V. Friese / D.Bertini -----
11
// -------------------------------------------------------------------------
12
22
#ifndef FAIR_PARTICLEGENERATOR_H
23
#define FAIR_PARTICLEGENERATOR_H
24
25
#include "
FairBaseMCGenerator.h
"
// for FairGenerator
26
27
#include <Rtypes.h>
// for Double32_t, Int_t, etc
28
29
class
FairPrimaryGenerator
;
30
31
class
FairParticleGenerator
:
public
FairBaseMCGenerator
32
{
33
public
:
35
FairParticleGenerator
();
36
44
FairParticleGenerator
(Int_t pdgid,
45
Int_t mult,
46
Double32_t px,
47
Double32_t py,
48
Double32_t pz,
49
Double32_t vx = 0.,
50
Double32_t vy = 0.,
51
Double32_t vz = 0.);
52
54
virtual
~FairParticleGenerator
(){};
55
57
void
SetMomentum
(Double32_t px, Double32_t py, Double32_t pz);
58
62
virtual
Bool_t
ReadEvent
(
FairPrimaryGenerator
* primGen);
63
64
private
:
65
Double32_t fPx, fPy, fPz;
// Momentum components [GeV]
66
67
ClassDef(
FairParticleGenerator
, 2);
68
};
69
70
#endif
FairParticleGenerator::~FairParticleGenerator
virtual ~FairParticleGenerator()
Definition:
FairParticleGenerator.h:54
FairParticleGenerator::ReadEvent
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)
Definition:
FairParticleGenerator.cxx:51
FairPrimaryGenerator
Definition:
FairPrimaryGenerator.h:39
FairParticleGenerator
Definition:
FairParticleGenerator.h:31
FairBaseMCGenerator.h
FairParticleGenerator::FairParticleGenerator
FairParticleGenerator()
Definition:
FairParticleGenerator.cxx:17
FairBaseMCGenerator
Definition:
FairBaseMCGenerator.h:17
FairParticleGenerator::SetMomentum
void SetMomentum(Double32_t px, Double32_t py, Double32_t pz)
Definition:
FairParticleGenerator.cxx:44
FairRoot
generators
FairParticleGenerator.h
Generated on Mon Mar 8 2021 12:14:06 for FairRoot by
1.8.5