diff --git a/analysis/PWGHAD/hadron/CbmHadronAnalysis.cxx b/analysis/PWGHAD/hadron/CbmHadronAnalysis.cxx index 418bf48338a8aecdf6b4a8b5feb3a7e8e8522d93..b0e7e1ffeb2e3c41412f01d0ddf095e685adb9ba 100644 --- a/analysis/PWGHAD/hadron/CbmHadronAnalysis.cxx +++ b/analysis/PWGHAD/hadron/CbmHadronAnalysis.cxx @@ -2986,9 +2986,9 @@ InitStatus CbmHadronAnalysis::Init() { } // if( NULL == fTofDigis) */ - fTofDigiMatchColl = (TClonesArray*) rootMgr->GetObject("TofCalDigiMatch"); + fTofDigiMatchColl = (TClonesArray*) rootMgr->GetObject("TofHitCalDigiMatch"); if (NULL == fTofDigiMatchColl) { - cout << "-I- CbmHadronAnalysis::Init : no TOF CalDigiMatch array!" << endl; + cout << "-I- CbmHadronAnalysis::Init : no TOF HitCalDigiMatch array!" << endl; fTofDigiMatchColl = (TClonesArray*) rootMgr->GetObject("TofDigiMatch"); if (NULL == fTofDigiMatchColl) { cout << "-I- CbmHadronAnalysis::Init : no TOF digiMatch array!" << endl; diff --git a/analysis/detectors/tof/CbmTofAnaTestbeam.cxx b/analysis/detectors/tof/CbmTofAnaTestbeam.cxx index 000f761ee323236361e2ce6cc1ede4358502922a..e0ad9f13d9884cd25bbbc7c47955a8943d4c019e 100644 --- a/analysis/detectors/tof/CbmTofAnaTestbeam.cxx +++ b/analysis/detectors/tof/CbmTofAnaTestbeam.cxx @@ -727,9 +727,9 @@ Bool_t CbmTofAnaTestbeam::LoadGeometry() { Int_t smodule = CbmTofAddress::GetSmId(cellId); Int_t module = CbmTofAddress::GetRpcId(cellId); /* - LOG(debug3) <<Form(" Id 0x%08x ",cellId) - << " got cell " << smtype << ", " << smodule << ", " << module - << ", x-size "<< fChannelInfo->GetSizex() + LOG(debug3) <<Form(" Id 0x%08x ",cellId) + << " got cell " << smtype << ", " << smodule << ", " << module + << ", x-size "<< fChannelInfo->GetSizex() << ", y-size "<< fChannelInfo->GetSizey() ; */ @@ -982,7 +982,7 @@ Bool_t CbmTofAnaTestbeam::RegisterInputs() { return kFALSE; } // if( NULL == fTofHitsColl) - fTofDigiMatchColl = (TClonesArray*) fManager->GetObject("TofCalDigiMatch"); + fTofDigiMatchColl = (TClonesArray*) fManager->GetObject("TofHitCalDigiMatch"); if (NULL == fTofDigiMatchColl) { LOG(error) << "CbmTofAnaTestbeam::RegisterInputs => Could not get the " "Match TClonesArray!!!"; @@ -1153,7 +1153,7 @@ Bool_t CbmTofAnaTestbeam::RegisterInputs() { fTofDigiMatchCollIn = (TClonesArray*) fManager->GetObject("TofDigiMatch"); if (NULL == fTofDigiMatchCollIn) { fTofDigiMatchCollIn = - (TClonesArray*) fManager->GetObject("TofCalDigiMatch"); + (TClonesArray*) fManager->GetObject("TofHitCalDigiMatch"); if (NULL == fTofDigiMatchCollIn) { LOG(error) << "CbmTofAnaTestbeam::RegisterInputs => Could not get the " "Match TClonesArray!!!"; @@ -1222,7 +1222,7 @@ Bool_t CbmTofAnaTestbeam::InitParameters() { if( 0 == fMbsMappingPar ) { LOG(error)<<"CbmTofAnaTestBeam::InitParameters => Could not obtain the TMbsMappingTofPar "; - return kFALSE; + return kFALSE; } */ rtdb->initContainers(ana->GetRunId()); @@ -4369,7 +4369,7 @@ Bool_t CbmTofAnaTestbeam::FillHistos() { Int_t iChId = pHit->GetAddress(); fChannelInfo = fDigiPar->GetCell( iChId ); Int_t iSmType=CbmTofAddress::GetSmType( iDetId ); - + if(NULL == fChannelInfo){ LOG(debug) << Form("CbmTofAnaTestbeam::FillHistos: NULL Channel Pointer for ChId 0x%08x ",iChId) ; @@ -4497,7 +4497,7 @@ Bool_t CbmTofAnaTestbeam::FillHistos() { fChannelInfo2 = fDigiPar->GetCell(iChId2); if (fiMrpcRefAddr == iDetId2 - /* + /* fiMrpcRef == CbmTofAddress::GetSmType( iDetId2 ) && fiMrpcRefSm == CbmTofAddress::GetSmId( iDetId2 ) && fiMrpcRefRpc == CbmTofAddress::GetRpcId( iDetId2 ) @@ -5955,9 +5955,9 @@ Bool_t CbmTofAnaTestbeam::FillHistos() { Double_t hitpos[3], hitpos_local[3]; // DDDDDD for verifying storage concept - /* + /* if(fFindTracks != NULL && fdMemoryTime > 0.) { - // everything else done -> update hit memory to latest hits + // everything else done -> update hit memory to latest hits for( Int_t iHitInd = 0; iHitInd < iNbTofHits; iHitInd++) { pHit = (CbmTofHit*) fTofHitsColl->At( iHitInd ); @@ -5973,7 +5973,7 @@ Bool_t CbmTofAnaTestbeam::FillHistos() { Int_t iBin = fhLHTime[iDet]->FindBin( hitpos_local[0], hitpos_local[1] ); fhLHTime[iDet]->SetBinContent(iBin,pHit->GetTime()-2.); LOG(debug) << Form("Store hit 0x%08x at x %6.3f, y %6.3f, bin %d, time %f in det Id 0x%08x, #%d from x %6.3f, y %6.3f", - pHit->GetAddress(),hitpos_local[0],hitpos_local[1], iBin, + pHit->GetAddress(),hitpos_local[0],hitpos_local[1], iBin, pHit->GetTime(), iDetId, iDet, hitpos[0],hitpos[1] ) ; } @@ -6062,7 +6062,7 @@ Bool_t CbmTofAnaTestbeam::FillHistos() { } /* - if (pTrk->GetNofHits() < NStations - 1) continue; + if (pTrk->GetNofHits() < NStations - 1) continue; // Calculate positions and time in Dut plane Double_t dXex=pTrk->GetFitX(dDutzPos); @@ -6102,14 +6102,14 @@ Bool_t CbmTofAnaTestbeam::FillHistos() { if(it->first > dChi) { vTrkMap[i].insert(--it,std::pair<Double_t, Int_t>(dChi,iTrk)); break; - } + } } } else{ vTrkMap[i].insert(std::pair<Double_t, Int_t>(dChi,iTrk)); } - } // end of Chi condition + } // end of Chi condition if(vTrkMap[i].size()>0) LOG(debug1)<<Form(" TrkMap[%d]: best %d, %6.4f ",i,vTrkMap[i].begin()->second,vTrkMap[i].begin()->first) ; @@ -6117,13 +6117,13 @@ Bool_t CbmTofAnaTestbeam::FillHistos() { if(vHitMap[iTrk].size()>0) LOG(debug)<<Form(" HitMap[%d]: best %d, %6.4f ",iTrk,vHitMap[iTrk].begin()->second,vHitMap[iTrk].begin()->first) ; - } // tracklet loop end + } // tracklet loop end // inspect assignment results Int_t iCheck = 1; while(iCheck-- > 0) for(Int_t iHit=0; static_cast<UInt_t>(iHit)<vDutHit.size(); iHit++) { - if(vTrkMap[iHit].size()>0){ + if(vTrkMap[iHit].size()>0){ Int_t iTrk=vTrkMap[iHit].begin()->second; // hit was assigned best to track iTrk if(vHitMap[iTrk].begin()->second == iHit) { // unique/consistent assignment LOG(debug)<<Form(" Hit %d -> HitMap[%d]: uni %d, %6.4f ", @@ -6399,7 +6399,7 @@ Bool_t CbmTofAnaTestbeam::FillHistos() { dDelTLH = TMath::Log10(pTrk->GetFitT(dDutzPos) - dTLH); /* LOG(info)<< "Got LHTime NbinsX: "<<iNbinsX - << ", Bin "<<iBin<<", Row "<<iRow<<", Col "<<iCol + << ", Bin "<<iBin<<", Row "<<iRow<<", Col "<<iCol << ": TLH "<<dTLH<<", "<<dTLLH ; */ @@ -6871,7 +6871,7 @@ Bool_t CbmTofAnaTestbeam::FillHistos() { /* if( pHit->GetTime()- dTLH > 10.) // debugging check LOG(info)<< Form("invalid time distance for event %d, hit address 0x%08x", - fEvents, pHit->GetAddress()) + fEvents, pHit->GetAddress()) ; */ } diff --git a/reco/detectors/tof/CbmTofCalibrator.cxx b/reco/detectors/tof/CbmTofCalibrator.cxx index 64478fddd5f6c475e4662dc0c4245fec0dcbdd76..e113028f0231b038e4f375ef5873ae136864943b 100644 --- a/reco/detectors/tof/CbmTofCalibrator.cxx +++ b/reco/detectors/tof/CbmTofCalibrator.cxx @@ -94,8 +94,8 @@ InitStatus CbmTofCalibrator::Init() if (NULL == fTofFindTracks) { LOG(warn) << "CbmTofCalibrator: no access to tof tracker "; } // Get Access to MatchCollection - fTofDigiMatchColl = (TClonesArray*) fManager->GetObject("TofCalDigiMatch"); - if (NULL == fTofDigiMatchColl) fTofDigiMatchColl = (TClonesArray*) fManager->GetObject("TofDigiMatch"); + fTofDigiMatchColl = (TClonesArray*) fManager->GetObject("TofHitCalDigiMatch"); + if (NULL == fTofDigiMatchColl) fTofDigiMatchColl = (TClonesArray*) fManager->GetObject("TofHitDigiMatch"); if (NULL == fTofDigiMatchColl) { LOG(error) << "CbmTofCalibrator: no access to DigiMatch "; diff --git a/reco/detectors/tof/CbmTofEventClusterizer.cxx b/reco/detectors/tof/CbmTofEventClusterizer.cxx index b9f75aa3f8ec7355958e363a71d2c50ea4d34e5a..b5069e503a0d535d51814210bc3142fa6b576418 100644 --- a/reco/detectors/tof/CbmTofEventClusterizer.cxx +++ b/reco/detectors/tof/CbmTofEventClusterizer.cxx @@ -5710,7 +5710,7 @@ Bool_t CbmTofEventClusterizer::CalibRawDigis() if (outDigi->GetAddress() == orgDigi->GetAddress()) { CbmMatch digiMatch = (CbmMatch) fTofDigiPointMatches->at(iDigiOrg); ((std::vector<CbmMatch>*) fTofDigiPointMatchesOut)->push_back((CbmMatch) digiMatch); - LOG(DEBUG) << Form("Copy MC Point Match for 0x%08x, time %8.2f from %3d to %3d ", orgDigi->GetAddress(), + LOG(debug) << Form("Copy MC Point Match for 0x%08x, time %8.2f from %3d to %3d ", orgDigi->GetAddress(), outDigi->GetTime(), iDigiOrg, iDigi); bFound = kTRUE; break; diff --git a/reco/detectors/tof/CbmTofHitMaker.cxx b/reco/detectors/tof/CbmTofHitMaker.cxx index cbd72b804ed3d52e6fb6d1b7e068d84f44a7d827..fde5b285e00a22cae4730303b71c869f3fd85e6c 100644 --- a/reco/detectors/tof/CbmTofHitMaker.cxx +++ b/reco/detectors/tof/CbmTofHitMaker.cxx @@ -523,7 +523,7 @@ Bool_t CbmTofHitMaker::RegisterOutputs() { tHitDigiMatchBranchName = "ATofDigiMatch"; } else { tHitBranchName = "TofHit"; - tHitDigiMatchBranchName = "TofCalDigiMatch"; + tHitDigiMatchBranchName = "TofHitCalDigiMatch"; } if (NULL == fEventsColl) {