]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RALICE/icepack/iceconvert/IceCal2Root.h
10-may-2006 NvE Distance determination between tracks and/or jets introduced in
[u/mrichter/AliRoot.git] / RALICE / icepack / iceconvert / IceCal2Root.h
1 #ifndef IceCal2Root_h
2 #define IceCal2Root_h
3
4 // Copyright(c) 2003, IceCube Experiment at the South Pole, All rights reserved.
5 // See cxx source for full Copyright notice.
6
7 // $Id$
8
9 #include "TFile.h"
10 #include "TString.h"
11 #include "TDatabasePDG.h"
12
13 #include "AliJob.h"
14 #include "AliObjMatrix.h"
15
16 #include "IceAOM.h"
17
18 #include "Riostream.h"
19
20 class IceCal2Root : public AliJob
21 {
22  public :
23   IceCal2Root(const char* name="IceCal2Root",const char* title=""); // Constructor
24   virtual ~IceCal2Root();                                           // Destructor
25   void SetAmacalibFile(TString name); // Set name of the Amacalib input file
26   void SetOutputFile(TString name);   // Set output file for the ROOT data structures           
27   TDatabasePDG* GetPDG();             // Provide pointer to the PDG database
28   AliObjMatrix* GetOMdbase();         // Provide pointer to the OM geometry, calib. etc... database
29   virtual void Exec(Option_t* opt);   // Perform the format conversion
30
31  protected :
32   ifstream fInput;         // Input stream for generic use of reading data
33
34   TString fAmacalFileName; // Name of the Amacalib input file
35   TString fBadomFileName;  // Name of the bad OM input file
36   TString fRootFileName;   // Name of the ROOT output file
37   TFile* fOutfile;         // The ROOT output file
38
39   TDatabasePDG* fPdg;      // Database with PDG information
40   AliObjMatrix* fOmdb;     // Database of all OM devices with their geometry, calib. etc... data
41
42   void GetCalibData();     // Fill geometry, calibration and Xtalk parameters of all devices
43
44  ClassDef(IceCal2Root,1) // Job for conversion of Amacalib ascii data into an AliObjMatrix OM dbase
45 };
46 #endif