]>
Commit | Line | Data |
---|---|---|
4c039060 | 1 | /************************************************************************** |
2 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
3 | * * | |
4 | * Author: The ALICE Off-line Project. * | |
5 | * Contributors are mentioned in the code where appropriate. * | |
6 | * * | |
7 | * Permission to use, copy, modify and distribute this software and its * | |
8 | * documentation strictly for non-commercial purposes is hereby granted * | |
9 | * without fee, provided that the above copyright notice appears in all * | |
10 | * copies and that both the copyright notice and this permission notice * | |
11 | * appear in the supporting documentation. The authors make no claims * | |
12 | * about the suitability of this software for any purpose. It is * | |
13 | * provided "as is" without express or implied warranty. * | |
14 | **************************************************************************/ | |
15 | ||
fb17acd4 | 16 | /* $Header$ */ |
4c039060 | 17 | |
fe4da5cc | 18 | |
19 | #include "AliMagF.h" | |
7a15f6b8 | 20 | |
fe4da5cc | 21 | ClassImp(AliMagF) |
22 | ||
e2afb3b6 | 23 | //_______________________________________________________________________ |
24 | AliMagF::AliMagF(): | |
25 | fMap(0), | |
26 | fType(0), | |
27 | fInteg(0), | |
28 | fFactor(0), | |
29 | fMax(0), | |
30 | fDebug(0) | |
31 | { | |
32 | // | |
33 | // Default constructor | |
34 | // | |
35 | } | |
36 | ||
37 | //_______________________________________________________________________ | |
aee8290b | 38 | AliMagF::AliMagF(const char *name, const char *title, const Int_t integ, |
e2afb3b6 | 39 | const Float_t factor, const Float_t fmax): |
40 | TNamed(name,title), | |
41 | fMap(0), | |
42 | fType(0), | |
43 | fInteg(0), | |
44 | fFactor(factor), | |
45 | fMax(fmax), | |
46 | fDebug(0) | |
fe4da5cc | 47 | { |
aee8290b | 48 | // |
49 | // Standard constructor | |
50 | // | |
d8408e76 | 51 | if(integ<0 || integ > 2) { |
e2afb3b6 | 52 | Warning("SetField", |
53 | "Invalid magnetic field flag: %5d; Helix tracking chosen instead\n" | |
54 | ,integ); | |
55 | fInteg = 2; | |
d8408e76 | 56 | } else { |
e2afb3b6 | 57 | fInteg = integ; |
d8408e76 | 58 | } |
59 | fType = kUndef; | |
9e1a0ddb | 60 | // |
61 | fDebug = 0; | |
fe4da5cc | 62 | } |
63 | ||
e2afb3b6 | 64 | //_______________________________________________________________________ |
fe4da5cc | 65 | void AliMagF::Field(Float_t*, Float_t *b) |
66 | { | |
aee8290b | 67 | // |
68 | // Method to return the field in one point -- dummy in this case | |
69 | // | |
e2afb3b6 | 70 | Warning("Field","Undefined MagF Field called, returning 0\n"); |
fe4da5cc | 71 | b[0]=b[1]=b[2]=0; |
72 | } |