MpdConstPar.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // -------------------------------------------------------------------------
  2. // MpdContPar header file -----
  3. // Created 23/07/13 by P. Batyuk (MPD) <batyuk@jinr.ru> -----
  4. // from MpdContPar (PNDROOT) -----
  5. // -------------------------------------------------------------------------
  6. #ifndef MPDCONSTPAR_H
  7. #define MPDCONSTPAR_H 1
  8. #include "MpdMapPar.h"
  9. class FairParamList;
  10. class MpdConstPar : public MpdMapPar
  11. {
  12. public:
  13. /** Standard constructor **/
  14. MpdConstPar(const char* name, const char* title, const char* context);
  15. /** default constructor **/
  16. MpdConstPar();
  17. /** Destructor **/
  18. ~MpdConstPar();
  19. void putParams(FairParamList* list);
  20. /** Get parameters **/
  21. Bool_t getParams(FairParamList* list);
  22. /** Set parameters from FairField **/
  23. void SetParameters(FairField* field);
  24. Double_t GetBx() const { return fBx; }
  25. Double_t GetBy() const { return fBy; }
  26. Double_t GetBz() const { return fBz; }
  27. protected:
  28. /** Field values in [kG] **/
  29. Double_t fBx, fBy, fBz;
  30. ClassDef(MpdConstPar,1);
  31. };
  32. #endif