PandaRoot
PndSolenoidMap.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 PNDSOLENOIDMAP_H
29 #define PNDSOLENOIDMAP_H 1
30 
31 #include "PndFieldMap.h"
32 class PndMapPar;
33 class PndFieldPar;
34 class PndSolenoidPar;
35 
36 class PndSolenoidMap : public PndFieldMap {
37 
38  public:
41 
46  PndSolenoidMap(const char *mapName, const char *fileType = "R");
47 
49  PndSolenoidMap(PndMapPar *fieldPar);
50 
52  virtual ~PndSolenoidMap();
53 
54  void FillParContainer();
55 
62  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);
63 
64  static Int_t fNumberOfRegions;
65  Int_t fRegionNo;
66 
67  Int_t GetRegionNo() { return fRegionNo; }
68 
69  void GetBxyz(const Double_t point[3], Double_t *bField);
70 
71  protected:
72  // Hemispheres of a point (for temporary use)
73  Double_t fHemiX, fHemiY;
74 
75  ClassDef(PndSolenoidMap, 2)
76 };
77 
78 #endif
Int_t GetRegionNo()
static Int_t fNumberOfRegions
virtual ~PndSolenoidMap()
void FillParContainer()
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)
void GetBxyz(const Double_t point[3], Double_t *bField)