Removing AliITSgeom dependencies from the old ITS clusterer V2 and the corresponding...
[u/mrichter/AliRoot.git] / STRUCT / AliFieldReader.h
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>
16 class  AliMagFMaps;
17 class  TNtuple;
18
19 class AliFieldReader : public TObject
20 {
21
22  public:
23     AliFieldReader();
24     AliFieldReader(const AliFieldReader& reader);
25     virtual ~AliFieldReader();
26     virtual void Init();
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;}
33  protected:
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;
43     
44  protected:
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) 
57 };
58
59 #endif
60
61
62
63
64
65
66
67
68
69
70
71
72
73