// 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){
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;
}
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"<<
// 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
+ }
//
//
//
}
if (AliTPCReconstructor::StreamLevel()>0) {
- fDebugStreamer = new TTreeSRedirector("TPCdebug.root");
+ fDebugStreamer = new TTreeSRedirector("TPCdebug.root","recreate");
}
//
fSeedsPool = new TClonesArray("AliTPCseed",1000);