Skip to content
Snippets Groups Projects
Commit edb6cf48 authored by Pierre-Alain Loizeau's avatar Pierre-Alain Loizeau
Browse files

Add TOF Hit to Digi match array alt name in MatchRecoToMC

parent b47c3183
No related branches found
No related tags found
1 merge request!227Add catching of TOF Hit to Digi match altermative name in MatchRecoToMc
...@@ -397,7 +397,23 @@ void CbmMatchRecoToMC::ReadAndCreateDataBranches() { ...@@ -397,7 +397,23 @@ void CbmMatchRecoToMC::ReadAndCreateDataBranches() {
// TOF // TOF
fTofPoints = mcManager->InitBranch("TofPoint"); fTofPoints = mcManager->InitBranch("TofPoint");
fTofHitDigiMatches = (TClonesArray*) ioman->GetObject("TofHitDigiMatch"); fTofHitDigiMatches =
static_cast<TClonesArray*>(ioman->GetObject("TofHitDigiMatch"));
/// FIXME: Temporary fix to catch all versions of the TOF Hit to Digi Match
/// array. To be removed after a full review of the TOF reco
if (nullptr == fTofHitDigiMatches) {
fTofHitDigiMatches =
static_cast<TClonesArray*>(ioman->GetObject(" TofCalDigiMatch"));
if (nullptr == fTofHitDigiMatches) {
LOG(warning) << "CbmMatchRecoToMC::ReadAndCreateDataBranches()"
<< " no TOF Hit to Digi array found!";
} // if (nullptr == fTofHitDigiMatches)
else {
LOG(info)
<< "CbmMatchRecoToMC: Using alternative TOF Hit to Digi match array!";
} // else of if (nullptr == fTofHitDigiMatches)
} // if (nullptr == fTofHitDigiMatches)
fTofHits = static_cast<TClonesArray*>(ioman->GetObject("TofHit")); fTofHits = static_cast<TClonesArray*>(ioman->GetObject("TofHit"));
if (nullptr != fTofHits) { if (nullptr != fTofHits) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment