18#include "FairParamList.h"
20#include "FairRuntimeDb.h"
28 :
FairParGenericSet(
name, title, context), mMapType(k5kG), mBeamType(kNoBeamField), mDefaultIntegration(0), mFactorSol(0.), mFactorDip(0.), mBeamEnergy(0.), mMaxField(0.), mMapPath()
40 mDefaultIntegration = field->
Integral();
44 mMaxField = field->
Max();
55 list->add(
"Map Type ID",
int(mMapType));
56 list->add(
"Beam Type ID",
int(mBeamType));
57 list->add(
"Integral Type", mDefaultIntegration);
58 list->add(
"Fact.Solenoid", mFactorSol);
59 list->add(
"Fact.Dipole ", mFactorDip);
60 list->add(
"Beam Energy ", mBeamEnergy);
61 list->add(
"Max. Field ", mMaxField);
62 list->add(
"Path to map ", mMapPath.Data());
70 if (!
list->fill(
"Map Type ID", &int2enum)) {
73 mMapType =
static_cast<BMap_t>(int2enum);
74 if (!
list->fill(
"Beam Type ID", &int2enum)) {
79 if (!
list->fill(
"Integral Type", &mDefaultIntegration)) {
82 if (!
list->fill(
"Fact.Solenoid", &mFactorSol)) {
85 if (!
list->fill(
"Fact.Dipole ", &mFactorDip)) {
88 if (!
list->fill(
"Beam Energy ", &mBeamEnergy)) {
91 if (!
list->fill(
"Max. Field ", &mMaxField)) {
94 FairParamObj* parpath =
list->find(
"Path to map ");
98 int lgt = parpath->getLength();
102 memset(cbuff, 0,
sizeof(
char) * (lgt + 2));
103 if (!
list->fill(
"Path to map ", cbuff, lgt + 2)) {
Definition of the MagFieldParam: container for ALICE mag. field parameters.
Definition of the MagF class.
MagFieldParam(const char *name="", const char *title="", const char *context="")
void putParams(FairParamList *list) override
Bool_t getParams(FairParamList *list) override
void SetParam(const MagneticField *field)
Double_t getFactorDipole() const
Return the sign*scale of the current in the Dipole according to sPolarityConventionthe.
Char_t * getDataFileName() const
Double_t getBeamEnergy() const
Double_t getFactorSolenoid() const
Returns the sign*scale of the current in the Dipole according to sPolarityConventionthe.
MagFieldParam::BeamType_t getBeamType() const
MagFieldParam::BMap_t getMapType() const
GLuint const GLchar * name