Remove parenthesis around throw arguments.
[u/mrichter/AliRoot.git] / EVE / EveBase / AliEveMagField.cxx
1 // $Id$
2 // Author: Matevz Tadel 2009
3
4 /**************************************************************************
5  * Copyright(c) 1998-2009, ALICE Experiment at CERN, all rights reserved. *
6  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
7  * full copyright notice.                                                 *
8  **************************************************************************/
9
10 #include "AliEveMagField.h"
11 #include "AliEveEventManager.h"
12
13 #include <AliMagF.h>
14
15 //______________________________________________________________________________
16 // Full description of AliEveMagField
17 //
18
19 ClassImp(AliEveMagField)
20
21 //______________________________________________________________________________
22 AliEveMagField::AliEveMagField(AliMagF* mf) :
23   TEveMagField(),
24   fField(mf)
25 {
26   // Constructor.
27
28   if (fField == 0)
29   {
30     fField = AliEveEventManager::AssertMagField();
31   }
32 }
33
34 //______________________________________________________________________________
35 TEveVector AliEveMagField::GetField(Float_t x, Float_t y, Float_t z) const
36 {
37   // Return magnetic field at requested point.
38
39   Double_t rb[3] = { x, y, z };
40   Double_t bb[3];
41
42   fField->Field(rb, bb);
43
44   TEveVector b(bb);
45   b *= -0.1f;
46   return b;
47 }