recoparam is modified to tackle refined clustering
authorbasanta <basanta@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 23 Nov 2010 16:16:16 +0000 (16:16 +0000)
committerbasanta <basanta@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 23 Nov 2010 16:16:16 +0000 (16:16 +0000)
PMD/AliPMDClusterFinder.cxx
PMD/AliPMDRecoParam.cxx
PMD/AliPMDRecoParam.h

index 18d5d27..d335338 100644 (file)
@@ -270,7 +270,25 @@ void AliPMDClusterFinder::Digits2RecPoints(TTree *digitsTree,
       // Int_t cluspar = fRecoParam->GetPbPbParam()->GetClusteringParam();
       Int_t cluspar = fRecoParam->GetPPParam()->GetClusteringParam();
       // Int_t cluspar = fRecoParam->GetCosmicParam()->GetClusteringParam();
-
+      
+      //_______________________________________________________// 
+      //Added to switch Refine and crude Clustering - satya//
+      // temporary solution - will be sorted out later
+      cluspar = 1;
+      static AliPMDRecoParam *reconp = NULL;
+      reconp = (AliPMDRecoParam*)AliPMDReconstructor::GetRecoParam();
+      if(!reconp) {
+       cluspar = 1;
+      } 
+      else { 
+
+      if( reconp->GetClusteringParam() == 1) 
+       cluspar = 1;
+      if( reconp->GetClusteringParam() == 2) 
+       cluspar = 2;
+      }
+      //_______________________________________________________// 
+      
       pmdclust->SetClusteringParam(cluspar);
 
       Float_t encut = 4.;
@@ -574,6 +592,24 @@ void AliPMDClusterFinder::Digits2RecPoints(AliRawReader *rawReader,
          // Int_t cluspar = fRecoParam->GetPbPbParam()->GetClusteringParam();
          Int_t cluspar = fRecoParam->GetPPParam()->GetClusteringParam();
          // Int_t cluspar = fRecoParam->GetCosmicParam()->GetClusteringParam();
+
+         //_______________________________________________________// 
+         //Added to switch Refine and crude Clustering - satya//
+         // temporary solution - will be sorted out later
+         cluspar = 1;
+         static AliPMDRecoParam *reconp = NULL;
+         reconp = (AliPMDRecoParam*)AliPMDReconstructor::GetRecoParam();
+         if(!reconp) {
+           cluspar = 1;
+         } 
+         else { 
+           if( reconp->GetClusteringParam() == 1) 
+             cluspar = 1;
+           if( reconp->GetClusteringParam() == 2) 
+             cluspar = 2;
+         }
+         //_______________________________________________________// 
+
          pmdclust->SetClusteringParam(cluspar);
          Float_t encut = fNoiseCut->GetNoiseCut(imod);
 
index 3b1f3f8..75a7ee2 100644 (file)
@@ -115,3 +115,27 @@ void AliPMDRecoParam::PrintParameters() const
   AliInfo(Form(" Clustering parameter : %d", fPmdClusteringParam));
 
 }
+
+//_____________________________________________________________________________
+AliPMDRecoParam *AliPMDRecoParam::GetHighFluxParam(){
+  //
+  // set default reconstruction parameters for PbPb.
+  //
+  AliPMDRecoParam *param = new AliPMDRecoParam();
+
+  param->fPmdClusteringParam = 2;
+
+  return param;
+}
+
+//_____________________________________________________________________________
+AliPMDRecoParam *AliPMDRecoParam::GetLowFluxParam(){
+  //
+  // set default reconstruction parameters for PP.
+  //
+  AliPMDRecoParam *param = new AliPMDRecoParam();
+
+  param->fPmdClusteringParam = 1;
+
+  return param;
+}
index df1e1fe..62f0fbf 100644 (file)
@@ -23,16 +23,22 @@ class AliPMDRecoParam : public AliDetectorRecoParam
   virtual void PrintParameters() const;
 
   Int_t GetClusteringParam() const { return fPmdClusteringParam;}
-  void  SetNoiseCut(Int_t cluspar) {fPmdClusteringParam = cluspar;}
+  void  SetClusteringParam(Int_t cluspar) {fPmdClusteringParam = cluspar;}
 
   static   AliPMDRecoParam *GetPbPbParam();   // reco param for PbPb.
   static   AliPMDRecoParam *GetPPParam();     // reco param for PP
   static   AliPMDRecoParam *GetCosmicParam(); // reco param for cosmic muons
+
+  static AliPMDRecoParam *GetLowFluxParam();// make reco parameters for low flux env.
+  static AliPMDRecoParam *GetHighFluxParam();// make reco parameters for high flux env. 
+  
+  
+
  private:
 
   Int_t fPmdClusteringParam;  // Clustering switch to decide crude or refined
 
-  ClassDef(AliPMDRecoParam, 1)
+  ClassDef(AliPMDRecoParam, 2)
 };
 
 #endif