]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONRecoParam.h
Simplifications, now that pedestal subprocessor is taking care of deciding whether...
[u/mrichter/AliRoot.git] / MUON / AliMUONRecoParam.h
index 9fa4c20ad393fa7f6b90576355810c3a1b86a98a..d71f1f629bb5ea25d2b300967710b9182e80e757 100644 (file)
@@ -24,6 +24,7 @@ class AliMUONRecoParam : public AliDetectorRecoParam
   static AliMUONRecoParam *GetLowFluxParam();
   static AliMUONRecoParam *GetHighFluxParam();
   static AliMUONRecoParam *GetCosmicParam();
+  static AliMUONRecoParam *GetCalibrationParam();
   
   /// set the calibration mode (see GetCalibrationMode() for possible modes)
   void SetCalibrationMode(Option_t* mode) { fCalibrationMode = mode; fCalibrationMode.ToUpper();}
@@ -61,6 +62,7 @@ class AliMUONRecoParam : public AliDetectorRecoParam
   void     SetMaxBendingMomentum(Double_t val) {fMaxBendingMomentum = val;}
   /// return the maximum value (GeV/c) of momentum in bending plane
   Double_t GetMaxBendingMomentum() const {return fMaxBendingMomentum;}
+  
   /// set the maximum value of the non bending slope
   void     SetMaxNonBendingSlope(Double_t val) {fMaxNonBendingSlope = val;}
   /// return the maximum value of the non bending slope
@@ -70,13 +72,18 @@ class AliMUONRecoParam : public AliDetectorRecoParam
   /// return the maximum value of the bending slope
   Double_t GetMaxBendingSlope() const {return fMaxBendingSlope;}
   
-  /// set the vertex dispersion (cm) in non bending plane (used for original tracking only)
+  /// switch on/off the track selection according to their slope (instead of their impact parameter)
+  void     SelectOnTrackSlope(Bool_t flag) {fSelectTrackOnSlope = flag;}
+  /// return kTRUE/kFALSE if tracks are selected according to their slope/impact parameter
+  Bool_t   SelectOnTrackSlope() const {return fSelectTrackOnSlope;}
+  
+  /// set the vertex dispersion (cm) in non bending plane
   void     SetNonBendingVertexDispersion(Double_t val) {fNonBendingVertexDispersion = val;} 
-  /// return the vertex dispersion (cm) in non bending plane (used for original tracking only)
+  /// return the vertex dispersion (cm) in non bending plane
   Double_t GetNonBendingVertexDispersion() const {return fNonBendingVertexDispersion;}
-  /// set the vertex dispersion (cm) in bending plane (used for original tracking only)
+  /// set the vertex dispersion (cm) in bending plane
   void     SetBendingVertexDispersion(Double_t val) {fBendingVertexDispersion = val;} 
-  /// return the vertex dispersion (cm) in bending plane (used for original tracking only)
+  /// return the vertex dispersion (cm) in bending plane
   Double_t GetBendingVertexDispersion() const {return fBendingVertexDispersion;}
   
   /// set the maximum distance to the track to search for compatible cluster(s) in non bending direction
@@ -258,14 +265,43 @@ class AliMUONRecoParam : public AliDetectorRecoParam
   /// Get the maximum number of track candidates above which the tracking abort
   Int_t GetMaxTrackCandidates() const {return fMaxTrackCandidates;}
   
+  /// Set the limits for the acceptable manu occupancy
+  void SetManuOccupancyLimits(float low, float high) { fManuOccupancyLimits[0]=low; fManuOccupancyLimits[1]=high; }
+  /// Retrieve low value of manu occupancy limit
+  Float_t ManuOccupancyLowLimit() const { return fManuOccupancyLimits[0]; }
+  /// Retrieve high value of manu occupancy limit
+  Float_t ManuOccupancyHighLimit() const { return fManuOccupancyLimits[1]; }
+
+  /// Set the limits for the acceptable bp occupancy
+  void SetBuspatchOccupancyLimits(float low, float high) { fBuspatchOccupancyLimits[0]=low; fBuspatchOccupancyLimits[1]=high; }
+  /// Retrieve low value of bp occupancy limit
+  Float_t BuspatchOccupancyLowLimit() const { return fBuspatchOccupancyLimits[0]; }
+  /// Retrieve high value of bp occupancy limit
+  Float_t BuspatchOccupancyHighLimit() const { return fBuspatchOccupancyLimits[1]; }
+
+  /// Set the limits for the acceptable DE occupancy
+  void SetDEOccupancyLimits(float low, float high) { fDEOccupancyLimits[0]=low; fDEOccupancyLimits[1]=high; }
+  /// Retrieve low value of DE occupancy limit
+  Float_t DEOccupancyLowLimit() const { return fDEOccupancyLimits[0]; }
+  /// Retrieve high value of DE occupancy limit
+  Float_t DEOccupancyHighLimit() const { return fDEOccupancyLimits[1]; }
+  
+  /// Set the missing pad fraction limit
+  void SetMissingPadFractionLimit(float v) { fMissingPadFractionLimit = v; }
+  /// Get the missing pad fraction limit
+  Float_t MissingPadFractionLimit() const { return fMissingPadFractionLimit; }
+  
+  /// Set the fraction of buspatches outside the occupancy limits
+  void SetFractionOfBuspatchOutsideOccupancyLimit(float v) { fFractionOfBuspatchOutsideOccupancyLimit = v; }
+  /// Get the fraction of buspatches outside the occupancy limits
+  Float_t FractionOfBuspatchOutsideOccupancyLimit() const { return fFractionOfBuspatchOutsideOccupancyLimit; }
+
   virtual void Print(Option_t *option = "") const;
   
-  
  private:
   
   void SetDefaultLimits();
   
-       
  private:
   
   /// clustering mode:  NOCLUSTERING, PRECLUSTER, PRECLUSTERV2, PRECLUSTERV3, COG, <pre>
@@ -318,7 +354,7 @@ class AliMUONRecoParam : public AliDetectorRecoParam
   
   Bool_t     fSaveFullClusterInESD; ///< kTRUE to save all cluster info (including pads) in ESD
   
-  /// calibration mode:  GAIN, NOGAIN, GAINCONSTANTCAPA
+  /// calibration mode:  GAIN, NOGAIN, GAINCONSTANTCAPA, INJECTIONGAIN
   TString    fCalibrationMode; ///<\brief calibration mode
   
   Int_t      fBypassSt45; ///< non-zero to use trigger tracks to generate "fake" clusters in St 4 and 5. Can be 0, 4, 5 or 45 only
@@ -347,13 +383,22 @@ class AliMUONRecoParam : public AliDetectorRecoParam
   Int_t      fMaxTriggerTracks; ///< maximum number of trigger tracks above which the tracking is cancelled
   Int_t      fMaxTrackCandidates; ///< maximum number of track candidates above which the tracking abort
   
+  Bool_t     fSelectTrackOnSlope; ///< select track candidates according to their slope (instead of their impact parameter)
+  
+  Double32_t fManuOccupancyLimits[2]; ///< low and high thresholds for manu occupancy cut
+  Double32_t fBuspatchOccupancyLimits[2]; ///< low and high thresholds for bus patch occupancy cut
+  Double32_t fDEOccupancyLimits[2]; ///< low and high thresholds for DE occupancy cut
+
+  Double32_t fMissingPadFractionLimit; ///< above this fraction, we consider we have too few pads alive...
+  Double32_t fFractionOfBuspatchOutsideOccupancyLimit; ///< above this limit, we consider we have too many buspatches out of the allowed occupancy range
+
   // functions
   void SetLowFluxParam();
   void SetHighFluxParam();
   void SetCosmicParam();
+  void SetCalibrationParam();
   
-  
-  ClassDef(AliMUONRecoParam,12) // MUON reco parameters
+  ClassDef(AliMUONRecoParam,15) // MUON reco parameters
 };
 
 #endif