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 */
8 ///////////////////////////////////////////////////////////
10 // Class to generate the particles for the MC //
11 // The base class is empty //
13 ///////////////////////////////////////////////////////////
19 class AliFieldReader : public TObject
24 virtual ~AliFieldReader();
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;}
33 void MakeHtmlHeaderMain(FILE* file);
34 void MakeHtmlHeaderPict(FILE* file);
35 void MakeHtmlPict(FILE* file, char* name);
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* file);
38 void ReadRegisterMap();
39 void ReadRegisterMapSolenoid();
41 AliMagFMaps* fField; // Pointer to calculated map
42 TNtuple* fMap; // Pointer to measured map
43 FILE* fCatalogue; // Pointer to file catalogue
44 FILE* fHtmlMain; // Pointer to the html output file
45 Int_t fRegMap[200][3]; // Mapping between addresses and physical location
46 Float_t fStepSize; // Step size in z
47 Float_t fZStart; // Starting position in z
48 Float_t fDd; // Distance between sensors
49 Float_t fDz; // Distance between sensor planes
50 Float_t fPolarity; // Polarity of the field
51 char* fCatalogueName; // Name of the catalogue
52 ClassDef(AliFieldReader,1)