From 62732aebe071cb2140dc4f56f4e42e7eab5c24fb Mon Sep 17 00:00:00 2001 From: Alexandru Bercuci <abercuci@niham.nipne.ro> Date: Tue, 22 Feb 2022 10:01:54 +0200 Subject: [PATCH] add explanation to the LOG(fatal) as requested in https://redmine.cbm.gsi.de/issues/2373 --- reco/detectors/trd/CbmTrdClusterFinder.cxx | 2 +- reco/detectors/trd/CbmTrdHitProducer.cxx | 2 +- reco/detectors/trd/qa/CbmTrdHitDensityQa.cxx | 2 +- reco/detectors/trd/qa/CbmTrdOccupancyQa.cxx | 2 +- reco/detectors/trd/qa/CbmTrdQa.cxx | 2 +- reco/detectors/trd/qa/CbmTrdRecoQa.cxx | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/reco/detectors/trd/CbmTrdClusterFinder.cxx b/reco/detectors/trd/CbmTrdClusterFinder.cxx index 6d457f2867..f3caa4eb49 100644 --- a/reco/detectors/trd/CbmTrdClusterFinder.cxx +++ b/reco/detectors/trd/CbmTrdClusterFinder.cxx @@ -218,7 +218,7 @@ InitStatus CbmTrdClusterFinder::Init() CbmDigiManager::Instance()->Init(); - if (!CbmDigiManager::Instance()->IsPresent(ECbmModuleId::kTrd)) LOG(fatal); + if (!CbmDigiManager::Instance()->IsPresent(ECbmModuleId::kTrd)) LOG(fatal) << GetName() << "Missing Trd digi branch."; fClusters = new TClonesArray("CbmTrdCluster", 100); ioman->Register("TrdCluster", "TRD", fClusters, IsOutputBranchPersistent("TrdCluster")); diff --git a/reco/detectors/trd/CbmTrdHitProducer.cxx b/reco/detectors/trd/CbmTrdHitProducer.cxx index 55f76f1360..79459969e9 100644 --- a/reco/detectors/trd/CbmTrdHitProducer.cxx +++ b/reco/detectors/trd/CbmTrdHitProducer.cxx @@ -243,7 +243,7 @@ InitStatus CbmTrdHitProducer::Init() } CbmDigiManager::Instance()->Init(); - if (!CbmDigiManager::Instance()->IsPresent(ECbmModuleId::kTrd)) LOG(fatal); + if (!CbmDigiManager::Instance()->IsPresent(ECbmModuleId::kTrd)) LOG(fatal) << GetName() << "Missing Trd digi branch."; fClusters = (TClonesArray*) ioman->GetObject("TrdCluster"); if (!fClusters) { diff --git a/reco/detectors/trd/qa/CbmTrdHitDensityQa.cxx b/reco/detectors/trd/qa/CbmTrdHitDensityQa.cxx index 5195aa4365..b7235b61c5 100644 --- a/reco/detectors/trd/qa/CbmTrdHitDensityQa.cxx +++ b/reco/detectors/trd/qa/CbmTrdHitDensityQa.cxx @@ -139,7 +139,7 @@ InitStatus CbmTrdHitDensityQa::Init() FairRootManager* ioman = FairRootManager::Instance(); CbmDigiManager::Instance()->Init(); - if (!CbmDigiManager::Instance()->IsPresent(ECbmModuleId::kTrd)) LOG(fatal); + if (!CbmDigiManager::Instance()->IsPresent(ECbmModuleId::kTrd)) LOG(fatal) << GetName() << "Missing Trd digi branch."; fClusters = (TClonesArray*) ioman->GetObject("TrdCluster"); diff --git a/reco/detectors/trd/qa/CbmTrdOccupancyQa.cxx b/reco/detectors/trd/qa/CbmTrdOccupancyQa.cxx index dbb9cdb898..f1ad48baa4 100644 --- a/reco/detectors/trd/qa/CbmTrdOccupancyQa.cxx +++ b/reco/detectors/trd/qa/CbmTrdOccupancyQa.cxx @@ -153,7 +153,7 @@ InitStatus CbmTrdOccupancyQa::Init() FairRootManager* ioman = FairRootManager::Instance(); CbmDigiManager::Instance()->Init(); - if (!CbmDigiManager::Instance()->IsPresent(ECbmModuleId::kTrd)) LOG(fatal); + if (!CbmDigiManager::Instance()->IsPresent(ECbmModuleId::kTrd)) LOG(fatal) << GetName() << "Missing Trd digi branch."; fClusters = (TClonesArray*) ioman->GetObject("TrdCluster"); if (!fClusters) { diff --git a/reco/detectors/trd/qa/CbmTrdQa.cxx b/reco/detectors/trd/qa/CbmTrdQa.cxx index dc4ce9e17e..4825d51342 100644 --- a/reco/detectors/trd/qa/CbmTrdQa.cxx +++ b/reco/detectors/trd/qa/CbmTrdQa.cxx @@ -353,7 +353,7 @@ InitStatus CbmTrdQa::Init() fP = false; } CbmDigiManager::Instance()->Init(); - if (!CbmDigiManager::Instance()->IsPresent(ECbmModuleId::kTrd)) LOG(fatal); + if (!CbmDigiManager::Instance()->IsPresent(ECbmModuleId::kTrd)) LOG(fatal) << GetName() << "Missing Trd digi branch."; fClusters = (TClonesArray*) ioman->GetObject("TrdCluster"); if (!fClusters) { diff --git a/reco/detectors/trd/qa/CbmTrdRecoQa.cxx b/reco/detectors/trd/qa/CbmTrdRecoQa.cxx index 58b646fc4e..25316e3e22 100644 --- a/reco/detectors/trd/qa/CbmTrdRecoQa.cxx +++ b/reco/detectors/trd/qa/CbmTrdRecoQa.cxx @@ -104,7 +104,7 @@ InitStatus CbmTrdRecoQa::Init() } CbmDigiManager::Instance()->Init(); - if (!CbmDigiManager::Instance()->IsPresent(ECbmModuleId::kTrd)) LOG(fatal); + if (!CbmDigiManager::Instance()->IsPresent(ECbmModuleId::kTrd)) LOG(fatal) << GetName() << "Missing Trd digi branch."; // Get pointer to TRD point array -- GitLab