]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliMagFC.h
Fix fixed-string length bug
[u/mrichter/AliRoot.git] / STEER / AliMagFC.h
CommitLineData
aee8290b 1#ifndef ALIMAGFC_H
2#define ALIMAGFC_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
0742d588 8//-------------------------------------------------------------------------
9// Constant magnetic field class
10// Used by AliRun class
11// Author:
12//-------------------------------------------------------------------------
13
aee8290b 14#include "AliMagF.h"
15
16class AliMagFC : public AliMagF
17{
18 //Alice Constant Magnetic Field
19
20public:
0cd61c1d 21 AliMagFC():AliMagF(),fCompensator(kFALSE){}
d0f1ee3b 22 AliMagFC(const char *name, const char *title, Int_t integ,
23 Float_t factor, Float_t fmax);
0cd61c1d 24 virtual ~AliMagFC(){}
6f3038e9 25 virtual void Field(Float_t *x, Float_t *b) const;
aee8290b 26 virtual void ReadField() {}
6f3038e9 27 virtual void ZDCField(Float_t *x, Float_t *b) const;
c28c3a0b 28 virtual void SetCompensatorMagnet(Bool_t flag) {fCompensator = flag;}
29 private:
30 Bool_t fCompensator; // Flag for compensator magnetic field (kTrue -> ON)
31 ClassDef(AliMagFC,2) //Class for all Alice Constant MagField
aee8290b 32};
33
575c700d 34
35//ZDC part -------------------------------------------------------------------
36
53cc0d31 37// ************************ LHC optics v6.5 *****************************
5ba7c883 38static const Float_t kG1=20.707;
39static const Float_t kFDIP=-37.71;
40static const Float_t kFCORN2=-9.667;
575c700d 41//
42// ZBEG Beginning of the inner triplet
43// D1BEG Beginning of separator dipole 1
44// D2BEG Beginning of separator dipole 2
45// CORBEG Corrector dipole beginning (because of dimuon arm)
46//
47static const Float_t kCORBEG2 = -1972.5,kCOREND2 = kCORBEG2 - 153., kCOR2RA2 = 4.5 * 4.5;
48//
49static const Float_t kZBEG = -2296.5;
50static const Float_t kZ1BEG = kZBEG + 0., kZ1END = kZ1BEG - 637.,kZ1RA2 = 3.5 * 3.5;
51static const Float_t kZ2BEG = kZBEG - 908.5, kZ2END = kZ2BEG - 550.,kZ2RA2 = 3.5 * 3.5;
52static const Float_t kZ3BEG = kZBEG - 1558.5, kZ3END = kZ3BEG - 550.,kZ3RA2 = 3.5 * 3.5;
3ccd4145 53static const Float_t kZ4BEG = kZBEG - 2400., kZ4END = kZ4BEG - 637.,kZ4RA2 = 3.5 * 3.5;
575c700d 54static const Float_t kD1BEG = - 5838.3 ,kD1END = kD1BEG - 945., kD1RA2 = 4.5 * 4.5;
55static const Float_t kD2BEG = - 12167.8 ,kD2END = kD2BEG - 945., kD2RA2 = 4.5 * 4.5;
56//
57static const Float_t kXCEN1D2 = -9.7 ,kYCEN1D2 = 0.;
58static const Float_t kXCEN2D2 = 9.7 ,kYCEN2D2 = 0.;
59
5ba7c883 60
61// ************************ Left line *****************************************
62// ************************ LHC optics v6.5 (official version for ions)****************
63static const Float_t kG1l=20.707;
64static const Float_t kFDIPl=-37.71;
65static const Float_t kFCORN2l=-11.72;
66//
67//
68// ZBEG Beginning of the inner triplet
69// D1BEG Beginning of separator dipole 1
70// D2BEG Beginning of separator dipole 2
71// CORBEG Corrector dipole beginning (because of dimuon arm)
72//
73static const Float_t kCORBEG2l = 1972.5,kCOREND2l = kCORBEG2l + 153., kCOR2RA2l = 4.5 * 4.5;// second corrector
74static const Float_t kZBEGl = 2296.5;// inner triplet beginning
75static const Float_t kZ1BEGl = kZBEGl + 0., kZ1ENDl = kZ1BEGl + 637.,kZ1RA2l = 3.5 * 3.5;// Q1
76static const Float_t kZ2BEGl = kZBEGl + 908.5, kZ2ENDl = kZ2BEGl + 550.,kZ2RA2l = 3.5 * 3.5;// Q2A
77static const Float_t kZ3BEGl = kZBEGl + 1558.5, kZ3ENDl = kZ3BEGl + 550.,kZ3RA2l = 3.5 * 3.5;// Q2B
78static const Float_t kZ4BEGl = kZBEGl + 2400., kZ4ENDl = kZ4BEGl + 637.,kZ4RA2l = 3.5 * 3.5;// Q3
79static const Float_t kD1BEGl = 5838.3 ,kD1ENDl = kD1BEGl + 945., kD1RA2l = 3.375 * 3.375;// D1
80static const Float_t kD2BEGl = 12167.8 ,kD2ENDl = kD2BEGl + 945., kD2RA2l = 3.75 * 3.75;// D2
81static const Float_t kXCEN1D2l = -9.4 ,kYCEN1D2l = 0.;// D2
82static const Float_t kXCEN2D2l = 9.4 ,kYCEN2D2l = 0.;// D2
83
84
85/*
86// ************************ LHC optics v6.500 (official version for pp 7TeV) **********
87static const Float_t kG1l=22.000;
88static const Float_t kFDIPl=-37.804;
89//static const Float_t kFCORN1l=13.201;
90static const Float_t kFCORN2l=-11.751;
91//
92static const Float_t kCORBEG1l = 945.,kCOREND1l = kCORBEG1l + 260., kCOR1RA2l = 4.5 * 4.5;// first corrector
93static const Float_t kCORBEG2l = 1972.5,kCOREND2l = kCORBEG2l + 153., kCOR2RA2l = 4.5 * 4.5;// second corrector
94static const Float_t kZBEGl = 2296.5;// inner triplet beginning
95static const Float_t kZ1BEGl = kZBEGl + 0., kZ1ENDl = kZ1BEGl + 637.,kZ1RA2l = 3.5 * 3.5;// Q1
96static const Float_t kZ2BEGl = kZBEGl + 908.5, kZ2ENDl = kZ2BEGl + 550.,kZ2RA2l = 3.5 * 3.5;// Q2A
97static const Float_t kZ3BEGl = kZBEGl + 1558.5, kZ3ENDl = kZ3BEGl + 550.,kZ3RA2l = 3.5 * 3.5;// Q2B
98static const Float_t kZ4BEGl = kZBEGl + 2400., kZ4ENDl = kZ4BEGl + 637.,kZ4RA2l = 3.5 * 3.5;// Q3
99static const Float_t kD1BEGl = 5838.3 ,kD1ENDl = kD1BEGl + 945., kD1RA2l = 3.375 * 3.375;// D1
100static const Float_t kD2BEGl = 12167.8 ,kD2ENDl = kD2BEGl + 945., kD2RA2l = 3.75 * 3.75;// D2
101static const Float_t kXCEN1D2l = -9.4 ,kYCEN1D2l = 0.;// D2
102static const Float_t kXCEN2D2l = 9.4 ,kYCEN2D2l = 0.;// D2
103*/
104
575c700d 105//ZDC part -------------------------------------------------------------------
106
aee8290b 107#endif