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);
+ /// Error code constants
enum ErrorCode
{
kCannotOpenFile = -1, /// cannot open given file
kDummyFile = -2, /// file is a dummy one (e.g. some intermediate gain files from the DA)
- kFormatError = -3 /// file is not of the expected format
+ kFormatError = -3, /// file is not of the expected format
+ kNoInfoFile = -4, /// file is "empty", i.e. contains to information but that's normal
+ kNoMapping = -99 /// mapping not loaded, cannot work
};
- ClassDef(AliMUONTrackerIO,1) // Calibration ASCII file reader for MUON tracker
+ ClassDef(AliMUONTrackerIO,2) // Calibration ASCII file reader for MUON tracker
};
#endif