]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONTrackerIO.h
Make the Scan method public
[u/mrichter/AliRoot.git] / MUON / AliMUONTrackerIO.h
index c545bd3579764cce3ca8b9b4b48369b4e0cf4b34..b60d5070f2b73bd120819e5957f4972d6f638702 100644 (file)
 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