URun.h 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #ifndef URUN_H
  2. #define URUN_H
  3. #include "TNamed.h"
  4. #include "TString.h"
  5. class URun : public TNamed {
  6. private:
  7. TString fGenerator; // Generator description
  8. TString fComment; // Run comment
  9. TString fDecayer; // Decayer description
  10. Int_t fAProj; // Projectile mass number
  11. Int_t fZProj; // Projectile charge
  12. Double32_t fPProj; // Projectile momentum per nucleon (GeV)
  13. Int_t fATarg; // Target mass number
  14. Int_t fZTarg; // Target charge
  15. Double32_t fPTarg; // Target momentum per nucleon (GeV)
  16. Double32_t fBMin; // Minimum impact parameter
  17. Double32_t fBMax; // Maximum impact parameter
  18. Int_t fBWeight; // Impact parameter weighting
  19. // 0 for geometrical weights (bdb)
  20. // 1 for flat distribution
  21. Double32_t fPhiMin; // Event plane minimum angle (rad)
  22. Double32_t fPhiMax; // Event plane maximum angle (rad)
  23. Double32_t fSigma; // Cross-section (mb)
  24. Int_t fNEvents; // Requested number of events
  25. public:
  26. URun();
  27. URun(const char* generator, const char* comment, Int_t aProj,
  28. Int_t zProj, Double_t pProj, Int_t aTarg, Int_t zTarg,
  29. Double_t pTarg, Double_t bMin, Double_t bMax, Int_t bWeight,
  30. Double_t phiMin, Double_t phiMax, Double_t sigma, Int_t nEvents);
  31. virtual ~URun();
  32. void Print(Option_t* = "") const;
  33. void GetGenerator(TString& generator) {generator = fGenerator;}
  34. void GetComment(TString& comment) {comment = fComment;}
  35. void GetDecayer(TString& decayer) {decayer = fDecayer;}
  36. inline Int_t GetAProj() const {return fAProj;}
  37. inline Int_t GetZProj() const {return fZProj;}
  38. inline Double_t GetPProj() const {return fPProj;}
  39. inline Int_t GetATarg() const {return fATarg;}
  40. inline Int_t GetZTarg() const {return fZTarg;}
  41. inline Double_t GetPTarg() const {return fPTarg;}
  42. inline Double_t GetBMin() const {return fBMin;}
  43. inline Double_t GetBMax() const {return fBMax;}
  44. inline Int_t GetBWeight() const {return fBWeight;}
  45. inline Double_t GetPhiMax() const {return fPhiMax;}
  46. inline Double_t GetPhiMin() const {return fPhiMin;}
  47. inline Double_t GetSigma() const {return fSigma;}
  48. inline Int_t GetNEvents() const {return fNEvents;}
  49. Double_t GetSqrtS();
  50. Double_t GetNNSqrtS();
  51. Double_t GetProjectileEnergy();
  52. Double_t GetTargetEnergy();
  53. Double_t GetBetaCM();
  54. Double_t GetGammaCM();
  55. inline void SetNEvents(Int_t nEvents) {fNEvents=nEvents;}
  56. inline void SetPProj (Double_t pProj) {fPProj=pProj;}
  57. inline void SetPTarg (Double_t pTarg) {fPTarg=pTarg;}
  58. inline void SetDecayer(TString decayer) {fDecayer=decayer;}
  59. ClassDef(URun,1);
  60. };
  61. #endif