FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairConstPar.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  ********************************************************************************/
16 #ifndef FairConstPAR_H
17 #define FairConstPAR_H 1
18 
19 #include "FairMapPar.h" // for FairMapPar
20 
21 #include <Rtypes.h> // for Double_t, etc
22 
23 class FairField;
24 class FairParamList;
25 
26 class FairConstPar : public FairMapPar
27 {
28 
29  public:
31  FairConstPar(const char* name, const char* title, const char* context);
32 
34  FairConstPar();
35 
37  ~FairConstPar();
38 
39  void putParams(FairParamList* list);
40 
42  Bool_t getParams(FairParamList* list);
43 
45  void SetParameters(FairField* field);
46 
47  Double_t GetBx() const { return fBx; }
48  Double_t GetBy() const { return fBy; }
49  Double_t GetBz() const { return fBz; }
50 
51  protected:
53  Double_t fBx, fBy, fBz;
54 
56 };
57 
58 #endif
Double_t GetBx() const
Definition: FairConstPar.h:47
Bool_t getParams(FairParamList *list)
Double_t GetBy() const
Definition: FairConstPar.h:48
Double_t fBy
Definition: FairConstPar.h:53
void SetParameters(FairField *field)
Double_t fBz
Definition: FairConstPar.h:53
Double_t fBx
Definition: FairConstPar.h:53
void putParams(FairParamList *list)
ClassDef(FairConstPar, 1)
Double_t GetBz() const
Definition: FairConstPar.h:49