FairRoot
 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 
30 
32 {
33  public:
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 
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
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)
void SetMomentum(Double32_t px, Double32_t py, Double32_t pz)