]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONPadStatusMaker.h
Setting compilaton directory to current one
[u/mrichter/AliRoot.git] / MUON / AliMUONPadStatusMaker.h
index 6181b40edf1a7ed55629588b840efe2b8b1563a5..6008a6a199c90340ee5cc2b46777540c0a77ca8a 100644 (file)
@@ -21,6 +21,7 @@
 
 class TExMap;
 class AliMUONCalibrationData;
+class AliMUONRecoParam;
 class AliMUONVCalibParam;
 class AliMUONVTrackerData;
 class AliMUONVStore;
@@ -59,10 +60,8 @@ public:
   /// Return Low and High limits for thres parameter of gain
   TVector2 GainThresLimits() const { return fGainThresLimits; }
   
-  /// Return Low and High threshold for St12 HV
-  TVector2 HVSt12Limits() const { return fHVSt12Limits; }
-  /// Return Low and High threshold for St345 HV
-  TVector2 HVSt345Limits() const { return fHVSt345Limits; }
+  /// Return HV threshold
+  Double_t HVLimit(Int_t chamberId) const;
   
   /// Return Low and High threshold for pedestal mean
   TVector2 PedMeanLimits() const { return fPedMeanLimits; }
@@ -76,10 +75,8 @@ public:
   /// Set Low and High limits for thres parameter of gain
   void GainThresLimits(float low, float high) { fGainThresLimits.Set(low,high); }
   
-  /// Set Low and High threshold for St12 HV
-  void SetHVSt12Limits(float low, float high) { fHVSt12Limits.Set(low,high); }
-  /// Set Low and High threshold for St345 HV
-  void SetHVSt345Limits(float low, float high) { fHVSt345Limits.Set(low,high); }
+  /// Set HV limit
+  void SetHVLimit(Int_t chamberId, Double_t hv);
 
   /// Set Low and High threshold for pedestal mean
   void SetPedMeanLimits(float low, float high) { fPedMeanLimits.Set(low,high); }
@@ -97,6 +94,22 @@ public:
   void SetManuOccupancyLimits(float low, float high) { fManuOccupancyLimits.Set(low,high); }
   /// Get manu occupancy limits
   TVector2 ManuOccupancyLimits() const { return fManuOccupancyLimits; }
+
+  /// Set Low and High bus patch occupancy limits
+  void SetBuspatchOccupancyLimits(float low, float high) { fBuspatchOccupancyLimits.Set(low,high); }
+  /// Get bus patch occupancy limits
+  TVector2 BuspatchOccupancyLimits() const { return fBuspatchOccupancyLimits; }
+
+  /// Set Low and High DE occupancy limits
+  void SetDEOccupancyLimits(float low, float high) { fDEOccupancyLimits.Set(low,high); }
+  /// Get DE occupancy limits
+  TVector2 DEOccupancyLimits() const { return fDEOccupancyLimits; }
+  
+  void SetLimits(const AliMUONRecoParam& recoParams);
+
+  void Report(UInt_t mask);
+  
+  static Float_t SwitchValue(const TObjArray& dcsArray);
   
 private:
   /// Not implemented
@@ -169,7 +182,7 @@ private:
     kHVOK = 0,
     kHVError = (1<<0),
     kHVTooLow = (1<<1),
-    kHVTooHigh = (1<<2),
+    kHVTooHigh = (1<<2), // no longer to be used
     kHVChannelOFF = (1<<3),
     kHVSwitchOFF = (1<<4),
 
@@ -193,14 +206,13 @@ private:
   TVector2 fGainA2Limits; //!< Low and High threshold for gain a1 parameter
   TVector2 fGainThresLimits; //!< Low and High threshold for gain threshold parameter
 
-  TVector2 fHVSt12Limits; //!< Low and High threshold for St12 HV
-  TVector2 fHVSt345Limits; //!< Low and High threshold for St345 HV
+  Double_t fHVLimit[10]; //!< Low thresholds for HV
 
   TVector2 fPedMeanLimits; //!< Low and High threshold for pedestal mean
   TVector2 fPedSigmaLimits; //!< Low and High threshold for pedestal sigma
   
   TVector2 fManuOccupancyLimits; //!< Low and High manu occupancy limits
-  TVector2 fBusPatchOccupancyLimits; //!< Low and High buspatch occupancy limits
+  TVector2 fBuspatchOccupancyLimits; //!< Low and High buspatch occupancy limits
   TVector2 fDEOccupancyLimits; //!< Low and High DE occupancy limits
   
   AliMUONVStore* fStatus; //!< statuses of the pads