X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2FAliMUONTrackerIO.h;h=49c9c40ef65954df9be510f2d12a9b7713d42caa;hb=232daaa876bddda00ffd27548c7cc84f7f228929;hp=c545bd3579764cce3ca8b9b4b48369b4e0cf4b34;hpb=810282695a0a699f7f3597e5e04920ce483040b6;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/AliMUONTrackerIO.h b/MUON/AliMUONTrackerIO.h index c545bd35797..49c9c40ef65 100644 --- a/MUON/AliMUONTrackerIO.h +++ b/MUON/AliMUONTrackerIO.h @@ -25,20 +25,33 @@ 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