1010// or submit itself to any jurisdiction.
1111
1212// / \file MagFieldParam.h
13- // / \brief Definition of the MagFieldParam: container for ALICE mag. field parameters
13+ // / \brief Definition of the MagFieldParam: ALICE mag. field type enumerations
1414// / \author ruben.shahoyan@cern.ch
1515
1616#ifndef ALICEO2_FIELD_MAGFIELDPARAM_H_
1717#define ALICEO2_FIELD_MAGFIELDPARAM_H_
1818
19- #include " FairParGenericSet.h"
20- #include < TString.h>
21-
22- class FairParamList ;
23-
2419namespace o2
2520{
2621namespace field
2722{
2823
29- class MagneticField ;
30-
31- class MagFieldParam : public FairParGenericSet
32- {
33- public:
24+ // / Field map and beam type enumerations.
25+ // /
26+ // / This used to be a FairParGenericSet container written into the FairRoot
27+ // / runtime database. That path was never populated nor read back in production
28+ // / (field settings come from CCDB/SimConfig via SimFieldUtils), so only the
29+ // / enumerations - which are used throughout O2 - are kept.
30+ struct MagFieldParam {
3431 enum BMap_t {
3532 k2kG,
3633 k5kG,
@@ -44,35 +41,8 @@ class MagFieldParam : public FairParGenericSet
4441 kBeamTypepA ,
4542 kBeamTypeAp
4643 };
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 ; // /< map type ID
66- BeamType_t mBeamType ; // /< beam type ID
67- Int_t mDefaultIntegration ; // /< field integration type for MC
68- Double_t mFactorSol ; // /< solenoid current factor
69- Double_t mFactorDip ; // /< dipole current factor
70- Double_t mBeamEnergy ; // /< beam energy
71- Double_t mMaxField ; // /< max field for geant
72- TString mMapPath ; // /< path to map file
73-
74- ClassDefOverride (MagFieldParam, 1 );
7544};
45+
7646} // namespace field
7747} // namespace o2
7848
0 commit comments