]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONRecoParam.h
add a check properly the bad/exotic cluster in the corresponding array, add few histo...
[u/mrichter/AliRoot.git] / MUON / AliMUONRecoParam.h
index 6218d72c0ea7ffa2e2c8ba04300d9a0915f0217d..4510c49d8888e2df9cecfef728b8f9bd593c36e2 100644 (file)
@@ -200,19 +200,10 @@ class AliMUONRecoParam : public AliDetectorRecoParam
   /// return kTRUE if we should replace clusters in St 5 by generated clusters from trigger tracks
   Bool_t BypassSt5() const { return BypassSt45() || fBypassSt45==5 ; }
   
-  /// Set Low and High threshold for St12 HV
-  void    SetHVSt12Limits(float low, float high) { fHVSt12Limits[0]=low; fHVSt12Limits[1]=high; }
-  /// Retrieve low limit for St12's HV
-  Float_t HVSt12LowLimit() const { return fHVSt12Limits[0]; }
-  /// Retrieve high limit for St12's HV
-  Float_t HVSt12HighLimit() const { return fHVSt12Limits[1]; }
-  
-  /// Set Low and High threshold for St345 HV
-  void    SetHVSt345Limits(float low, float high) { fHVSt345Limits[0]=low; fHVSt345Limits[1]=high; } 
-  /// Retrieve low limit for St345's HV
-  Float_t HVSt345LowLimit() const { return fHVSt345Limits[0]; }
-  /// Retrieve high limit for St345's HV
-  Float_t HVSt345HighLimit() const { return fHVSt345Limits[1]; }
+  /// Set HV threshold for chambers (chamberId=0..9, use -1 to set all chambers equal)
+  void    SetHVLimit(Int_t chamberId, Double_t ichamber);
+  /// Retrieve HV limit for chamber (chamberId=0..9)
+  Double_t HVLimit(Int_t chamberId) const;
   
   /// Set Low and High threshold for pedestal mean
   void    SetPedMeanLimits(float low, float high) { fPedMeanLimits[0]=low; fPedMeanLimits[1]=high; }
@@ -328,6 +319,18 @@ class AliMUONRecoParam : public AliDetectorRecoParam
   /// Set the try recover corrupted raw data (use kTRUE only if you know what you are doing. Should be left to kFALSE by default)
   virtual void TryRecover(Bool_t flag) { fTryRecover = flag; }
 
+  /// Discard or not the mono-cathod clusters by assigning to them different resolutions (use default values)
+  void     DiscardMonoCathodClusters(Bool_t flag) { fDiscardMonoCathodClusters = flag; }
+  /// Discard or not the mono-cathod clusters by assigning to them different resolutions (use given values)
+  void     DiscardMonoCathodClusters(Bool_t flag, Double_t resNB, Double_t resB) { fDiscardMonoCathodClusters = flag;
+                                     fMonoCathodClNonBendingRes = resNB; fMonoCathodClBendingRes = resB; }
+  /// Check whether to discard or not the mono-cathod clusters
+  Bool_t   DiscardMonoCathodClusters() const { return fDiscardMonoCathodClusters; }
+  /// Get the non-bending resolution of mono-cathod clusters when the non-bending plane is missing
+  Double_t GetMonoCathodClNonBendingRes() const { return fMonoCathodClNonBendingRes; }
+  /// Get the bending resolution of mono-cathod clusters when the bending plane is missing
+  Double_t GetMonoCathodClBendingRes() const { return fMonoCathodClBendingRes; }
+  
   /// Create object ready to be put in OCDB
   static TObjArray* Create(const char* settings);
   
@@ -402,8 +405,8 @@ private:
   Double32_t fGainA1Limits[2]; ///< Low and High threshold for gain a0 parameter
   Double32_t fGainA2Limits[2]; ///< Low and High threshold for gain a1 parameter
   Double32_t fGainThresLimits[2]; ///< Low and High threshold for gain threshold parameter
-  Double32_t fHVSt12Limits[2]; ///< Low and High threshold for St12 HV
-  Double32_t fHVSt345Limits[2]; ///< Low and High threshold for St345 HV
+  Double32_t fHVSt12Limits[2]; ///< DEPRECATED. See fHVLimits
+  Double32_t fHVSt345Limits[2]; ///< DEPRECATED. See fHVLimits
   Double32_t fPedMeanLimits[2]; ///< Low and High threshold for pedestal mean
   Double32_t fPedSigmaLimits[2]; ///< Low and High threshold for pedestal sigma
   
@@ -437,6 +440,12 @@ private:
   Double32_t fTokenLostLimit; ///< limit on the fraction of token lost error per event we allow
   
   Bool_t     fTryRecover; ///< try to recover corrupted raw data
+
+  Double32_t fHVLimit[10]; // HV limit (below which we consider that chamber efficiency is to be considered zero)
+  
+  Double32_t fDiscardMonoCathodClusters; // assign a different resolution to mono-cathod clusters in the direction of the missing plane
+  Double32_t fMonoCathodClNonBendingRes; // resolution of mono-cathod clusters in the non-bending direction when the non-bending plane is missing
+  Double32_t fMonoCathodClBendingRes; // resolution of mono-cathod clusters in the bending direction when the bending plane is missing
   
   // functions
   void SetLowFluxParam();
@@ -444,7 +453,7 @@ private:
   void SetCosmicParam();
   void SetCalibrationParam();
   
-  ClassDef(AliMUONRecoParam,168) // MUON reco parameters
+  ClassDef(AliMUONRecoParam,170) // MUON reco parameters
   // we're at 167 not because we had that many versions, but because at some point (version 15->16)
   // 166 was committed by error, and we did not to go reverse afterwards...
 };