Elimination of -new AliMagF-, not call the GRP to get the field
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 26 Nov 2009 15:15:25 +0000 (15:15 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 26 Nov 2009 15:15:25 +0000 (15:15 +0000)
EMCAL/macros/trackMatching/FindMatches.C

index e60a4c5..9f60643 100755 (executable)
@@ -25,10 +25,14 @@ void FindMatches(const char *fileOut = "matchESD.root")
        if (!rl) return;
        rl->LoadgAlice();
        gAlice = rl->GetAliRun();
-       
-       //AliMagF *magf = new AliMagF("Maps","Maps", 1., 1., AliMagF::k5kG);
-       AliMagF *magf = new AliMagF("Maps","Maps", 1., 1.);
-       
+
+       //
+       //Get magnetic field from GRP
+       //
+        AliGRPManager * grpMan=new AliGRPManager();
+        grpMan->ReadGRPEntry(); 
+        grpMan->SetMagField(); 
+
        //
        // Open ESD file and recoveries TTree of ESD objects.
        //