BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnMultiField.h
Go to the documentation of this file.
1#ifndef BMNMULTIMAP_H
2#define BMNMULTIMAP_H 1
3
4#include "FairField.h"
5#include "TObjArray.h"
6
7#include <map>
8
9class BmnRegion;
11
12class BmnMultiField : public FairField
13{
14 public:
15 /** Default constructor **/
17 /** Constructor from MpdFieldPar **/
19 /** Destructor **/
20 virtual ~BmnMultiField();
21
22 /** Initialisation (read map from file) **/
23 void Init();
24
25 /**Adding a field to the collection*/
26 void AddField(FairField* field);
27
29
30 /** Get the field components at a certain point
31 ** @param x,y,z Point coordinates (global) [cm]
32 ** @value Bx,By,Bz Field components [kG]
33 **/
37
38 void GetFieldValue(const Double_t point[3], Double_t* bField);
39
40 /** Screen output **/
41 virtual void Print(Option_t*) const;
42
43 protected:
46 std::map<BmnRegion*, FairField*> fFieldMaps; //!
47
49};
50
51#endif
int Int_t
double Double_t
const char Option_t
#define ClassDef(name, id)
TObjArray * fMaps
virtual Double_t GetBx(Double_t x, Double_t y, Double_t z)
Get the field components at a certain point.
virtual ~BmnMultiField()
Destructor.
virtual Double_t GetBy(Double_t x, Double_t y, Double_t z)
std::map< BmnRegion *, FairField * > fFieldMaps
virtual Double_t GetBz(Double_t x, Double_t y, Double_t z)
BmnMultiField(BmnMultiFieldPar *fieldPar)
Constructor from MpdFieldPar.
virtual void Print(Option_t *) const
Screen output.
void Init()
Initialisation (read map from file).
void AddField(FairField *field)
Adding a field to the collection.
TObjArray * GetFieldList()
BmnMultiField()
Default constructor.
void GetFieldValue(const Double_t point[3], Double_t *bField)