]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONPadStatusMaker.h
Include intermediate radii for Rcoh, include all partial builds
[u/mrichter/AliRoot.git] / MUON / AliMUONPadStatusMaker.h
index fc62a331d3f3256e66d5881c688e4912b12af4ea..ce0d3544cb76d3455c183ce762308de1048d915b 100644 (file)
@@ -26,6 +26,8 @@ class AliMUONVCalibParam;
 class AliMUONVTrackerData;
 class AliMUONVStore;
 
+using std::ostream;
+
 class AliMUONPadStatusMaker : public TObject
 {
 public:
@@ -60,10 +62,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; }
@@ -77,10 +77,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); }
@@ -113,16 +111,22 @@ public:
 
   void Report(UInt_t mask);
   
+  static Float_t SwitchValue(const TObjArray& dcsArray);
+  
+  Int_t HVStatus(Int_t detElemId, Int_t manuId) const;
+  
+  Int_t OccupancyStatus(Int_t detElemId, Int_t manuId) const;
+
+  static void DecodeStatus(Int_t status, Int_t& pedStatus, Int_t& hvStatus, 
+                           Int_t&  gainStatus, Int_t& otherStatus);
+  static Int_t BuildStatus(Int_t pedStatus, Int_t hvStatus, 
+                           Int_t gainStatus, Int_t otherStatus);  
 private:
   /// Not implemented
   AliMUONPadStatusMaker(const AliMUONPadStatusMaker&);
   /// Not implemented
   AliMUONPadStatusMaker& operator=(const AliMUONPadStatusMaker&);
 
-  static void DecodeStatus(Int_t status, Int_t& pedStatus, Int_t& hvStatus, 
-                           Int_t&  gainStatus, Int_t& otherStatus);
-  static Int_t BuildStatus(Int_t pedStatus, Int_t hvStatus, 
-                           Int_t gainStatus, Int_t otherStatus);
   
   AliMUONVCalibParam* ComputeStatus(Int_t detElemId, Int_t manuId) const;
 
@@ -138,10 +142,6 @@ private:
                        Bool_t& hvChannelON,
                        Bool_t& hvSwitchON) const;
 
-  Int_t HVStatus(Int_t detElemId, Int_t manuId) const;
-
-  Int_t OccupancyStatus(Int_t detElemId, Int_t manuId) const;
-  
   void SetHVStatus(Int_t detElemId, Int_t index, Int_t status) const;
 
 private:
@@ -184,7 +184,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),
 
@@ -208,8 +208,7 @@ 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