diff --git a/reco/detectors/tof/CbmTofEventClusterizer.cxx b/reco/detectors/tof/CbmTofEventClusterizer.cxx index 2536c3e4c6a203cb2bbbf1c438c7699c4847d4be..72791c6f3c94057a3357091abf15b7098b58841e 100644 --- a/reco/detectors/tof/CbmTofEventClusterizer.cxx +++ b/reco/detectors/tof/CbmTofEventClusterizer.cxx @@ -983,8 +983,8 @@ Bool_t CbmTofEventClusterizer::InitCalibParameter() Vscal = (fChannelInfo->GetSizey() + fdModifySigvel) / fChannelInfo->GetSizey(); fDigiBdfPar->SetSigVel(iSmType, iSm, iRpc, fDigiBdfPar->GetSigVel(iSmType, iSm, iRpc) * Vscal); - LOG(info) << "Modify " << iSmType << iSm << iRpc << " Svel by " << Vscal << " to " - << fDigiBdfPar->GetSigVel(iSmType, iSm, iRpc); + LOG(debug) << "Modify " << iSmType << iSm << iRpc << " Svel by " << Vscal << " to " + << fDigiBdfPar->GetSigVel(iSmType, iSm, iRpc); } else { LOG(warn) << "Svel modifier histo not found in " << curdir->GetName(); @@ -1032,13 +1032,13 @@ Bool_t CbmTofEventClusterizer::InitCalibParameter() //if(iSmType==0 && iSm==4 && iRpc==2 && iCh==26) if (iSmType == 0 && iSm == 2 && iRpc == 0) //if (iSmType == 9 && iSm == 0 && iRpc == 0 && iCh == 10) // select specific channel - LOG(info) << "InitCalibParameter:" - << " TSRC " << iSmType << iSm << iRpc << iCh - << Form(": YMean %6.3f, TYOff %6.3f, TMean %6.3f", YMean, dTYOff, TMean) << " -> " - << Form(" TOff %f, %f, TotG %f, %f ", fvCPTOff[iSmType][iSm * iNbRpc + iRpc][iCh][0], - fvCPTOff[iSmType][iSm * iNbRpc + iRpc][iCh][1], - fvCPTotGain[iSmType][iSm * iNbRpc + iRpc][iCh][0], - fvCPTotGain[iSmType][iSm * iNbRpc + iRpc][iCh][1]); + LOG(debug) << "InitCalibParameter:" + << " TSRC " << iSmType << iSm << iRpc << iCh + << Form(": YMean %6.3f, TYOff %6.3f, TMean %6.3f", YMean, dTYOff, TMean) << " -> " + << Form(" TOff %f, %f, TotG %f, %f ", fvCPTOff[iSmType][iSm * iNbRpc + iRpc][iCh][0], + fvCPTOff[iSmType][iSm * iNbRpc + iRpc][iCh][1], + fvCPTotGain[iSmType][iSm * iNbRpc + iRpc][iCh][0], + fvCPTotGain[iSmType][iSm * iNbRpc + iRpc][iCh][1]); //<< ", NbinTot " << iNbinTot; TH1D* htempWalk0 = (TH1D*) gDirectory->FindObjectAny( @@ -1069,10 +1069,10 @@ Bool_t CbmTofEventClusterizer::InitCalibParameter() fvCPWalk[iSmType][iSm * iNbRpc + iRpc][iCh][0][iBin] = htempWalk0->GetBinContent(iBin + 1); fvCPWalk[iSmType][iSm * iNbRpc + iRpc][iCh][1][iBin] = htempWalk1->GetBinContent(iBin + 1); if (iSmType == 0 && iSm == 0 && iRpc == 2 && iCh == 15) // debugging - LOG(info) << Form("Read new SmT%01d_sm%03d_rpc%03d_Ch%03d bin %d cen %f walk %f %f", iSmType, iSm, - iRpc, iCh, iBin, htempWalk0->GetBinCenter(iBin + 1), - fvCPWalk[iSmType][iSm * iNbRpc + iRpc][iCh][0][iBin], - fvCPWalk[iSmType][iSm * iNbRpc + iRpc][iCh][1][iBin]); + LOG(debug) << Form("Read new SmT%01d_sm%03d_rpc%03d_Ch%03d bin %d cen %f walk %f %f", iSmType, iSm, + iRpc, iCh, iBin, htempWalk0->GetBinCenter(iBin + 1), + fvCPWalk[iSmType][iSm * iNbRpc + iRpc][iCh][0][iBin], + fvCPWalk[iSmType][iSm * iNbRpc + iRpc][iCh][1][iBin]); if (5 == iSmType || 8 == iSmType) { // Pad structure, enforce consistency if (fvCPWalk[iSmType][iSm * iNbRpc + iRpc][iCh][1][iBin] != fvCPWalk[iSmType][iSm * iNbRpc + iRpc][iCh][0][iBin]) { @@ -1091,15 +1091,15 @@ Bool_t CbmTofEventClusterizer::InitCalibParameter() } } // look for TcorY corrections - LOG(info) << "Check for TCorY in " << gDirectory->GetName(); + LOG(debug) << "Check for TCorY in " << gDirectory->GetName(); TH1* hTCorY = (TH1*) gDirectory->FindObjectAny(Form("calXY_SmT%d_sm%03d_rpc%03d_TOff_z_all_TcorY", iSmType, iSm, iRpc)); if (NULL != hTCorY) { fvCPTOffYBinWidth[iSmType][iSm * iNbRpc + iRpc] = hTCorY->GetBinWidth(0); fvCPTOffYRange[iSmType][iSm * iNbRpc + iRpc] = hTCorY->GetXaxis()->GetXmax(); - LOG(info) << "Initialize TCorY: TSR " << iSmType << iSm << iRpc << ", Bwid " - << fvCPTOffYBinWidth[iSmType][iSm * iNbRpc + iRpc] << ", Range " - << fvCPTOffYRange[iSmType][iSm * iNbRpc + iRpc]; + LOG(debug) << "Initialize TCorY: TSR " << iSmType << iSm << iRpc << ", Bwid " + << fvCPTOffYBinWidth[iSmType][iSm * iNbRpc + iRpc] << ", Range " + << fvCPTOffYRange[iSmType][iSm * iNbRpc + iRpc]; fvCPTOffY[iSmType][iSm * iNbRpc + iRpc].resize(hTCorY->GetNbinsX()); for (int iB = 0; iB < hTCorY->GetNbinsX(); iB++) { //LOG(info) << "iB " << iB <<": " << hTCorY->GetBinContent(iB+1); @@ -1197,10 +1197,10 @@ Bool_t CbmTofEventClusterizer::LoadGeometry() Int_t iSmType = CbmTofAddress::GetSmType(iUniqueId); Int_t iSmId = CbmTofAddress::GetSmId(iUniqueId); Int_t iRpcId = CbmTofAddress::GetRpcId(iUniqueId); - LOG(info) << " DetIndx " << iDetIndx << "(" << iNbDet << "), TSR " << iSmType << iSmId << iRpcId << " => UniqueId " - << Form("0x%08x ", iUniqueId) - << Form(" Svel %6.6f, DeadStrips 0x%08x ", fDigiBdfPar->GetSigVel(iSmType, iSmId, iRpcId), - fvDeadStrips[iDetIndx]); + LOG(debug) << " DetIndx " << iDetIndx << "(" << iNbDet << "), TSR " << iSmType << iSmId << iRpcId << " => UniqueId " + << Form("0x%08x ", iUniqueId) + << Form(" Svel %6.6f, DeadStrips 0x%08x ", fDigiBdfPar->GetSigVel(iSmType, iSmId, iRpcId), + fvDeadStrips[iDetIndx]); Int_t iNbChan = fDigiBdfPar->GetNbChan(iSmType, iRpcId); fvTimeLastDigi[iDetIndx].resize(iNbChan * 2); for (Int_t iCh = 0; iCh < iNbChan * 2; iCh++) @@ -2007,7 +2007,7 @@ Bool_t CbmTofEventClusterizer::CreateHistos() fhMultiTrkProbPos = new TH2D("Clus_MultiTrkProbPos", "Probability of having a cluster with multiple tracks as " "function of position; X [cm]; Y [cm]; Prob. [%]", - 1500, -750, 750, 1000, -500, 500); + 1500, -750, 750, 1000, -500, 500); } // if( kTRUE == fDigiBdfPar->ClustUseTrackId() ) */ gDirectory->cd(oldir->GetPath()); // <= To prevent histos from being sucked in by the param file of the TRootManager! @@ -4018,7 +4018,7 @@ Bool_t CbmTofEventClusterizer::WriteHistos() Double_t dTOff = 0.5 * (fvCPTOff[iSmType][iSm * iNbRpc + iRpc][iCh][0] + fvCPTOff[iSmType][iSm * iNbRpc + iRpc][iCh][1]); - /* + /* Double_t dGain = 0.5 * (fvCPTotGain[iSmType][iSm * iNbRpc + iRpc][iCh][0] + fvCPTotGain[iSmType][iSm * iNbRpc + iRpc][iCh][1]); @@ -6693,7 +6693,7 @@ double CbmTofEventClusterizer::GetLocalX(CbmTofHit* pHit) } //gGeoManager->FindNode(fChannelInfo->GetX(), fChannelInfo->GetY(), fChannelInfo->GetZ()); /* - gGeoManager->MasterToLocal(hitpos,hitpos_local); // transform into local frame + gGeoManager->MasterToLocal(hitpos,hitpos_local); // transform into local frame */ fCellIdGeoMap[iChId]->GetMatrix()->MasterToLocal(hitpos, hitpos_local); return hitpos_local[0]; @@ -6714,7 +6714,7 @@ double CbmTofEventClusterizer::GetLocalY(CbmTofHit* pHit) } //gGeoManager->FindNode(fChannelInfo->GetX(), fChannelInfo->GetY(), fChannelInfo->GetZ()); /* - gGeoManager->MasterToLocal(hitpos,hitpos_local); // transform into local frame + gGeoManager->MasterToLocal(hitpos,hitpos_local); // transform into local frame */ fCellIdGeoMap[iChId]->GetMatrix()->MasterToLocal(hitpos, hitpos_local); return hitpos_local[1];