fixed bug in AliSTARTTrigger
[u/mrichter/AliRoot.git] / STRUCT / AliFieldReader.h
CommitLineData
7d5a9359 1#ifndef ALIFIELDREADER_H
2#define ALIFIELDREADER_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
8///////////////////////////////////////////////////////////
9// //
10// Class to generate the particles for the MC //
11// The base class is empty //
12// //
13///////////////////////////////////////////////////////////
14
15#include <TObject.h>
16class AliMagFMaps;
17class TNtuple;
18
19class AliFieldReader : public TObject
20{
21
22 public:
23 AliFieldReader();
24 virtual ~AliFieldReader();
25 virtual void Init();
26 virtual void ReadMap();
27 virtual void ReadMapSolenoid();
28 virtual void SetCatalogueName(char* name = "goodfiles.list") {fCatalogueName = name;}
29 virtual void SetStepSize(Float_t dz = 0.08) {fStepSize = dz;}
30 virtual void SetZStart(Float_t zstart = 1383.) {fZStart = zstart;}
31 virtual void SetPolarity(Float_t pol = 1.) {fPolarity = pol;}
32 private:
33 void MakeHtmlHeaderMain(FILE*);
34 void MakeHtmlHeaderPict(FILE*);
35 void MakeHtmlPict(FILE*, char*);
36 void MakeHtmlTableEntry(FILE* htmlmain, char* fileName, char* htmlFile, Float_t x, Float_t y, Int_t i, Float_t bdl, Int_t ifile);
37 void MakeHtmlTrailor(FILE*);
38 void ReadRegisterMap();
39 void ReadRegisterMapSolenoid();
40 protected:
41 AliMagFMaps* fField;
42 TNtuple* fMap;
43 FILE* fCatalogue;
44 FILE* fHtmlMain;
45 Int_t fRegMap[200][3];
46 Float_t fStepSize;
47 Float_t fZStart;
48 Float_t fDd;
49 Float_t fDz;
50 Float_t fPolarity;
51 char* fCatalogueName;
52 ClassDef(AliFieldReader,1)
53};
54
55#endif
56
57
58
59
60
61
62
63
64
65
66
67
68
69