]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Small modifications:
authormivanov <mivanov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 21 Sep 2013 08:04:33 +0000 (08:04 +0000)
committermivanov <mivanov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 21 Sep 2013 08:04:33 +0000 (08:04 +0000)
1.) debug streamer had to be explicitly open in recreate mode
2.) default values of correction factors HVandPT (1 instead of 0)

M       Rec/AliTPCtracker.cxx              - Debug streamer open in the recreate mode
M       Rec/AliTPCclusterer.cxx            - Debug streamer only in case of given bitmask active
M       Rec/AliTPCseed.cxx                 - Protection against 0 per chamber calibration
M       Base/AliTPCcalibDB.cxx             - Default value for the HVandPT correction is 1 as it is multiplicative correction factor

TPC/Base/AliTPCcalibDB.cxx
TPC/Rec/AliTPCclusterer.cxx
TPC/Rec/AliTPCseed.cxx
TPC/Rec/AliTPCtracker.cxx

index 86c95ad355b2d9cb8b833ad67fe6dad1af9f251c..ce8456274affedc36a3a1bb2f192961ab7d2e7b4 100644 (file)
@@ -2430,9 +2430,9 @@ Double_t AliTPCcalibDB::GetGainCorrectionHVandPT(Int_t timeStamp, Int_t run, Int
   //  MC:     Qcorr  = Qorig*GetGainCorrectionHVandPT   ( in AliTPC.cxx ) 
   //  Rec:    dEdx   = dEdx/GetGainCorrectionHVandPT    ( in aliTPCseed.cxx )
   //
-  static TVectorD gGainCorrection(72);
-  static TVectorD gGainCorrectionPT(72);
-  static TVectorD gGainCorrectionHV(72);
+  static Float_t gGainCorrection[72];
+  static Float_t gGainCorrectionPT[72];
+  static Float_t gGainCorrectionHV[72];
   static Int_t    gTimeStamp=0;
   static Bool_t   hasTimeDependent=kFALSE; 
   if ( TMath::Abs(timeStamp-gTimeStamp)> deltaCache){    
@@ -2455,17 +2455,17 @@ Double_t AliTPCcalibDB::GetGainCorrectionHVandPT(Int_t timeStamp, Int_t run, Int
       if (graphGHV) deltaGHV = graphGHV->GetY()[isec]*deltaHV;
       if (graphGPT) deltaGPT = graphGPT->GetY()[isec]*GetPTRelative(timeStamp,run,0);
       gGainCorrection[isec]=(1.+deltaGHV)*(1.+deltaGPT);
-      gGainCorrectionPT[isec]=deltaGPT;
-      gGainCorrectionHV[isec]=deltaGHV;
+      gGainCorrectionPT[isec]=1+deltaGPT;
+      gGainCorrectionHV[isec]=1+deltaGHV;
     }    
     gTimeStamp=timeStamp;
   }
   if (mode==0){
     if (hasTimeDependent) return gGainCorrection[sector];
-    if (!hasTimeDependent) return 0;
+    if (!hasTimeDependent) return 1;
   }
   if (mode==1) return gGainCorrection[sector];
   if (mode==2) return gGainCorrectionPT[sector];
   if (mode==3) return gGainCorrectionHV[sector];
-  return 0;
+  return 1;
 }
index 8be2bfeb48978f09a0003a39799d12f6a69ef108..a8afecdd90b1fe2ce66462665cf5b5d373a93483 100644 (file)
@@ -648,8 +648,8 @@ void AliTPCclusterer::AddCluster(AliTPCclusterMI &c, Float_t * /*matrix*/, Int_t
   if (!fRecoParam->DumpSignal()) {
     cl->SetInfo(0);
   }
-  const Int_t kClusterStream=101; // stream level should be per action - to be added to the AliTPCReconstructor
-  if (AliTPCReconstructor::StreamLevel()&kClusterStream !=0) {
+  const Int_t kClusterStream=128; // stream level should be per action - to be added to the AliTPCReconstructor
+  if ( (AliTPCReconstructor::StreamLevel()&kClusterStream)==kClusterStream) {
     Float_t xyz[3];
     cl->GetGlobalXYZ(xyz);
      (*fDebugStreamer)<<"Clusters"<<
index 544b3559d7cd3437fcd9d7e9f813960b146b3450..24990739f78edfd57f9067798a9b849258fc5ec6 100644 (file)
@@ -1319,7 +1319,10 @@ Float_t  AliTPCseed::CookdEdxAnalytical(Double_t low, Double_t up, Int_t type, I
     // chamber-by-chamber equalization outside gain map
     //
     Float_t gainChamber = 1;
-    if (grChamberGain[ipad] && recoParam->GetUseGainCorrectionTime()>0) gainChamber = grChamberGain[ipad]->Eval(cluster->GetDetector());
+    if (grChamberGain[ipad] && recoParam->GetUseGainCorrectionTime()>0) {
+      gainChamber = grChamberGain[ipad]->Eval(cluster->GetDetector());
+      if (gainChamber==0) gainChamber=1; // in case old calibation was used before use no correction
+    }
     //
     //
     //
index 4c9b613ccfacbc9c470c69d729822628ee21d3a5..9959b330d98d2d6c350fb4289021fdcf1ed52d0b 100644 (file)
@@ -460,7 +460,7 @@ AliTracker(),
   }
 
   if (AliTPCReconstructor::StreamLevel()>0) {
-    fDebugStreamer = new TTreeSRedirector("TPCdebug.root");
+    fDebugStreamer = new TTreeSRedirector("TPCdebug.root","recreate");
   }
   //
   fSeedsPool = new TClonesArray("AliTPCseed",1000);