MpdRainGenerator.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef MPDRAINGENERATOR_H
  2. #define MPDRAINGENERATOR_H
  3. #include "FairGenerator.h"
  4. class FairPrimaryGenerator;
  5. class MpdRainGenerator : public FairGenerator
  6. {
  7. private:
  8. Int_t _PDGType; // Particle type (PDG encoding)
  9. Int_t _N; // Size of shower
  10. Double_t _p; // Momentum
  11. Double_t _theta; // angle from z axis
  12. Double_t _phi; // angle in XoY plain
  13. Double_t _height; // Height at which rain starts
  14. Double_t _d; // distance between tracks
  15. public:
  16. MpdRainGenerator();
  17. // pdgid - Particle ID
  18. // p - momentum of particle
  19. // theta, phi - angles of rain (particles)
  20. // d - distance between particles
  21. // n - (2*n)^2 number of particles
  22. MpdRainGenerator(Int_t pdgid, Double_t p, Double_t theta, Double_t phi, Double_t d, Double_t height, Int_t n);
  23. virtual ~MpdRainGenerator() {};
  24. // Create an Event
  25. virtual Bool_t ReadEvent(FairPrimaryGenerator* primGen);
  26. ClassDef(MpdRainGenerator,1);
  27. };
  28. #endif