#ifndef ALIMUONTRACKERIO_H
#define ALIMUONTRACKERIO_H
#ifndef ROOT_TObject
# include "TObject.h"
#endif
class AliMUONVStore;
class TString;
using std::ofstream;
class AliMUONTrackerIO : public TObject
{
public:
AliMUONTrackerIO();
virtual ~AliMUONTrackerIO();
static Int_t ReadConfig(const char* filename, AliMUONVStore& confStore);
static Int_t DecodeConfig(const char* data, AliMUONVStore& confStore);
static Int_t WriteConfig(ofstream& out, const AliMUONVStore& confStore);
static Int_t ReadPedestals(const char* filename, AliMUONVStore& pedStore);
static Int_t DecodePedestals(const char* data, AliMUONVStore& pedStore);
static Int_t ReadGains(const char* filename, AliMUONVStore& gainStore, TString& comment);
static Int_t DecodeGains(const char* data, AliMUONVStore& gainStore, TString& comment);
static Int_t ReadOccupancy(const char* filename, AliMUONVStore& occupancyMap);
static Int_t DecodeOccupancy(const char* data, AliMUONVStore& occupancyMap);
static Int_t ReadCapacitances(const char* filename, AliMUONVStore& capaStore);
static Int_t DecodeCapacitances(const char* data, AliMUONVStore& capaStore);
enum ErrorCode
{
kCannotOpenFile = -1,
kDummyFile = -2,
kFormatError = -3,
kNoInfoFile = -4,
kNoMapping = -99
};
ClassDef(AliMUONTrackerIO,2)
};
#endif