From 1a00e14ffd2f98430560e9267788dad357f67abf Mon Sep 17 00:00:00 2001 From: prino Date: Fri, 4 Sep 2009 16:36:01 +0000 Subject: [PATCH] Fix for sign of B field sign in the macro for vertex calculation (F. Prino) --- ITS/DoVerticesSPD.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ITS/DoVerticesSPD.C b/ITS/DoVerticesSPD.C index 0e92f384d77..acffdedb8e0 100644 --- a/ITS/DoVerticesSPD.C +++ b/ITS/DoVerticesSPD.C @@ -86,7 +86,7 @@ Bool_t DoVerticesSPD(Int_t pileupalgo=1, Int_t optdebug=0){ } esd->ReadFromTree(tree); tree->GetEvent(0); - Int_t fieldkG=(Int_t)(esd->GetMagneticField()+0.001); + Int_t fieldkG=(Int_t)(TMath::Abs(esd->GetMagneticField())+0.001); if(fieldkG==5){ TGeoGlobalMagField::Instance()->SetField(new AliMagF("Maps","Maps", 2, 1., 1., 10., AliMagF::k5kG)); -- 2.43.0