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