ATTPCROOT  0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
AtConstField.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 // ----- AtConstField header file -----
11 // ----- Created 25/03/14 by M. Al-Turany -----
12 // -------------------------------------------------------------------------
13 
22 #ifndef AtConstField_H
23 #define AtConstField_H 1
24 
25 #include <FairField.h>
26 
27 #include <Rtypes.h>
28 
29 class AtFieldPar;
30 class TBuffer;
31 class TClass;
32 class TMemberInspector;
33 
34 class AtConstField : public FairField {
35 
36 public:
38  AtConstField();
39 
47  AtConstField(const char *name, Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin,
48  Double_t zMax, Double_t bX, Double_t bY, Double_t bZ);
49 
51  AtConstField(AtFieldPar *fieldPar);
52 
54  virtual ~AtConstField();
55 
61  void SetFieldRegion(Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin, Double_t zMax);
62 
66  void SetField(Double_t bX, Double_t bY, Double_t bZ);
67 
71  virtual Double_t GetBx(Double_t x, Double_t y, Double_t z);
72  virtual Double_t GetBy(Double_t x, Double_t y, Double_t z);
73  virtual Double_t GetBz(Double_t x, Double_t y, Double_t z);
74 
76  Double_t GetXmin() const { return fXmin; }
77  Double_t GetXmax() const { return fXmax; }
78  Double_t GetYmin() const { return fYmin; }
79  Double_t GetYmax() const { return fYmax; }
80  Double_t GetZmin() const { return fZmin; }
81  Double_t GetZmax() const { return fZmax; }
82 
84  Double_t GetBx() const { return fBx; }
85  Double_t GetBy() const { return fBy; }
86  Double_t GetBz() const { return fBz; }
87 
89  virtual void Print();
90 
91 private:
93  Double_t fXmin;
94  Double_t fXmax;
95  Double_t fYmin;
96  Double_t fYmax;
97  Double_t fZmin;
98  Double_t fZmax;
99 
101  Double_t fBx;
102  Double_t fBy;
103  Double_t fBz;
104 
105  ClassDef(AtConstField, 1);
106 };
107 
108 #endif
AtConstField::GetBz
Double_t GetBz() const
Definition: AtConstField.h:86
AtConstField::GetXmax
Double_t GetXmax() const
Definition: AtConstField.h:77
AtConstField::GetZmin
Double_t GetZmin() const
Definition: AtConstField.h:80
AtFieldPar
Definition: AtFieldPar.h:30
AtConstField::GetYmin
Double_t GetYmin() const
Definition: AtConstField.h:78
AtConstField::~AtConstField
virtual ~AtConstField()
AtConstField
Definition: AtConstField.h:34
AtConstField::Print
virtual void Print()
Definition: AtConstField.cxx:124
AtConstField::GetXmin
Double_t GetXmin() const
Definition: AtConstField.h:76
y
const double * y
Definition: lmcurve.cxx:20
AtConstField::GetBx
Double_t GetBx() const
Definition: AtConstField.h:84
AtConstField::AtConstField
AtConstField()
Definition: AtConstField.cxx:31
AtConstField::SetFieldRegion
void SetFieldRegion(Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin, Double_t zMax)
Definition: AtConstField.cxx:75
AtConstField::SetField
void SetField(Double_t bX, Double_t bY, Double_t bZ)
Definition: AtConstField.cxx:88
AtConstField::GetBy
Double_t GetBy() const
Definition: AtConstField.h:85
AtConstField::GetZmax
Double_t GetZmax() const
Definition: AtConstField.h:81
AtConstField::GetYmax
Double_t GetYmax() const
Definition: AtConstField.h:79