]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONPedestalSubprocessor.h
Update for 2012
[u/mrichter/AliRoot.git] / MUON / AliMUONPedestalSubprocessor.h
index 21efca44b7cc78581a8cc950d882a889552a7549..71d731095c273826867f661df458f84e6b1da919 100644 (file)
 /// \class AliMUONPedestalSubprocessor
 /// \brief Implementation of AliMUONVSubprocessor for MUON TRK pedestals
 /// 
-/// \author Laurent Aphecetche
+//  Author Laurent Aphecetche
 
 #ifndef ALIMUONVSUBPROCESSOR_H
 #  include "AliMUONVSubprocessor.h"
 #endif
 
-class AliMUONV2DStore;
+class AliMUONVStore;
 class TObjArray;
 
 class AliMUONPedestalSubprocessor : public AliMUONVSubprocessor
@@ -25,21 +25,28 @@ public:
   AliMUONPedestalSubprocessor(AliMUONPreprocessor* master);
   virtual ~AliMUONPedestalSubprocessor();
   
-  void Initialize(Int_t run, UInt_t startTime, UInt_t endTime);
+  Bool_t Initialize(Int_t run, UInt_t startTime, UInt_t endTime);
   UInt_t Process(TMap* dcsAliasMap);
   void Print(Option_t* opt="") const;
   
 private:
+  /// Not implemented
   AliMUONPedestalSubprocessor(const AliMUONPedestalSubprocessor&);
+  /// Not implemented
   AliMUONPedestalSubprocessor& operator=(const AliMUONPedestalSubprocessor&);
   
-  Int_t ReadFile(const char* filename);
-  void ReportMissing(const TObjArray& chambers);
-  
+  Int_t ReadPedestalFile(const char* filename);
+  Int_t ReadConfigFile(const char* filename);
+
+  Bool_t HasConfigChanged(const AliMUONVStore& newConfig) const;
+
 private:
-  AliMUONV2DStore* fPedestals; //! Pedestals for the MUON TRK
+  AliMUONVStore* fPedestals; //!< Pedestals for the MUON TRK
+  AliMUONVStore* fConfig; //!< Configuration (i.e. list of (buspatch,manu)) for the MUON TRK
+  Bool_t fConfigChanged; //!< flag to trigger the saving of the configuration
+  Bool_t fTooFewEvents; //!< whether the current run was a failed ped run, basically
   
-  ClassDef(AliMUONPedestalSubprocessor,1) // A shuttle preprocessor for MUON TRK pedetals
+  ClassDef(AliMUONPedestalSubprocessor,3) // A shuttle preprocessor for MUON TRK pedestals
 };
 
 #endif