]>
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 | ||
16 | /* | |
17 | $Log$ | |
9e1a0ddb | 18 | Revision 1.8 2000/12/18 10:44:01 morsch |
19 | Possibility to set field map by passing pointer to objet of type AliMagF via | |
20 | SetField(). | |
21 | Example: | |
22 | gAlice->SetField(new AliMagFCM("Map2", "$(ALICE_ROOT)/data/field01.dat",2,1.,10.)); | |
23 | ||
d8408e76 | 24 | Revision 1.7 2000/10/02 21:28:14 fca |
25 | Removal of useless dependecies via forward declarations | |
26 | ||
94de3818 | 27 | Revision 1.6 2000/07/11 18:24:59 fca |
28 | Coding convention corrections + few minor bug fixes | |
29 | ||
aee8290b | 30 | Revision 1.5 2000/06/09 19:55:18 morsch |
31 | Introduce new class AliMagFDM - Galina Chabratova | |
32 | ||
7a15f6b8 | 33 | |
34 | Revision 1.4 2000/03/28 12:40:24 fca | |
35 | Introduce factor for magnetic field | |
36 | ||
37 | ||
dd045843 | 38 | Revision 1.3 1999/09/29 09:24:29 fca |
39 | Introduction of the Copyright and cvs Log | |
40 | ||
4c039060 | 41 | */ |
42 | ||
fe4da5cc | 43 | |
44 | #include "AliMagF.h" | |
7a15f6b8 | 45 | |
fe4da5cc | 46 | #include <stdlib.h> |
47 | #include <stdio.h> | |
48 | ||
fe4da5cc | 49 | |
50 | ClassImp(AliMagF) | |
51 | ||
52 | //________________________________________ | |
aee8290b | 53 | AliMagF::AliMagF(const char *name, const char *title, const Int_t integ, |
d8408e76 | 54 | const Float_t factor, const Float_t fmax) |
fe4da5cc | 55 | : TNamed(name,title) |
56 | { | |
aee8290b | 57 | // |
58 | // Standard constructor | |
59 | // | |
d8408e76 | 60 | if(integ<0 || integ > 2) { |
61 | Warning("SetField", | |
62 | "Invalid magnetic field flag: %5d; Helix tracking chosen instead\n" | |
63 | ,integ); | |
64 | fInteg = 2; | |
65 | } else { | |
66 | fInteg = integ; | |
67 | } | |
68 | fType = kUndef; | |
69 | fFactor = factor; | |
70 | fMax = fmax; | |
9e1a0ddb | 71 | // |
72 | fDebug = 0; | |
fe4da5cc | 73 | } |
74 | ||
75 | //________________________________________ | |
76 | void AliMagF::Field(Float_t*, Float_t *b) | |
77 | { | |
aee8290b | 78 | // |
79 | // Method to return the field in one point -- dummy in this case | |
80 | // | |
fe4da5cc | 81 | printf("Undefined MagF Field called, returning 0\n"); |
82 | b[0]=b[1]=b[2]=0; | |
83 | } | |
84 | ||
7a15f6b8 | 85 | |
86 | ||
87 | ||
88 | ||
89 | ||
90 | ||
fe4da5cc | 91 |