ROOT logo
#ifndef ALIMUONRECOPARAM_H
#define ALIMUONRECOPARAM_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice                               */

// $Id$

/// \ingroup rec
/// \class AliMUONRecoParam
/// \brief Class with MUON reconstruction parameters
///
//  Author: Philippe Pillot

#include "AliDetectorRecoParam.h"
#include "TString.h"
#include <TMath.h>

class AliMUONRecoParam : public AliDetectorRecoParam
{
 public: 
  AliMUONRecoParam();
  virtual ~AliMUONRecoParam();
  
  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();}
  
  Option_t* GetCalibrationMode() const;
  
  /// set the clustering (pre-clustering) mode
  void      SetClusteringMode(Option_t* mode) {fClusteringMode = mode; fClusteringMode.ToUpper();}
  /// get the clustering (pre-clustering) mode
  Option_t* GetClusteringMode() const {return fClusteringMode.Data();}
  
  /// Get the (truncated) average of sigmas of pedestal measurements, i.e. noise, of pads
  Double_t AverageNoisePadCharge() const { return fAverageNoisePadCharge; }
  /// Set the average of sigmas of pedestal measurements, i.e. noise, of pads
  void AverageNoisePadCharge(Double_t noise) { fAverageNoisePadCharge = noise; }
  
  /// Get the lowest charge we allow for pads
  Double_t LowestPadCharge() const { return fChargeSigmaCut*fAverageNoisePadCharge; }

  /// Get the cut applied to cut on cluster charge (the charge is cut if below fClusterChargeCut*LowestPadCharge())
  Double_t ClusterChargeCut() const { return fClusterChargeCut; }
  /// Set the cut applied to cut on cluster charge (the charge is cut if below fClusterChargeCut*LowestPadCharge())
  void ClusterChargeCut(Double_t n) { fClusterChargeCut=n; }
  
  /// Get the lowest possible cluster charge
  Double_t LowestClusterCharge() const { return ClusterChargeCut()*LowestPadCharge(); }
     
  /// set the tracking mode
  void      SetTrackingMode(Option_t* mode) {fTrackingMode = mode; fTrackingMode.ToUpper();}
  /// get the tracking mode
  Option_t* GetTrackingMode() const {return fTrackingMode.Data();}
  
  /// switch on/off the combined cluster/track reconstruction
  void      CombineClusterTrackReco(Bool_t flag) {fCombinedClusterTrackReco = flag;}
  /// return kTRUE/kFALSE if the combined cluster/track reconstruction is on/off
  Bool_t    CombineClusterTrackReco() const {return fCombinedClusterTrackReco;}
  
  /// save all cluster info (including pads) in ESD, for the given percentage of events
  void      SaveFullClusterInESD(Bool_t flag, Double_t percentOfEvent = 100.) {fSaveFullClusterInESD = flag;
                                 fPercentOfFullClusterInESD = (fSaveFullClusterInESD) ? percentOfEvent : 0.;}
  /// return kTRUE/kFALSE depending on whether we save all cluster info in ESD or not
  Bool_t    SaveFullClusterInESD() const {return fSaveFullClusterInESD;}
  /// return the percentage of events for which all cluster info are stored in ESD
  Double_t  GetPercentOfFullClusterInESD() const {return fPercentOfFullClusterInESD;}
  
  /// set the minimum value (GeV/c) of momentum in bending plane
  void     SetMinBendingMomentum(Double_t val) {fMinBendingMomentum = val;}
  /// return the minimum value (GeV/c) of momentum in bending plane
  Double_t GetMinBendingMomentum() const {return fMinBendingMomentum;}
  /// set the maximum value (GeV/c) of momentum in bending plane
  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
  Double_t GetMaxNonBendingSlope() const {return fMaxNonBendingSlope;}
  /// set the maximum value of the bending slope
  void     SetMaxBendingSlope(Double_t val) {fMaxBendingSlope = val;}
  /// return the maximum value of the bending slope
  Double_t GetMaxBendingSlope() const {return fMaxBendingSlope;}
  
  /// 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
  Double_t GetNonBendingVertexDispersion() const {return fNonBendingVertexDispersion;}
  /// set the vertex dispersion (cm) in bending plane
  void     SetBendingVertexDispersion(Double_t val) {fBendingVertexDispersion = val;} 
  /// 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
  void     SetMaxNonBendingDistanceToTrack(Double_t val) {fMaxNonBendingDistanceToTrack = val;} 
  /// return the maximum distance to the track to search for compatible cluster(s) in non bending direction
  Double_t GetMaxNonBendingDistanceToTrack() const {return fMaxNonBendingDistanceToTrack;}
  /// set the maximum distance to the track to search for compatible cluster(s) in bending direction
  void     SetMaxBendingDistanceToTrack(Double_t val) {fMaxBendingDistanceToTrack = val;} 
  /// return the maximum distance to the track to search for compatible cluster(s) in bending direction
  Double_t GetMaxBendingDistanceToTrack() const {return fMaxBendingDistanceToTrack;}
  
  /// set the cut in sigma to apply on cluster (local chi2) and track (global chi2) during tracking
  void     SetSigmaCutForTracking(Double_t val) {fSigmaCutForTracking = val;} 
  /// return the cut in sigma to apply on cluster (local chi2) and track (global chi2) during tracking
  Double_t GetSigmaCutForTracking() const {return fSigmaCutForTracking;}
  
  /// switch on/off the track improvement and keep the default cut in sigma to apply on cluster (local chi2)
  void     ImproveTracks(Bool_t flag) {fImproveTracks = flag;} 
  /// switch on/off the track improvement and set the cut in sigma to apply on cluster (local chi2)
  void     ImproveTracks(Bool_t flag, Double_t sigmaCut) {fImproveTracks = flag; fSigmaCutForImprovement = sigmaCut;} 
  /// return kTRUE/kFALSE if the track improvement is switch on/off
  Bool_t   ImproveTracks() const {return fImproveTracks;}
  /// return the cut in sigma to apply on cluster (local chi2) during track improvement
  Double_t GetSigmaCutForImprovement() const {return fSigmaCutForImprovement;}
  
  /// set the cut in sigma to apply on track during trigger hit pattern search
  void     SetSigmaCutForTrigger(Double_t val) {fSigmaCutForTrigger = val; fMaxNormChi2MatchTrigger = val*val;} 
  /// return the cut in sigma to apply on track during trigger hit pattern search
  Double_t GetSigmaCutForTrigger() const {return fSigmaCutForTrigger;}
  /// set the cut in strips to apply on trigger track during trigger chamber efficiency
  void     SetStripCutForTrigger(Double_t val) {fStripCutForTrigger = val;} 
  /// return the cut in strips to apply on trigger track during trigger chamber efficiency
  Double_t GetStripCutForTrigger() const {return fStripCutForTrigger;}
  /// set the maximum search area in strips to apply on trigger track during trigger chamber efficiency
  void     SetMaxStripAreaForTrigger(Double_t val) {fMaxStripAreaForTrigger = val;} 
  /// return the maximum search area in strips to apply on trigger track during trigger chamber efficiency
  Double_t GetMaxStripAreaForTrigger() const {return fMaxStripAreaForTrigger;}
  
  /// return the maximum normalized chi2 of tracking/trigger track matching
  Double_t GetMaxNormChi2MatchTrigger() const {return fMaxNormChi2MatchTrigger;}
  
  /// switch on/off the tracking of all the possible candidates (track only the best one if switched off)
  void     TrackAllTracks(Bool_t flag) {fTrackAllTracks = flag;} 
  /// return kTRUE/kFALSE if the tracking of all the possible candidates is switched on/off
  Bool_t   TrackAllTracks() const {return fTrackAllTracks;}
  
  /// switch on/off the recovering of tracks being lost during reconstruction
  void     RecoverTracks(Bool_t flag) {fRecoverTracks = flag;} 
  /// return kTRUE/kFALSE if the recovering of tracks being lost during reconstruction is switched on/off
  Bool_t   RecoverTracks() const {return fRecoverTracks;}
  
  /// switch on/off the fast building of track candidates (assuming linear propagation between stations 4 and 5)
  void     MakeTrackCandidatesFast(Bool_t flag) {fMakeTrackCandidatesFast = flag;} 
  /// return kTRUE/kFALSE if the fast building of track candidates is switched on/off
  Bool_t   MakeTrackCandidatesFast() const {return fMakeTrackCandidatesFast;}
  
  /// switch on/off the building of track candidates starting from 1 cluster in each of the stations 4 and 5
  void     MakeMoreTrackCandidates(Bool_t flag) {fMakeMoreTrackCandidates = flag;} 
  /// return kTRUE/kFALSE if the building of extra track candidates is switched on/off
  Bool_t   MakeMoreTrackCandidates() const {return fMakeMoreTrackCandidates;}
  
  /// switch on/off the completion of reconstructed track
  void     ComplementTracks(Bool_t flag) {fComplementTracks = flag;} 
  /// return kTRUE/kFALSE if completion of the reconstructed track is switched on/off
  Bool_t   ComplementTracks() const {return fComplementTracks;}
  
  /// remove tracks sharing cluster in stations 1 or 2
  void     RemoveConnectedTracksInSt12(Bool_t flag) {fRemoveConnectedTracksInSt12 = flag;} 
  /// return kTRUE/kFALSE whether tracks sharing cluster in station 1 and 2 must be removed or not
  Bool_t   RemoveConnectedTracksInSt12() const {return fRemoveConnectedTracksInSt12;}
  
  /// switch on/off the use of the smoother
  void     UseSmoother(Bool_t flag) {fUseSmoother = flag;} 
  /// return kTRUE/kFALSE if the use of the smoother is switched on/off
  Bool_t   UseSmoother() const {return fUseSmoother;}
  
  /// switch on/off a chamber in the reconstruction
  void     UseChamber(Int_t iCh, Bool_t flag) {if (iCh >= 0 && iCh < 10) fUseChamber[iCh] = flag;}
  /// return kTRUE/kFALSE whether the chamber must be used or not
  Bool_t   UseChamber(Int_t iCh) const {return (iCh >= 0 && iCh < 10) ? fUseChamber[iCh] : kFALSE;}
  
  /// request or not at least one cluster in the station to validate the track
  void     RequestStation(Int_t iSt, Bool_t flag) {if (iSt >= 0 && iSt < 5) fRequestStation[iSt] = flag;}
  /// return kTRUE/kFALSE whether at least one cluster is requested in the station to validate the track
  Bool_t   RequestStation(Int_t iSt) const {return (iSt >= 0 && iSt < 5) ? fRequestStation[iSt] : kFALSE;}
  /// return an integer where first 5 bits are set to 1 if the corresponding station is requested
  UInt_t   RequestedStationMask() const;
  
  /// set the bypassSt45 value
  void   BypassSt45(Bool_t st4, Bool_t st5);
  
  /// return kTRUE if we should replace clusters in St 4 and 5 by generated clusters from trigger tracks
  Bool_t BypassSt45() const { return fBypassSt45==45; }
  
  /// return kTRUE if we should replace clusters in St 4 by generated clusters from trigger tracks
  Bool_t BypassSt4() const { return BypassSt45() || fBypassSt45==4 ; }
  
  /// 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 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; }
  /// Retrieve low limit of ped mean
  Float_t PedMeanLowLimit() const { return fPedMeanLimits[0]; }
  /// Retrieve high limit of ped mean
  Float_t PedMeanHighLimit() const { return fPedMeanLimits[1]; }
  
  /// Set Low and High threshold for pedestal sigma 
  void    SetPedSigmaLimits(float low, float high) { fPedSigmaLimits[0]=low; fPedSigmaLimits[1]=high; }
  /// Retrieve low limit of ped sigma
  Float_t PedSigmaLowLimit() const { return fPedSigmaLimits[0]; }
  /// Retrieve high limit of ped sigma
  Float_t PedSigmaHighLimit() const { return fPedSigmaLimits[1]; }
  
  /// Set Low and High threshold for gain a0 term
  void    SetGainA1Limits(float low, float high) { fGainA1Limits[0]=low; fGainA1Limits[1]=high; }
  /// Retrieve low limit of a1 (linear term) gain parameter
  Float_t GainA1LowLimit() const { return fGainA1Limits[0]; }
  /// Retrieve high limit of a1 (linear term) gain parameter
  Float_t GainA1HighLimit() const { return fGainA1Limits[1]; }
  
  /// Set Low and High threshold for gain a1 term
  void    SetGainA2Limits(float low, float high) { fGainA2Limits[0]=low; fGainA2Limits[1]=high; }
  /// Retrieve low limit of a2 (quadratic term) gain parameter
  Float_t GainA2LowLimit() const { return fGainA2Limits[0]; }
  /// Retrieve high limit of a2 (quadratic term) gain parameter
  Float_t GainA2HighLimit() const { return fGainA2Limits[1]; }
  
  /// Set Low and High threshold for gain threshold term
  void    SetGainThresLimits(float low, float high) { fGainThresLimits[0]=low; fGainThresLimits[1]=high; }
  /// Retrieve low limit on threshold gain parameter
  Float_t GainThresLowLimit() const { return fGainThresLimits[0]; }
  /// Retrieve high limit on threshold gain parameter
  Float_t GainThresHighLimit() const { return fGainThresLimits[1]; }
  
  /// Set the goodness mask (see AliMUONPadStatusMapMaker)
  void   SetPadGoodnessMask(UInt_t mask) { fPadGoodnessMask=mask; }
  /// Get the goodness mask
  UInt_t PadGoodnessMask() const { return fPadGoodnessMask; }
  
  /// Number of sigma cut we must apply when cutting on adc-ped
  Double_t ChargeSigmaCut() const { return fChargeSigmaCut; }
  
  /// Number of sigma cut we must apply when cutting on adc-ped
  void ChargeSigmaCut(Double_t value) { fChargeSigmaCut=value; }
  
  /// Set the default non bending resolution of chamber iCh
  void     SetDefaultNonBendingReso(Int_t iCh, Double_t val) {if (iCh >= 0 && iCh < 10) fDefaultNonBendingReso[iCh] = val;}
  /// Get the default non bending resolution of chamber iCh
  Double_t GetDefaultNonBendingReso(Int_t iCh) const {return (iCh >= 0 && iCh < 10) ? fDefaultNonBendingReso[iCh] : FLT_MAX;}
  /// Set the default bending resolution of chamber iCh
  void     SetDefaultBendingReso(Int_t iCh, Double_t val) {if (iCh >= 0 && iCh < 10) fDefaultBendingReso[iCh] = val;}
  /// Get the default bending resolution of chamber iCh
  Double_t GetDefaultBendingReso(Int_t iCh) const {return (iCh >= 0 && iCh < 10) ? fDefaultBendingReso[iCh] : FLT_MAX;}
  
  /// Set the maximum number of trigger tracks above which the tracking is cancelled
  void SetMaxTriggerTracks(Int_t maxTriggerTracks) {fMaxTriggerTracks = maxTriggerTracks;}
  /// Get the maximum number of trigger tracks above which the tracking is cancelled
  Int_t GetMaxTriggerTracks() const {return fMaxTriggerTracks;}
  
  /// Set the maximum number of track candidates above which the tracking abort
  void SetMaxTrackCandidates(Int_t maxTrackCandidates) {fMaxTrackCandidates = maxTrackCandidates;}
  /// 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 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;
  
  /// Get the max event size (soft limit)
  virtual Double_t EventSizeSoftLimit() const { return fEventSizeSoftLimit; }
  
  /// Get the max event size (hard limit)
  virtual Double_t EventSizeHardLimit() const { return fEventSizeHardLimit; }

  /// Set the max event size limits
  virtual void SetEventSizeLimits(Double_t soft, Double_t hard) { fEventSizeSoftLimit=soft; fEventSizeHardLimit=hard; }
  
  /// Get the percentage of token lost error we allow
  virtual Double_t TokenLostLimit() const { return fTokenLostLimit; }

  /// Set the percentage of token lost error we allow
  virtual void SetTokenLostLimit(Double_t limit) { fTokenLostLimit = limit; }

  /// Whether or not we try to recover corrupted raw data
  virtual Bool_t TryRecover() const { return fTryRecover; }

  /// 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);
  
  /// Show what is the OCDB for that run
  static void Show(Int_t runNumber, const char* ocdbPath="raw://");
  
private:
  
  void SetDefaultLimits();
  
 private:
  
  /// clustering mode:  NOCLUSTERING, PRECLUSTER, PRECLUSTERV2, PRECLUSTERV3, COG, <pre>
  ///                   SIMPLEFIT, SIMPLEFITV3, MLEM:DRAW, MLEM, MLEMV2, MLEMV3   </pre>
  TString fClusteringMode; ///< \brief name of the clustering (+ pre-clustering) mode
  
  /// tracking mode: ORIGINAL, KALMAN
  TString fTrackingMode; ///< \brief name of the tracking mode
  
  Double32_t fMinBendingMomentum; ///< minimum value (GeV/c) of momentum in bending plane
  Double32_t fMaxBendingMomentum; ///< maximum value (GeV/c) of momentum in bending plane
  Double32_t fMaxNonBendingSlope; ///< maximum value of the non bending slope
  Double32_t fMaxBendingSlope;    ///< maximum value of the bending slope (used only if B = 0)
  
  Double32_t fNonBendingVertexDispersion; ///< vertex dispersion (cm) in non bending plane (used for original tracking only)
  Double32_t fBendingVertexDispersion;    ///< vertex dispersion (cm) in bending plane (used for original tracking only)
  
  Double32_t fMaxNonBendingDistanceToTrack; ///< maximum distance to the track to search for compatible cluster(s) in non bending direction
  Double32_t fMaxBendingDistanceToTrack;    ///< maximum distance to the track to search for compatible cluster(s) in bending direction
  
  Double32_t fSigmaCutForTracking; ///< cut in sigma to apply on cluster (local chi2) and track (global chi2) during tracking

  Double32_t fSigmaCutForImprovement; ///< cut in sigma to apply on cluster (local chi2) during track improvement
  
  Double32_t fSigmaCutForTrigger; ///< cut in sigma to apply on track during trigger hit pattern search

  Double32_t fStripCutForTrigger; ///< cut in strips to apply on trigger track during trigger chamber efficiency

  Double32_t fMaxStripAreaForTrigger; ///< max. search area in strips to apply on trigger track during trigger chamber efficiency
  
  Double32_t fMaxNormChi2MatchTrigger; ///< maximum normalized chi2 of tracking/trigger track matching
  
  Double32_t fPercentOfFullClusterInESD; ///< percentage of events for which all cluster info are stored in ESD
  
  Bool_t     fCombinedClusterTrackReco; ///< switch on/off the combined cluster/track reconstruction
  
  Bool_t     fTrackAllTracks; ///< kTRUE to track all the possible candidates; kFALSE to track only the best ones
  
  Bool_t     fRecoverTracks; ///< kTRUE to try to recover the tracks getting lost during reconstruction
  
  Bool_t     fMakeTrackCandidatesFast; ///< kTRUE to make candidate tracks assuming linear propagation between stations 4 and 5
  
  Bool_t     fMakeMoreTrackCandidates; ///< kTRUE to make candidate tracks starting from 1 cluster in each of the stations 4 and 5
  
  Bool_t     fComplementTracks; ///< kTRUE to try to complete the reconstructed tracks by adding missing clusters
  
  Bool_t     fImproveTracks; ///< kTRUE to try to improve the reconstructed tracks by removing bad clusters
  
  Bool_t     fUseSmoother; ///< kTRUE to use the smoother to compute track parameters/covariances and local chi2 at each cluster (used for Kalman tracking only)
  
  Bool_t     fSaveFullClusterInESD; ///< kTRUE to save all cluster info (including pads) in ESD
  
  /// 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
  
  Bool_t     fUseChamber[10]; ///< kTRUE to use the chamber i in the tracking algorithm
  
  Bool_t     fRequestStation[5]; ///< kTRUE to request at least one cluster in station i to validate the track
  
  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]; ///< 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
  
  UInt_t     fPadGoodnessMask; ///< goodness mask (see AliMUONPadStatusMaker)
  
  Double32_t fChargeSigmaCut; ///< number of sigma to cut on adc-ped 
  
  Double32_t fDefaultNonBendingReso[10]; ///< default chamber resolution in the non-bending direction
  Double32_t fDefaultBendingReso[10]; ///< default chamber resolution in the bending direction
  
  Bool_t     fRemoveConnectedTracksInSt12; ///< kTRUE to remove tracks sharing cluster in station 1 and 2
  
  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; ///< DEPRECATED
  Double32_t fFractionOfBuspatchOutsideOccupancyLimit; ///< above this limit, we consider we have too many buspatches out of the allowed occupancy range

  Double32_t fAverageNoisePadCharge; ///< the (truncated, typically at 10%) mean of the sigma of the pedestals, in femto-coulomb
  Double32_t fClusterChargeCut; ///< the cluster is cut if its charge is below fClusterChargeCut*LowestPadCharge()
  
  Double32_t fEventSizeSoftLimit; ///< (soft) limit on mean event size per event (KB)
  Double32_t fEventSizeHardLimit; ///< (hard) limit on mean event size per event (KB)
  
  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();
  void SetHighFluxParam();
  void SetCosmicParam();
  void SetCalibrationParam();
  
  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...
};

#endif

 AliMUONRecoParam.h:1
 AliMUONRecoParam.h:2
 AliMUONRecoParam.h:3
 AliMUONRecoParam.h:4
 AliMUONRecoParam.h:5
 AliMUONRecoParam.h:6
 AliMUONRecoParam.h:7
 AliMUONRecoParam.h:8
 AliMUONRecoParam.h:9
 AliMUONRecoParam.h:10
 AliMUONRecoParam.h:11
 AliMUONRecoParam.h:12
 AliMUONRecoParam.h:13
 AliMUONRecoParam.h:14
 AliMUONRecoParam.h:15
 AliMUONRecoParam.h:16
 AliMUONRecoParam.h:17
 AliMUONRecoParam.h:18
 AliMUONRecoParam.h:19
 AliMUONRecoParam.h:20
 AliMUONRecoParam.h:21
 AliMUONRecoParam.h:22
 AliMUONRecoParam.h:23
 AliMUONRecoParam.h:24
 AliMUONRecoParam.h:25
 AliMUONRecoParam.h:26
 AliMUONRecoParam.h:27
 AliMUONRecoParam.h:28
 AliMUONRecoParam.h:29
 AliMUONRecoParam.h:30
 AliMUONRecoParam.h:31
 AliMUONRecoParam.h:32
 AliMUONRecoParam.h:33
 AliMUONRecoParam.h:34
 AliMUONRecoParam.h:35
 AliMUONRecoParam.h:36
 AliMUONRecoParam.h:37
 AliMUONRecoParam.h:38
 AliMUONRecoParam.h:39
 AliMUONRecoParam.h:40
 AliMUONRecoParam.h:41
 AliMUONRecoParam.h:42
 AliMUONRecoParam.h:43
 AliMUONRecoParam.h:44
 AliMUONRecoParam.h:45
 AliMUONRecoParam.h:46
 AliMUONRecoParam.h:47
 AliMUONRecoParam.h:48
 AliMUONRecoParam.h:49
 AliMUONRecoParam.h:50
 AliMUONRecoParam.h:51
 AliMUONRecoParam.h:52
 AliMUONRecoParam.h:53
 AliMUONRecoParam.h:54
 AliMUONRecoParam.h:55
 AliMUONRecoParam.h:56
 AliMUONRecoParam.h:57
 AliMUONRecoParam.h:58
 AliMUONRecoParam.h:59
 AliMUONRecoParam.h:60
 AliMUONRecoParam.h:61
 AliMUONRecoParam.h:62
 AliMUONRecoParam.h:63
 AliMUONRecoParam.h:64
 AliMUONRecoParam.h:65
 AliMUONRecoParam.h:66
 AliMUONRecoParam.h:67
 AliMUONRecoParam.h:68
 AliMUONRecoParam.h:69
 AliMUONRecoParam.h:70
 AliMUONRecoParam.h:71
 AliMUONRecoParam.h:72
 AliMUONRecoParam.h:73
 AliMUONRecoParam.h:74
 AliMUONRecoParam.h:75
 AliMUONRecoParam.h:76
 AliMUONRecoParam.h:77
 AliMUONRecoParam.h:78
 AliMUONRecoParam.h:79
 AliMUONRecoParam.h:80
 AliMUONRecoParam.h:81
 AliMUONRecoParam.h:82
 AliMUONRecoParam.h:83
 AliMUONRecoParam.h:84
 AliMUONRecoParam.h:85
 AliMUONRecoParam.h:86
 AliMUONRecoParam.h:87
 AliMUONRecoParam.h:88
 AliMUONRecoParam.h:89
 AliMUONRecoParam.h:90
 AliMUONRecoParam.h:91
 AliMUONRecoParam.h:92
 AliMUONRecoParam.h:93
 AliMUONRecoParam.h:94
 AliMUONRecoParam.h:95
 AliMUONRecoParam.h:96
 AliMUONRecoParam.h:97
 AliMUONRecoParam.h:98
 AliMUONRecoParam.h:99
 AliMUONRecoParam.h:100
 AliMUONRecoParam.h:101
 AliMUONRecoParam.h:102
 AliMUONRecoParam.h:103
 AliMUONRecoParam.h:104
 AliMUONRecoParam.h:105
 AliMUONRecoParam.h:106
 AliMUONRecoParam.h:107
 AliMUONRecoParam.h:108
 AliMUONRecoParam.h:109
 AliMUONRecoParam.h:110
 AliMUONRecoParam.h:111
 AliMUONRecoParam.h:112
 AliMUONRecoParam.h:113
 AliMUONRecoParam.h:114
 AliMUONRecoParam.h:115
 AliMUONRecoParam.h:116
 AliMUONRecoParam.h:117
 AliMUONRecoParam.h:118
 AliMUONRecoParam.h:119
 AliMUONRecoParam.h:120
 AliMUONRecoParam.h:121
 AliMUONRecoParam.h:122
 AliMUONRecoParam.h:123
 AliMUONRecoParam.h:124
 AliMUONRecoParam.h:125
 AliMUONRecoParam.h:126
 AliMUONRecoParam.h:127
 AliMUONRecoParam.h:128
 AliMUONRecoParam.h:129
 AliMUONRecoParam.h:130
 AliMUONRecoParam.h:131
 AliMUONRecoParam.h:132
 AliMUONRecoParam.h:133
 AliMUONRecoParam.h:134
 AliMUONRecoParam.h:135
 AliMUONRecoParam.h:136
 AliMUONRecoParam.h:137
 AliMUONRecoParam.h:138
 AliMUONRecoParam.h:139
 AliMUONRecoParam.h:140
 AliMUONRecoParam.h:141
 AliMUONRecoParam.h:142
 AliMUONRecoParam.h:143
 AliMUONRecoParam.h:144
 AliMUONRecoParam.h:145
 AliMUONRecoParam.h:146
 AliMUONRecoParam.h:147
 AliMUONRecoParam.h:148
 AliMUONRecoParam.h:149
 AliMUONRecoParam.h:150
 AliMUONRecoParam.h:151
 AliMUONRecoParam.h:152
 AliMUONRecoParam.h:153
 AliMUONRecoParam.h:154
 AliMUONRecoParam.h:155
 AliMUONRecoParam.h:156
 AliMUONRecoParam.h:157
 AliMUONRecoParam.h:158
 AliMUONRecoParam.h:159
 AliMUONRecoParam.h:160
 AliMUONRecoParam.h:161
 AliMUONRecoParam.h:162
 AliMUONRecoParam.h:163
 AliMUONRecoParam.h:164
 AliMUONRecoParam.h:165
 AliMUONRecoParam.h:166
 AliMUONRecoParam.h:167
 AliMUONRecoParam.h:168
 AliMUONRecoParam.h:169
 AliMUONRecoParam.h:170
 AliMUONRecoParam.h:171
 AliMUONRecoParam.h:172
 AliMUONRecoParam.h:173
 AliMUONRecoParam.h:174
 AliMUONRecoParam.h:175
 AliMUONRecoParam.h:176
 AliMUONRecoParam.h:177
 AliMUONRecoParam.h:178
 AliMUONRecoParam.h:179
 AliMUONRecoParam.h:180
 AliMUONRecoParam.h:181
 AliMUONRecoParam.h:182
 AliMUONRecoParam.h:183
 AliMUONRecoParam.h:184
 AliMUONRecoParam.h:185
 AliMUONRecoParam.h:186
 AliMUONRecoParam.h:187
 AliMUONRecoParam.h:188
 AliMUONRecoParam.h:189
 AliMUONRecoParam.h:190
 AliMUONRecoParam.h:191
 AliMUONRecoParam.h:192
 AliMUONRecoParam.h:193
 AliMUONRecoParam.h:194
 AliMUONRecoParam.h:195
 AliMUONRecoParam.h:196
 AliMUONRecoParam.h:197
 AliMUONRecoParam.h:198
 AliMUONRecoParam.h:199
 AliMUONRecoParam.h:200
 AliMUONRecoParam.h:201
 AliMUONRecoParam.h:202
 AliMUONRecoParam.h:203
 AliMUONRecoParam.h:204
 AliMUONRecoParam.h:205
 AliMUONRecoParam.h:206
 AliMUONRecoParam.h:207
 AliMUONRecoParam.h:208
 AliMUONRecoParam.h:209
 AliMUONRecoParam.h:210
 AliMUONRecoParam.h:211
 AliMUONRecoParam.h:212
 AliMUONRecoParam.h:213
 AliMUONRecoParam.h:214
 AliMUONRecoParam.h:215
 AliMUONRecoParam.h:216
 AliMUONRecoParam.h:217
 AliMUONRecoParam.h:218
 AliMUONRecoParam.h:219
 AliMUONRecoParam.h:220
 AliMUONRecoParam.h:221
 AliMUONRecoParam.h:222
 AliMUONRecoParam.h:223
 AliMUONRecoParam.h:224
 AliMUONRecoParam.h:225
 AliMUONRecoParam.h:226
 AliMUONRecoParam.h:227
 AliMUONRecoParam.h:228
 AliMUONRecoParam.h:229
 AliMUONRecoParam.h:230
 AliMUONRecoParam.h:231
 AliMUONRecoParam.h:232
 AliMUONRecoParam.h:233
 AliMUONRecoParam.h:234
 AliMUONRecoParam.h:235
 AliMUONRecoParam.h:236
 AliMUONRecoParam.h:237
 AliMUONRecoParam.h:238
 AliMUONRecoParam.h:239
 AliMUONRecoParam.h:240
 AliMUONRecoParam.h:241
 AliMUONRecoParam.h:242
 AliMUONRecoParam.h:243
 AliMUONRecoParam.h:244
 AliMUONRecoParam.h:245
 AliMUONRecoParam.h:246
 AliMUONRecoParam.h:247
 AliMUONRecoParam.h:248
 AliMUONRecoParam.h:249
 AliMUONRecoParam.h:250
 AliMUONRecoParam.h:251
 AliMUONRecoParam.h:252
 AliMUONRecoParam.h:253
 AliMUONRecoParam.h:254
 AliMUONRecoParam.h:255
 AliMUONRecoParam.h:256
 AliMUONRecoParam.h:257
 AliMUONRecoParam.h:258
 AliMUONRecoParam.h:259
 AliMUONRecoParam.h:260
 AliMUONRecoParam.h:261
 AliMUONRecoParam.h:262
 AliMUONRecoParam.h:263
 AliMUONRecoParam.h:264
 AliMUONRecoParam.h:265
 AliMUONRecoParam.h:266
 AliMUONRecoParam.h:267
 AliMUONRecoParam.h:268
 AliMUONRecoParam.h:269
 AliMUONRecoParam.h:270
 AliMUONRecoParam.h:271
 AliMUONRecoParam.h:272
 AliMUONRecoParam.h:273
 AliMUONRecoParam.h:274
 AliMUONRecoParam.h:275
 AliMUONRecoParam.h:276
 AliMUONRecoParam.h:277
 AliMUONRecoParam.h:278
 AliMUONRecoParam.h:279
 AliMUONRecoParam.h:280
 AliMUONRecoParam.h:281
 AliMUONRecoParam.h:282
 AliMUONRecoParam.h:283
 AliMUONRecoParam.h:284
 AliMUONRecoParam.h:285
 AliMUONRecoParam.h:286
 AliMUONRecoParam.h:287
 AliMUONRecoParam.h:288
 AliMUONRecoParam.h:289
 AliMUONRecoParam.h:290
 AliMUONRecoParam.h:291
 AliMUONRecoParam.h:292
 AliMUONRecoParam.h:293
 AliMUONRecoParam.h:294
 AliMUONRecoParam.h:295
 AliMUONRecoParam.h:296
 AliMUONRecoParam.h:297
 AliMUONRecoParam.h:298
 AliMUONRecoParam.h:299
 AliMUONRecoParam.h:300
 AliMUONRecoParam.h:301
 AliMUONRecoParam.h:302
 AliMUONRecoParam.h:303
 AliMUONRecoParam.h:304
 AliMUONRecoParam.h:305
 AliMUONRecoParam.h:306
 AliMUONRecoParam.h:307
 AliMUONRecoParam.h:308
 AliMUONRecoParam.h:309
 AliMUONRecoParam.h:310
 AliMUONRecoParam.h:311
 AliMUONRecoParam.h:312
 AliMUONRecoParam.h:313
 AliMUONRecoParam.h:314
 AliMUONRecoParam.h:315
 AliMUONRecoParam.h:316
 AliMUONRecoParam.h:317
 AliMUONRecoParam.h:318
 AliMUONRecoParam.h:319
 AliMUONRecoParam.h:320
 AliMUONRecoParam.h:321
 AliMUONRecoParam.h:322
 AliMUONRecoParam.h:323
 AliMUONRecoParam.h:324
 AliMUONRecoParam.h:325
 AliMUONRecoParam.h:326
 AliMUONRecoParam.h:327
 AliMUONRecoParam.h:328
 AliMUONRecoParam.h:329
 AliMUONRecoParam.h:330
 AliMUONRecoParam.h:331
 AliMUONRecoParam.h:332
 AliMUONRecoParam.h:333
 AliMUONRecoParam.h:334
 AliMUONRecoParam.h:335
 AliMUONRecoParam.h:336
 AliMUONRecoParam.h:337
 AliMUONRecoParam.h:338
 AliMUONRecoParam.h:339
 AliMUONRecoParam.h:340
 AliMUONRecoParam.h:341
 AliMUONRecoParam.h:342
 AliMUONRecoParam.h:343
 AliMUONRecoParam.h:344
 AliMUONRecoParam.h:345
 AliMUONRecoParam.h:346
 AliMUONRecoParam.h:347
 AliMUONRecoParam.h:348
 AliMUONRecoParam.h:349
 AliMUONRecoParam.h:350
 AliMUONRecoParam.h:351
 AliMUONRecoParam.h:352
 AliMUONRecoParam.h:353
 AliMUONRecoParam.h:354
 AliMUONRecoParam.h:355
 AliMUONRecoParam.h:356
 AliMUONRecoParam.h:357
 AliMUONRecoParam.h:358
 AliMUONRecoParam.h:359
 AliMUONRecoParam.h:360
 AliMUONRecoParam.h:361
 AliMUONRecoParam.h:362
 AliMUONRecoParam.h:363
 AliMUONRecoParam.h:364
 AliMUONRecoParam.h:365
 AliMUONRecoParam.h:366
 AliMUONRecoParam.h:367
 AliMUONRecoParam.h:368
 AliMUONRecoParam.h:369
 AliMUONRecoParam.h:370
 AliMUONRecoParam.h:371
 AliMUONRecoParam.h:372
 AliMUONRecoParam.h:373
 AliMUONRecoParam.h:374
 AliMUONRecoParam.h:375
 AliMUONRecoParam.h:376
 AliMUONRecoParam.h:377
 AliMUONRecoParam.h:378
 AliMUONRecoParam.h:379
 AliMUONRecoParam.h:380
 AliMUONRecoParam.h:381
 AliMUONRecoParam.h:382
 AliMUONRecoParam.h:383
 AliMUONRecoParam.h:384
 AliMUONRecoParam.h:385
 AliMUONRecoParam.h:386
 AliMUONRecoParam.h:387
 AliMUONRecoParam.h:388
 AliMUONRecoParam.h:389
 AliMUONRecoParam.h:390
 AliMUONRecoParam.h:391
 AliMUONRecoParam.h:392
 AliMUONRecoParam.h:393
 AliMUONRecoParam.h:394
 AliMUONRecoParam.h:395
 AliMUONRecoParam.h:396
 AliMUONRecoParam.h:397
 AliMUONRecoParam.h:398
 AliMUONRecoParam.h:399
 AliMUONRecoParam.h:400
 AliMUONRecoParam.h:401
 AliMUONRecoParam.h:402
 AliMUONRecoParam.h:403
 AliMUONRecoParam.h:404
 AliMUONRecoParam.h:405
 AliMUONRecoParam.h:406
 AliMUONRecoParam.h:407
 AliMUONRecoParam.h:408
 AliMUONRecoParam.h:409
 AliMUONRecoParam.h:410
 AliMUONRecoParam.h:411
 AliMUONRecoParam.h:412
 AliMUONRecoParam.h:413
 AliMUONRecoParam.h:414
 AliMUONRecoParam.h:415
 AliMUONRecoParam.h:416
 AliMUONRecoParam.h:417
 AliMUONRecoParam.h:418
 AliMUONRecoParam.h:419
 AliMUONRecoParam.h:420
 AliMUONRecoParam.h:421
 AliMUONRecoParam.h:422
 AliMUONRecoParam.h:423
 AliMUONRecoParam.h:424
 AliMUONRecoParam.h:425
 AliMUONRecoParam.h:426
 AliMUONRecoParam.h:427
 AliMUONRecoParam.h:428
 AliMUONRecoParam.h:429
 AliMUONRecoParam.h:430
 AliMUONRecoParam.h:431
 AliMUONRecoParam.h:432
 AliMUONRecoParam.h:433
 AliMUONRecoParam.h:434
 AliMUONRecoParam.h:435
 AliMUONRecoParam.h:436
 AliMUONRecoParam.h:437
 AliMUONRecoParam.h:438
 AliMUONRecoParam.h:439
 AliMUONRecoParam.h:440
 AliMUONRecoParam.h:441
 AliMUONRecoParam.h:442
 AliMUONRecoParam.h:443
 AliMUONRecoParam.h:444
 AliMUONRecoParam.h:445
 AliMUONRecoParam.h:446
 AliMUONRecoParam.h:447
 AliMUONRecoParam.h:448
 AliMUONRecoParam.h:449
 AliMUONRecoParam.h:450
 AliMUONRecoParam.h:451
 AliMUONRecoParam.h:452
 AliMUONRecoParam.h:453
 AliMUONRecoParam.h:454
 AliMUONRecoParam.h:455
 AliMUONRecoParam.h:456
 AliMUONRecoParam.h:457
 AliMUONRecoParam.h:458
 AliMUONRecoParam.h:459
 AliMUONRecoParam.h:460
 AliMUONRecoParam.h:461
 AliMUONRecoParam.h:462