Project
Loading...
Searching...
No Matches
MagFieldParam.h
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
15
16#ifndef ALICEO2_FIELD_MAGFIELDPARAM_H_
17#define ALICEO2_FIELD_MAGFIELDPARAM_H_
18
19#include "FairParGenericSet.h"
20#include <TString.h>
21
22class FairParamList;
23
24namespace o2
25{
26namespace field
27{
28
29class MagneticField;
30
32{
33 public:
47
48 MagFieldParam(const char* name = "", const char* title = "", const char* context = "");
49
50 void SetParam(const MagneticField* field);
51
52 BMap_t GetMapType() const { return mMapType; }
53 BeamType_t GetBeamType() const { return mBeamType; }
54 Int_t GetDefInt() const { return mDefaultIntegration; }
55 Double_t GetFactorSol() const { return mFactorSol; }
56 Double_t GetFactorDip() const { return mFactorDip; }
57 Double_t GetBeamEnergy() const { return mBeamEnergy; }
58 Double_t GetMaxField() const { return mMaxField; }
59 const char* GetMapPath() const { return mMapPath.Data(); }
60
61 void putParams(FairParamList* list) override;
62 Bool_t getParams(FairParamList* list) override;
63
64 private:
65 BMap_t mMapType;
66 BeamType_t mBeamType;
67 Int_t mDefaultIntegration;
68 Double_t mFactorSol;
69 Double_t mFactorDip;
70 Double_t mBeamEnergy;
71 Double_t mMaxField;
72 TString mMapPath;
73
74 ClassDefOverride(MagFieldParam, 1);
75};
76} // namespace field
77} // namespace o2
78
79#endif
BeamType_t GetBeamType() const
const char * GetMapPath() const
Double_t GetMaxField() const
Double_t GetBeamEnergy() const
Double_t GetFactorDip() const
Double_t GetFactorSol() const
void putParams(FairParamList *list) override
Bool_t getParams(FairParamList *list) override
void SetParam(const MagneticField *field)
BMap_t GetMapType() const
GLuint const GLchar * name
Definition glcorearb.h:781
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Definition list.h:40