Skip to content
Snippets Groups Projects
Commit 6c7bfa10 authored by Sergey Gorbunov's avatar Sergey Gorbunov
Browse files

Ca: comment out an unused pointer to the TimeSlice object to avoid assertions...

Ca: comment out an unused pointer to the TimeSlice object to avoid assertions in event-by-event mcbm processing
parent a525d540
No related branches found
No related tags found
1 merge request!1593Ca: fix contradictory cuts on min n hits
Pipeline #26672 failed
......@@ -40,7 +40,7 @@ void TimeSliceReader::Clear()
fvbUseDet.fill(false);
// Input branches
fpBrTimeSlice = nullptr;
// fpBrTimeSlice = nullptr;
fpParameters = nullptr;
fvpBrHits.fill(nullptr);
......@@ -76,9 +76,9 @@ void TimeSliceReader::CheckInit() const
throw std::logic_error("Hit index container was not defined");
}
if (!fpBrTimeSlice) {
throw std::logic_error("Time slice branch is unavailable");
}
//if (!fpBrTimeSlice) {
//throw std::logic_error("Time slice branch is unavailable");
//}
for (int iDet = 0; iDet < static_cast<int>(ca::EDetectorID::kEND); ++iDet) {
if (fvbUseDet[iDet] && !fvpBrHits[iDet]) {
......@@ -130,7 +130,7 @@ try {
auto* pFairManager = FairRootManager::Instance();
LOG_IF(fatal, !pFairManager) << "TimeSliceReader: FairRootManager was not defined";
fpBrTimeSlice = dynamic_cast<CbmTimeSlice*>(pFairManager->GetObject("TimeSlice."));
// fpBrTimeSlice = dynamic_cast<CbmTimeSlice*>(pFairManager->GetObject("TimeSlice."));
// Init branches
auto InitHitBranch = [&](ca::EDetectorID detID, const char* branchName) {
......
......@@ -165,7 +165,7 @@ namespace cbm::ca
DetIdArr_t<const CbmTrackingDetectorInterfaceBase*> fvpDetInterface = {{nullptr}};
// Input data branches
CbmTimeSlice* fpBrTimeSlice = nullptr; ///< Pointer to the TS object
// CbmTimeSlice* fpBrTimeSlice = nullptr; ///< Pointer to the TS object
CbmEvent* fpEvent = nullptr; ///< Pointer to the event object
DetIdArr_t<TClonesArray*> fvpBrHits = {{nullptr}}; ///< Input branch for hits
......
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