1 #ifndef ALIMUONTRACKERIO_H
2 #define ALIMUONTRACKERIO_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
10 /// \class AliMUONTrackerIO
11 /// \brief Converts ASCII calibration files (ped, gains, capa) into AliMUONVStore object
13 // Author Laurent Aphecetche, Subatech
22 class AliMUONTrackerIO : public TObject
26 virtual ~AliMUONTrackerIO();
28 static Int_t ReadConfig(const char* filename, AliMUONVStore& confStore, Bool_t& changed);
29 static Int_t DecodeConfig(TString data, AliMUONVStore& confStore, Bool_t& changed);
30 static Int_t WriteConfig(ofstream& out, AliMUONVStore& confStore);
32 static Int_t ReadPedestals(const char* filename, AliMUONVStore& pedStore);
33 static Int_t DecodePedestals(TString data, AliMUONVStore& pedStore);
35 static Int_t ReadGains(const char* filename, AliMUONVStore& gainStore, TString& comment);
36 static Int_t DecodeGains(TString data, AliMUONVStore& gainStore, TString& comment);
38 static Int_t ReadOccupancy(const char* filename, AliMUONVStore& occupancyMap);
39 static Int_t DecodeOccupancy(TString data, AliMUONVStore& occupancyMap);
41 static Int_t ReadCapacitances(const char* filename, AliMUONVStore& capaStore);
43 /// Error code constants
46 kCannotOpenFile = -1, /// cannot open given file
47 kDummyFile = -2, /// file is a dummy one (e.g. some intermediate gain files from the DA)
48 kFormatError = -3 /// file is not of the expected format
51 ClassDef(AliMUONTrackerIO,1) // Calibration ASCII file reader for MUON tracker