]> git.uio.no Git - u/mrichter/AliRoot.git/blame - RALICE/icepack/iceconvert/IceCal2Root.h
31-may-2007 NvE Memberfunctions GetNdevices, GetIdDevice and ShowDevices of AliEvent
[u/mrichter/AliRoot.git] / RALICE / icepack / iceconvert / IceCal2Root.h
CommitLineData
216d1d91 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
20class IceCal2Root : public AliJob
21{
22 public :
23 IceCal2Root(const char* name="IceCal2Root",const char* title=""); // Constructor
24 virtual ~IceCal2Root(); // Destructor
95f2b820 25 void SetAmacalibFile(TString name); // Set name of the Amacalib MuDaq input file
26 void SetTWRDaqFile(TString name); // Set name of the TWRDaq calibration input file
216d1d91 27 void SetOutputFile(TString name); // Set output file for the ROOT data structures
28 TDatabasePDG* GetPDG(); // Provide pointer to the PDG database
95f2b820 29 AliObjMatrix* GetOMdbase(TString name="MuDaq"); // Provide pointer to the requested OM database
216d1d91 30 virtual void Exec(Option_t* opt); // Perform the format conversion
31
32 protected :
33 ifstream fInput; // Input stream for generic use of reading data
34
95f2b820 35 TString fAmacalFileName; // Name of the Amacalib MuDaq input file
36 TString fTWRDaqFileName; // Name of the TWRDaq calibration input file
216d1d91 37 TString fRootFileName; // Name of the ROOT output file
38 TFile* fOutfile; // The ROOT output file
39
40 TDatabasePDG* fPdg; // Database with PDG information
95f2b820 41 AliObjMatrix* fMuDaqdb; // Database of all OM devices with their MuDaq geometry, calib. etc... data
42 AliObjMatrix* fTWRDaqdb; // Database of all OM devices with their TWRDaq geometry, calib. etc... data
216d1d91 43
95f2b820 44 void GetMuDaqData(); // Fill MuDaq geometry, calibration and Xtalk parameters of all devices
45 void GetTWRDaqData(); // Fill TWRDaq geometry and calibration parameters of all devices
216d1d91 46
95f2b820 47 ClassDef(IceCal2Root,2) // Job for conversion of (ascii) calibration data into an AliObjMatrix OM dbase
216d1d91 48};
49#endif