ATTPCROOT  0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
AtFieldPar.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 version 3 (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 
9 // -------------------------------------------------------------------------
10 // ----- AtFieldPar header file -----
11 // ----- Created 26/03/14 by M. Al-Turany -----
12 // -------------------------------------------------------------------------
13 
14 #ifndef AtFieldPar_H
15 #define AtFieldPar_H 1
16 
17 #include <FairParGenericSet.h>
18 
19 #include <Rtypes.h>
20 #include <TString.h>
21 
22 class FairField;
23 class FairParamList;
24 class TBuffer;
25 class TClass;
26 class TMemberInspector;
27 
28 const int kMaxFieldMapType = 5;
29 
30 class AtFieldPar : public FairParGenericSet {
31 
32 public:
34  AtFieldPar(const char *name, const char *title, const char *context);
35 
37  AtFieldPar();
38 
41 
43  virtual void putParams(FairParamList *list);
44 
46  virtual Bool_t getParams(FairParamList *list);
47 
49  void SetParameters(FairField *field);
50 
52  Int_t GetType() const { return fType; }
53  Double_t GetXmin() const { return fXmin; }
54  Double_t GetXmax() const { return fXmax; }
55  Double_t GetYmin() const { return fYmin; }
56  Double_t GetYmax() const { return fYmax; }
57  Double_t GetZmin() const { return fZmin; }
58  Double_t GetZmax() const { return fZmax; }
59  Double_t GetBx() const { return fBx; }
60  Double_t GetBy() const { return fBy; }
61  Double_t GetBz() const { return fBz; }
62  void MapName(TString &name) { name = fMapName; }
63  Double_t GetPositionX() const { return fPosX; }
64  Double_t GetPositionY() const { return fPosY; }
65  Double_t GetPositionZ() const { return fPosZ; }
66  Double_t GetScale() const { return fScale; }
67  Double_t GetPeak() const { return fPeak; }
68  Double_t GetMiddle() const { return fMiddle; }
69 
70 private:
78  Int_t fType;
79 
81  Double_t fXmin, fXmax;
82  Double_t fYmin, fYmax;
83  Double_t fZmin, fZmax;
84 
86  Double_t fBx, fBy, fBz;
87 
89  TString fMapName;
90 
92  Double_t fPosX, fPosY, fPosZ;
93 
95  Double_t fScale;
96 
98  Double_t fPeak;
99  Double_t fMiddle;
100 
101  AtFieldPar(const AtFieldPar &);
102  AtFieldPar &operator=(const AtFieldPar &);
103 
104  ClassDef(AtFieldPar, 1);
105 };
106 
107 #endif
AtFieldPar::getParams
virtual Bool_t getParams(FairParamList *list)
Definition: AtFieldPar.cxx:85
AtFieldPar::GetPositionZ
Double_t GetPositionZ() const
Definition: AtFieldPar.h:65
AtFieldPar::GetPeak
Double_t GetPeak() const
Definition: AtFieldPar.h:67
AtFieldPar::GetZmax
Double_t GetZmax() const
Definition: AtFieldPar.h:58
AtFieldPar::GetZmin
Double_t GetZmin() const
Definition: AtFieldPar.h:57
AtFieldPar::GetPositionY
Double_t GetPositionY() const
Definition: AtFieldPar.h:64
AtFieldPar::GetYmin
Double_t GetYmin() const
Definition: AtFieldPar.h:55
AtFieldPar
Definition: AtFieldPar.h:30
AtFieldPar::GetType
Int_t GetType() const
Definition: AtFieldPar.h:52
AtFieldPar::GetYmax
Double_t GetYmax() const
Definition: AtFieldPar.h:56
AtFieldPar::GetBy
Double_t GetBy() const
Definition: AtFieldPar.h:60
AtFieldPar::putParams
virtual void putParams(FairParamList *list)
Definition: AtFieldPar.cxx:53
AtFieldPar::GetXmin
Double_t GetXmin() const
Definition: AtFieldPar.h:53
AtFieldPar::GetScale
Double_t GetScale() const
Definition: AtFieldPar.h:66
AtFieldPar::MapName
void MapName(TString &name)
Definition: AtFieldPar.h:62
AtFieldPar::GetMiddle
Double_t GetMiddle() const
Definition: AtFieldPar.h:68
AtFieldPar::GetBx
Double_t GetBx() const
Definition: AtFieldPar.h:59
AtFieldPar::GetXmax
Double_t GetXmax() const
Definition: AtFieldPar.h:54
AtFieldPar::AtFieldPar
AtFieldPar()
Definition: AtFieldPar.cxx:40
AtFieldPar::SetParameters
void SetParameters(FairField *field)
Definition: AtFieldPar.cxx:140
AtFieldPar::~AtFieldPar
~AtFieldPar()
kMaxFieldMapType
const int kMaxFieldMapType
Definition: AtFieldPar.h:28
AtFieldPar::GetPositionX
Double_t GetPositionX() const
Definition: AtFieldPar.h:63
AtFieldPar::GetBz
Double_t GetBz() const
Definition: AtFieldPar.h:61