]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSRecoParam.h
New default values for baselines (F.Prino)
[u/mrichter/AliRoot.git] / ITS / AliITSRecoParam.h
index fb527082f650eedc5a30438ae4f1039eadbc2082..914dba60309c7ebada498e98beae482f5db863fe 100644 (file)
 ///////////////////////////////////////////////////////////////////////////////
 
 
-#include "TObject.h"
+#include "AliDetectorRecoParam.h"
 #include "AliITSgeomTGeo.h"
 
-class AliITSRecoParam : public TObject
+class AliITSRecoParam : public AliDetectorRecoParam
 {
  public: 
   AliITSRecoParam();
@@ -25,6 +25,7 @@ class AliITSRecoParam : public TObject
   static AliITSRecoParam *GetLowFluxParam();// make reco parameters for low flux env.
   static AliITSRecoParam *GetHighFluxParam();// make reco parameters for high flux env. 
   static AliITSRecoParam *GetCosmicTestParam();// special setting for cosmic  
+  static AliITSRecoParam *GetPlaneEffParam(Int_t i);// special setting for Plane Efficiency studies
 
   static Int_t GetLayersNotToSkip(Int_t i) { return fgkLayersNotToSkip[i]; }
   static Int_t GetLastLayerToTrackTo() { return fgkLastLayerToTrackTo; }
@@ -62,6 +63,8 @@ class AliITSRecoParam : public TObject
   static Double_t GetSPDdetzlength() { return fgkSPDdetzlength; }
   static Double_t GetSPDdetxlength() { return fgkSPDdetxlength; }
 
+  void PrintParameters() const; 
+
   Double_t GetSigmaY2(Int_t i) const { return fSigmaY2[i]; }
   Double_t GetSigmaZ2(Int_t i) const { return fSigmaZ2[i]; }
 
@@ -75,6 +78,8 @@ class AliITSRecoParam : public TObject
   Double_t GetNSigma2RoadZC() const { return fNSigma2RoadZC; }
   Double_t GetNSigma2RoadYNonC() const { return fNSigma2RoadYNonC; }
   Double_t GetNSigma2RoadZNonC() const { return fNSigma2RoadZNonC; }
+  Double_t GetRoadMisal() const { return fRoadMisal; }
+  void     SetRoadMisal(Double_t road=0) { fRoadMisal=road; }
 
   Double_t GetChi2PerCluster() const { return fChi2PerCluster; }
   Double_t GetMaxChi2PerCluster(Int_t i) const { return fMaxChi2PerCluster[i]; }
@@ -120,15 +125,88 @@ class AliITSRecoParam : public TObject
 
   void   SetClusterErrorsParam(Int_t param=1) { fClusterErrorsParam=param; return; }
   Int_t  GetClusterErrorsParam() const { return fClusterErrorsParam; }
+  void    SetClusterMisalError(Float_t err=0.) { fClusterMisalError=err; return; }
+  Float_t GetClusterMisalError() const { return fClusterMisalError; }
+
+
   void   SetUseAmplitudeInfo(Bool_t use=kTRUE) { for(Int_t i=0;i<AliITSgeomTGeo::kNLayers;i++) fUseAmplitudeInfo[i]=use; return; }
   void   SetUseAmplitudeInfo(Int_t ilay,Bool_t use) { fUseAmplitudeInfo[ilay]=use; return; }
   Bool_t GetUseAmplitudeInfo(Int_t ilay) const { return fUseAmplitudeInfo[ilay]; }
+// Option for Plane Efficiency evaluation
+  void   SetComputePlaneEff(Bool_t eff=kTRUE, Bool_t his=kTRUE)
+      { fComputePlaneEff=eff; fHistoPlaneEff=his; return; }
+  Bool_t GetComputePlaneEff() const { return fComputePlaneEff; }
+  Bool_t GetHistoPlaneEff() const { return fHistoPlaneEff; }
+  void   SetIPlanePlaneEff(Int_t i=0) {if(i<0 || i>=AliITSgeomTGeo::kNLayers) return; fIPlanePlaneEff=i; }
+  Int_t  GetIPlanePlaneEff() const {return fIPlanePlaneEff;}
+  void   SetReadPlaneEffFrom0CDB(Bool_t read=kTRUE) { fReadPlaneEffFromOCDB=read; }
+  Bool_t GetReadPlaneEffFromOCDB() const { return fReadPlaneEffFromOCDB; }
+  void   SetMinPtPlaneEff(Bool_t ptmin=0.) { fMinPtPlaneEff=ptmin; }
+  Double_t GetMinPtPlaneEff() const { return fMinPtPlaneEff; }
+  void   SetMaxMissingClustersPlaneEff(Int_t max=0) { fMaxMissingClustersPlaneEff=max;}
+  Int_t  GetMaxMissingClustersPlaneEff() const {return fMaxMissingClustersPlaneEff;}
+  void   SetRequireClusterInOuterLayerPlaneEff(Bool_t out=kTRUE) { fRequireClusterInOuterLayerPlaneEff=out;}
+  Bool_t GetRequireClusterInOuterLayerPlaneEff() const {return fRequireClusterInOuterLayerPlaneEff;}
+  void   SetRequireClusterInInnerLayerPlaneEff(Bool_t in=kTRUE) { fRequireClusterInInnerLayerPlaneEff=in;}
+  Bool_t GetRequireClusterInInnerLayerPlaneEff() const {return fRequireClusterInInnerLayerPlaneEff;}
+  void   SetOnlyConstraintPlaneEff(Bool_t con=kFALSE) { fOnlyConstraintPlaneEff=con; }
+  Bool_t GetOnlyConstraintPlaneEff() const { return fOnlyConstraintPlaneEff; }
+  //
+  void   SetExtendedEtaAcceptance(Bool_t ext=kTRUE) { fExtendedEtaAcceptance=ext; return; }
+  Bool_t GetExtendedEtaAcceptance() const { return fExtendedEtaAcceptance; }
+  void   SetAllowProlongationWithEmptyRoad(Bool_t allow=kTRUE) { fAllowProlongationWithEmptyRoad=allow; return; }  
+  Bool_t GetAllowProlongationWithEmptyRoad() const { return fAllowProlongationWithEmptyRoad; }
+
+  void   SetUseBadZonesFromOCDB(Bool_t use=kTRUE) { fUseBadZonesFromOCDB=use; return; }
+  Bool_t GetUseBadZonesFromOCDB() const { return fUseBadZonesFromOCDB; }
+
+  void   SetUseSingleBadChannelsFromOCDB(Bool_t use=kTRUE) { fUseSingleBadChannelsFromOCDB=use; return; }
+  Bool_t GetUseSingleBadChannelsFromOCDB() const { return fUseSingleBadChannelsFromOCDB; }
+
+  void   SetMinFractionOfBadInRoad(Float_t frac=0) { fMinFractionOfBadInRoad=frac; return; }
+  Float_t GetMinFractionOfBadInRoad() const { return fMinFractionOfBadInRoad; }
+
+  void   SetFactorSAWindowSizes(Double_t fact=1.) { fFactorSAWindowSizes=fact; return; }
+  Double_t GetFactorSAWindowSizes() const { return fFactorSAWindowSizes; }
+
+  void SetNLoopsSA(Int_t nl=10) {fNLoopsSA=nl;}
+  Int_t GetNLoopsSA() const { return fNLoopsSA;}
+  void SetPhiLimitsSA(Double_t phimin,Double_t phimax){
+    fMinPhiSA=phimin; fMaxPhiSA=phimax;
+  }
+  Double_t GetMinPhiSA() const {return fMinPhiSA;}
+  Double_t GetMaxPhiSA() const {return fMaxPhiSA;}
+  void SetLambdaLimitsSA(Double_t lambmin,Double_t lambmax){
+    fMinLambdaSA=lambmin; fMaxLambdaSA=lambmax;
+  }
+  Double_t GetMinLambdaSA() const {return fMinLambdaSA;}
+  Double_t GetMaxLambdaSA() const {return fMaxLambdaSA;}
+
+
+  void   SetSAOnePointTracks() { fSAOnePointTracks=kTRUE; return; }
+  Bool_t GetSAOnePointTracks() const { return fSAOnePointTracks; }
 
+  void   SetSAUseAllClusters() { fSAUseAllClusters=kTRUE; return; }
+  Bool_t GetSAUseAllClusters() const { return fSAUseAllClusters; }
 
   void   SetFindV0s(Bool_t find=kTRUE) { fFindV0s=find; return; }
   Bool_t GetFindV0s() const { return fFindV0s; }
 
-  void SetLayersParameters();
+  void   SetLayersParameters();
+
+  void   SetLayerToSkip(Int_t i) { fLayersToSkip[i]=1; return; }
+  Int_t  GetLayersToSkip(Int_t i) const { return fLayersToSkip[i]; }
+
+  void   SetUseUnfoldingInClusterFinderSPD(Bool_t use=kTRUE) { fUseUnfoldingInClusterFinderSPD=use; return; }
+  Bool_t GetUseUnfoldingInClusterFinderSPD() const { return fUseUnfoldingInClusterFinderSPD; }
+  void   SetUseUnfoldingInClusterFinderSDD(Bool_t use=kTRUE) { fUseUnfoldingInClusterFinderSDD=use; return; }
+  Bool_t GetUseUnfoldingInClusterFinderSDD() const { return fUseUnfoldingInClusterFinderSDD; }
+  void   SetUseUnfoldingInClusterFinderSSD(Bool_t use=kTRUE) { fUseUnfoldingInClusterFinderSSD=use; return; }
+  Bool_t GetUseUnfoldingInClusterFinderSSD() const { return fUseUnfoldingInClusterFinderSSD; }
+
+  void   SetUseChargeMatchingInClusterFinderSSD(Bool_t use=kTRUE) { fUseChargeMatchingInClusterFinderSSD=use; return; }
+  Bool_t GetUseChargeMatchingInClusterFinderSSD() const { return fUseChargeMatchingInClusterFinderSSD; }
+
   //
 
   enum {fgkMaxClusterPerLayer=70000}; //7000*10;   // max clusters per layer
@@ -170,6 +248,8 @@ class AliITSRecoParam : public TObject
   static const Double_t fgkSPDdetzlength;     // SPD ladder length in z
   static const Double_t fgkSPDdetxlength;     // SPD ladder length in x
 
+  Int_t fLayersToSkip[AliITSgeomTGeo::kNLayers]; // array with layers to skip (MI,SA)
+
   // spatial resolutions of the detectors
   Double_t fSigmaY2[AliITSgeomTGeo::kNLayers]; // y
   Double_t fSigmaZ2[AliITSgeomTGeo::kNLayers]; // z
@@ -185,6 +265,8 @@ class AliITSRecoParam : public TObject
   Double_t fNSigma2RoadYC; // y
   Double_t fNSigma2RoadZNonC; // z
   Double_t fNSigma2RoadYNonC; // y
+
+  Double_t fRoadMisal; // [cm] increase of road for misalignment (MI)
   //
   // chi2 cuts
   Double_t fMaxChi2PerCluster[AliITSgeomTGeo::kNLayers-1]; // max chi2 for MIP (MI)
@@ -230,11 +312,46 @@ class AliITSRecoParam : public TObject
   Int_t fUseTGeoInTracker; // use TGeo to get material budget in tracker MI
   Bool_t fAllowSharedClusters; // if kFALSE don't set to kITSin tracks with shared clusters (MI)
   Int_t fClusterErrorsParam; // parametrization for cluster errors (MI), see AliITSRecoParam::GetError()
+  Float_t fClusterMisalError; // [cm] additional error on cluster pos. due to misalignment (MI,SA)
+
   Bool_t fUseAmplitudeInfo[AliITSgeomTGeo::kNLayers]; // use cluster charge in cluster-track matching (SDD,SSD) (MI)
+  // Plane Efficiency evaluation
+  Bool_t fComputePlaneEff;  // flag to enable computation of PlaneEfficiency
+  Bool_t fHistoPlaneEff;  // flag to enable auxiliary PlaneEff histograms (e.g. residual distributions)
+  Int_t  fIPlanePlaneEff; // index of the plane (in the range [0,5])  to study the efficiency
+  Bool_t fReadPlaneEffFromOCDB; // enable initial reading of Plane Eff statistics from OCDB
+                               // The analized events would be used to increase the statistics
+  Double_t fMinPtPlaneEff;  // minimum p_t of the track to be used for Plane Efficiency evaluation
+  Int_t  fMaxMissingClustersPlaneEff;  // max n. of (other) layers without a cluster associated to the track
+  Bool_t fRequireClusterInOuterLayerPlaneEff; // if kTRUE, then only tracks with an associated cluster on the closest
+  Bool_t fRequireClusterInInnerLayerPlaneEff; // outer/inner layer are used. It has no effect for outermost/innermost layer
+  Bool_t fOnlyConstraintPlaneEff;  // if kTRUE, use only constrained tracks at primary vertex for Plane Eff.
+
+  Bool_t fExtendedEtaAcceptance;  // enable jumping from TPC to SPD at large eta (MI)
+  Bool_t fUseBadZonesFromOCDB; // enable using OCDB info on dead modules and chips (MI)
+  Bool_t fUseSingleBadChannelsFromOCDB; // enable using OCDB info on bad single SPD pixels and SDD anodes (MI)
+  Float_t fMinFractionOfBadInRoad; // to decide whether to skip the layer (MI)
+  Bool_t fAllowProlongationWithEmptyRoad; // allow to prolong even if road is empty (MI)
+  Double_t fFactorSAWindowSizes; // larger window sizes in SA
+  Int_t fNLoopsSA;               // number of loops in tracker SA
+  Double_t fMinPhiSA;               // minimum phi value for SA windows
+  Double_t fMaxPhiSA;               // maximum phi value for SA windows
+  Double_t fMinLambdaSA;            // minimum lambda value for SA windows
+  Double_t fMaxLambdaSA;            // maximum lambda value for SA windows
+
+  Bool_t fSAOnePointTracks; // one-cluster tracks in SA (only for cosmics!)
+  Bool_t fSAUseAllClusters; // do not skip clusters used by MI (same track twice in AliESDEvent!)
 
   Bool_t fFindV0s;  // flag to enable V0 finder (MI)
 
-  ClassDef(AliITSRecoParam,1) // ITS reco parameters
+  // cluster unfolding in ITS cluster finders
+  Bool_t fUseUnfoldingInClusterFinderSPD; // SPD
+  Bool_t fUseUnfoldingInClusterFinderSDD; // SDD
+  Bool_t fUseUnfoldingInClusterFinderSSD; // SSD
+
+  Bool_t fUseChargeMatchingInClusterFinderSSD; // SSD
+
+  ClassDef(AliITSRecoParam,6) // ITS reco parameters
 };
 
 #endif