4 // Copyright(c) 2003, IceCube Experiment at the South Pole, All rights reserved.
5 // See cxx source for full Copyright notice.
11 #include "TDatabasePDG.h"
14 #include "AliObjMatrix.h"
18 #include "Riostream.h"
20 class IceCal2Root : public AliJob
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
32 ifstream fInput; // Input stream for generic use of reading data
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
39 TDatabasePDG* fPdg; // Database with PDG information
40 AliObjMatrix* fOmdb; // Database of all OM devices with their geometry, calib. etc... data
42 void GetCalibData(); // Fill geometry, calibration and Xtalk parameters of all devices
44 ClassDef(IceCal2Root,1) // Job for conversion of Amacalib ascii data into an AliObjMatrix OM dbase