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 AliFieldReader(const AliFieldReader& reader);
25 virtual ~AliFieldReader();
27 virtual void ReadMap();
28 virtual void ReadMapSolenoid();
29 virtual void SetCatalogueName(char* name = "goodfiles.list") {fCatalogueName = name;}
30 virtual void SetStepSize(Float_t dz = 0.08) {fStepSize = dz;}
31 virtual void SetZStart(Float_t zstart = 1383.) {fZStart = zstart;}
32 virtual void SetPolarity(Float_t pol = 1.) {fPolarity = pol;}
34 void MakeHtmlHeaderMain(FILE* file);
35 void MakeHtmlHeaderPict(FILE* file);
36 void MakeHtmlPict(FILE* file, char* name);
37 void MakeHtmlTableEntry(FILE* htmlmain, char* fileName, char* htmlFile, Float_t x, Float_t y, Int_t i, Float_t bdl, Int_t ifile);
38 void MakeHtmlTrailor(FILE* file);
39 void ReadRegisterMap();
40 void ReadRegisterMapSolenoid();
41 AliFieldReader & operator=(const AliFieldReader & rhs);
42 virtual void Copy(TObject&) const;
45 AliMagFMaps* fField; // Pointer to calculated map
46 TNtuple* fMap; // Pointer to measured map
47 FILE* fCatalogue; // Pointer to file catalogue
48 FILE* fHtmlMain; // Pointer to the html output file
49 Int_t fRegMap[200][3]; // Mapping between addresses and physical location
50 Float_t fStepSize; // Step size in z
51 Float_t fZStart; // Starting position in z
52 Float_t fDd; // Distance between sensors
53 Float_t fDz; // Distance between sensor planes
54 Float_t fPolarity; // Polarity of the field
55 char* fCatalogueName; // Name of the catalogue
56 ClassDef(AliFieldReader,1)