PandaRoot
PndDipoleMap.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 
28 #ifndef PNDDIPOLEMAP_H
29 #define PNDDIPOLEMAP_H 1
30 
31 #include "PndFieldMap.h"
32 
33 class PndDipolePar;
34 class PndMapPar;
35 
36 class PndDipoleMap : public PndFieldMap {
37 
38  public:
40  PndDipoleMap();
41 
46  PndDipoleMap(const char *mapName, const char *fileType = "R", Double_t BeamMom = 15.0);
47 
49  PndDipoleMap(PndMapPar *fieldPar);
50 
52  virtual ~PndDipoleMap();
53 
60  virtual Bool_t IsInside(Double_t x, Double_t y, Double_t z, Int_t &ix, Int_t &iy, Int_t &iz, Double_t &dx, Double_t &dy, Double_t &dz);
61 
62  static Int_t fNumberOfRegions;
63  Int_t fRegionNo;
64 
65  Int_t GetRegionNo() { return fRegionNo; }
66 
67  void GetBxyz(const Double_t point[3], Double_t *bField);
68 
69  void FillParContainer();
70 
71  protected:
72  // Hemispheres of a point (for temporary use)
73  Double_t fHemiX, fHemiY;
74  Double_t fBeamMom;
75 
76  ClassDef(PndDipoleMap, 3)
77 };
78 
79 #endif
virtual ~PndDipoleMap()
virtual Bool_t IsInside(Double_t x, Double_t y, Double_t z, Int_t &ix, Int_t &iy, Int_t &iz, Double_t &dx, Double_t &dy, Double_t &dz)
static Int_t fNumberOfRegions
Definition: PndDipoleMap.h:62
Double_t fHemiY
Definition: PndDipoleMap.h:73
Int_t GetRegionNo()
Definition: PndDipoleMap.h:65
void FillParContainer()
void GetBxyz(const Double_t point[3], Double_t *bField)
Int_t fRegionNo
Definition: PndDipoleMap.h:63
Double_t fBeamMom
Definition: PndDipoleMap.h:74
Double_t fHemiX
Definition: PndDipoleMap.h:73