]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONCalibrationData.h
The cut on V0 pointing angle is now momentum dependent below 1.5 GeV/c. Above this...
[u/mrichter/AliRoot.git] / MUON / AliMUONCalibrationData.h
index fbc9da47da9f3a7ffa36ac34293dc20cc35750d8..b73e3cbff87d05d61cd77c14d8ee02ed453fdb34 100644 (file)
 #endif
 
 class AliCDBEntry;
+class AliMUONGlobalCrateConfig;
+class AliMUONRegionalTriggerConfig;
+class AliMUONRejectList;
 class AliMUONTriggerEfficiencyCells;
 class AliMUONTriggerLut;
+class AliMUONVCalibParam;
 class AliMUONVStore;
 class AliMUONVStore;
-class AliMUONVCalibParam;
-class AliMUONGlobalCrateConfig;
-class AliMUONRegionalTriggerConfig;
 class TMap;
 
 class AliMUONCalibrationData : public TObject
@@ -49,7 +50,7 @@ public:
   static AliMUONGlobalCrateConfig* CreateGlobalTriggerCrateConfig(Int_t runNumber, Int_t* startOfValidity=0);
   
   /// Create a hv map (which must be deleted) from OCDB for the given run
-  static TMap* CreateHV(Int_t runNumber, Int_t* startOfValidity=0);
+  static TMap* CreateHV(Int_t runNumber, Int_t* startOfValidity=0, Bool_t patched=kTRUE, TList* messages=0x0);
 
   /// Create a Trigger HV and current  map (which must be deleted) from OCDB for the given run
   static TMap* CreateTriggerDCS(Int_t runNumber, Int_t* startOfValidity=0);
@@ -63,9 +64,15 @@ public:
   /// Create an occupancy map store (which must be deleted) from OCDB for the given run
   static AliMUONVStore* CreateOccupancyMap(Int_t runNumber, Int_t* startOfValidity=0);
 
+  /// Create a rejectlist store (which must be deleted) from OCDB for the given run
+  static AliMUONRejectList* CreateRejectList(Int_t runNumber, Int_t* startOfValidity=0);
+
   /// Create a pedestal store (which must be deleted) from OCDB for the given run
   static AliMUONVStore* CreatePedestals(Int_t runNumber, Int_t* startOfValidity=0);
 
+  /// Create a configuration store (which must be deleted) from OCDB for the given run
+  static AliMUONVStore* CreateConfig(Int_t runNumber, Int_t* startOfValidity=0);
+
   /// Create a regional trigger mask store (which must be deleted) for a given run
   static AliMUONRegionalTriggerConfig* CreateRegionalTriggerConfig(Int_t runNumber, Int_t* startOfValidity=0);
 
@@ -83,8 +90,8 @@ public:
   /// Get the Gain calibration object for channels within (detElemId,manuId).
   AliMUONVCalibParam* Gains(Int_t detElemId, Int_t manuId) const;
     
-  /// Get the HV values
-  TMap* HV() const;
+  /// Get the HV values. Use patched=kFALSE to get unprocessed (i.e. "raw") values as they are in the OCDB
+  TMap* HV(Bool_t patched=kTRUE) const;
 
   /// Get the Trigger HV and current values
   TMap* TriggerDCS() const;
@@ -101,9 +108,15 @@ public:
   /// Get the pedestal store
   AliMUONVStore* Pedestals() const;
 
+  /// Get the config store
+  AliMUONVStore* Config() const;
+  
   /// Get the occupancy map store
   AliMUONVStore* OccupancyMap() const;
 
+  /// Get the reject list store
+  AliMUONRejectList* RejectList() const;
+
   /// Get the Pedestal calibration object for channels within (detElemId,manuId).
   AliMUONVCalibParam* Pedestals(Int_t detElemId, Int_t manuId) const;
   
@@ -128,12 +141,19 @@ public:
   static TObject* CreateObject(Int_t runNumber, const char* path, Int_t* startOfValidity=0x0);
   
   static void Check(Int_t runNumber);
+
+  static void BypassStores(AliMUONVStore* ped, AliMUONVStore* gain);
   
 protected:
   /// Not implemented
   AliMUONCalibrationData(const AliMUONCalibrationData& other);
   /// Not implemented
   AliMUONCalibrationData& operator=(const AliMUONCalibrationData& other);
+
+  static Bool_t PatchHVValues(TObjArray& values, TString* msg=0x0);
+  
+  static Bool_t CheckHVGroup(TObjArray& values, Int_t first, Int_t last, Double_t& value,
+                             Int_t& slope, TString* msg);
   
 private:
   mutable Bool_t fIsValid; ///<  Whether we were able to correctly initialize
@@ -153,7 +173,14 @@ private:
   
   mutable AliMUONVStore* fOccupancyMap; //!< occupancy map
   
-  ClassDef(AliMUONCalibrationData,10) // Storage for all MUON calibration data.
+  mutable AliMUONRejectList* fRejectList; //!< reject list
+
+  static AliMUONVStore* fgBypassPedestals;
+  static AliMUONVStore* fgBypassGains;
+  
+  mutable AliMUONVStore* fConfig; //!< configuration of the tracker
+  
+  ClassDef(AliMUONCalibrationData,13) // Storage for all MUON calibration data.
 };
 
 #endif