Skip to content
Snippets Groups Projects
Commit 8983cc58 authored by Sergei Zharko's avatar Sergei Zharko Committed by Sergey Gorbunov
Browse files

CA: adding MC event selection and CbmEvent formalism; QA: added event-based QAexecutionor CbmQaTask

parent d3bd2cd7
No related branches found
No related tags found
1 merge request!1551CA: QA: Added CbmEvent-based execution to the time-slice reader and MC-module of CA
......@@ -44,6 +44,7 @@ void CbmQaTask::Exec(Option_t* /*option*/)
int nEvents = fpBrEvents->GetEntriesFast();
for (int iEvt = 0; iEvt < nEvents; ++iEvt) {
fpCurrentEvent = static_cast<CbmEvent*>(fpBrEvents->At(iEvt));
assert(fpCurrentEvent);
this->InitTimeSlice();
this->FillHistograms();
fNofEvents.SetVal(fNofEvents.GetVal() + 1);
......
......@@ -261,8 +261,11 @@ void MCModule::MatchRecoAndMC()
this->MatchPointsAndHits<ca::EDetectorID::kMuch>();
this->MatchPointsAndHits<ca::EDetectorID::kTrd>();
this->MatchPointsAndHits<ca::EDetectorID::kTof>();
LOG(info) << "DBG 1";
this->MatchRecoAndMCTracks();
LOG(info) << "DBG 2";
this->InitTrackInfo();
LOG(info) << "DBG 3";
for (const auto& trkMC : fpMCData->GetTrackContainer()) {
if (trkMC.IsReconstructable()) {
fMonitor.IncrementCounter(EMonitorKey::kMcTrackReconstructable);
......
......@@ -224,6 +224,9 @@ int cbm::ca::TimeSliceReader::ReadHitsForDetector()
for (int iH = 0; iH < nHitsTot; ++iH) {
int iHext = fpEvent ? fpEvent->GetIndex(kCbmHitType[DetID], iH) : iH;
if (iHext < 0) {
continue;
}
tools::HitRecord hitRecord;
auto* pHit = static_cast<Hit_t*>(fvpBrHits[DetID]->At(iHext));
......
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