From 604e0531f12fd70e842067bb48f17ff85fc0156f Mon Sep 17 00:00:00 2001 From: morsch Date: Thu, 4 May 2006 11:14:24 +0000 Subject: [PATCH] Possibility to set an alternative, e.g. high precision, integration method. --- STEER/AliMagF.cxx | 2 ++ STEER/AliMagF.h | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/STEER/AliMagF.cxx b/STEER/AliMagF.cxx index 7ec67c48a0c..6dc2c510431 100644 --- a/STEER/AliMagF.cxx +++ b/STEER/AliMagF.cxx @@ -31,6 +31,7 @@ AliMagF::AliMagF(): fMap(0), fType(0), fInteg(0), + fPrecInteg(1), fFactor(0), fMax(0) { @@ -46,6 +47,7 @@ AliMagF::AliMagF(const char *name, const char *title, Int_t integ, fMap(0), fType(0), fInteg(0), + fPrecInteg(1), fFactor(factor), fMax(fmax) { diff --git a/STEER/AliMagF.h b/STEER/AliMagF.h index 2e0f2e779f7..a6a923d54ca 100644 --- a/STEER/AliMagF.h +++ b/STEER/AliMagF.h @@ -27,18 +27,21 @@ public: virtual Float_t Max() const {return fMax;} virtual Int_t Map() const {return fMap;} virtual Int_t Integ() const {return fInteg;} + virtual Int_t PrecInteg() const {return fPrecInteg;} virtual Float_t Factor() const {return fFactor;} virtual void ReadField() {} virtual Float_t SolenoidField() const {return 2.;} + virtual void SetPrecInteg(Int_t integ) {fPrecInteg = integ;} static void SetReadField(Bool_t flag = kTRUE) {fgReadField = flag;} protected: Int_t fMap; // Field Map identifier Int_t fType; // Mag Field type - Int_t fInteg; // Integration method as indicated in Geant + Int_t fInteg; // Default integration method as indicated in Geant + Int_t fPrecInteg; // Alternative integration method, e.g. for higher precision Float_t fFactor; // Multiplicative factor Float_t fMax; // Max Field as indicated in Geant static Bool_t fgReadField; // Flag for reading the field from file (if available) - ClassDef(AliMagF,3) //Base class for all Alice MagField + ClassDef(AliMagF,4) //Base class for all Alice MagField }; #endif -- 2.39.3