Skip to content
Snippets Groups Projects
Commit 9ed5361a authored by Dominik Smith's avatar Dominik Smith
Browse files

Fixed an issue whereby CbmBuildEventsQA was unable to deal with digi matches...

Fixed an issue whereby CbmBuildEventsQA was unable to deal with digi matches without links (noise). Added CbmBuildEventsQA to /macro/run/run_reco.C.
parent e11ebc1c
No related branches found
No related tags found
1 merge request!222Event builder new
......@@ -206,6 +206,8 @@ void run_reco(TString input = "",
evBuildRaw->SetFixedTimeWindow(5500.);
evBuildRaw->SetTriggerMinNumberSts(50);
evBuildRaw->SetUseBaseMuchDigi(kTRUE);
run->AddTask(evBuildRaw);
std::cout << "-I- " << myName << ": Added task " << evBuildRaw->GetName()
<< std::endl;
......@@ -296,9 +298,12 @@ void run_reco(TString input = "",
} //? event-based reco
// ------------------------------------------------------------------------
//CbmBuildEventsQA* evBuildQA = new CbmBuildEventsQA();
//run->AddTask(evBuildQA);
// ----------- QA for raw event builder -----------------------------------
if (eventBased) {
CbmBuildEventsQA* evBuildQA = new CbmBuildEventsQA();
run->AddTask(evBuildQA);
}
// ------------------------------------------------------------------------
// ----- Local reconstruction in MVD ----------------------------------
if (useMvd) {
......@@ -491,7 +496,6 @@ void run_reco(TString input = "",
} //? time-based reco
// ----- Parameter database --------------------------------------------
std::cout << std::endl << std::endl;
std::cout << "-I- " << myName << ": Set runtime DB" << std::endl;
......
......@@ -71,10 +71,6 @@ void CbmBuildEventsQA::Exec(Option_t*) {
Int_t nLinks = 0;
Int_t nLinksCorrect = 0;
//LOG(info) << GetName() << ": Detector "
// << CbmModuleList::GetModuleNameCaps(system)
// << ", nDigis = " << nDigis;
// --- Loop over digis
for (Int_t iDigi = 0; iDigi < nDigis; iDigi++) {
UInt_t index = event->GetIndex(GetDigiType(system), iDigi);
......@@ -83,11 +79,10 @@ void CbmBuildEventsQA::Exec(Option_t*) {
assert(digiMatch);
// --- Check MC event of digi match
if (digiMatch->GetMatchedLink().GetEntry() == mcEventNr) nDigiCorrect++;
//if (system == ECbmModuleId::kTof){ dev
// LOG(info) << "index = " <<index;
//}
if (digiMatch->GetNofLinks()) {
if (digiMatch->GetMatchedLink().GetEntry() == mcEventNr)
nDigiCorrect++;
}
for (Int_t iLink = 0; iLink < digiMatch->GetNofLinks(); iLink++) {
Int_t entry = digiMatch->GetLink(iLink).GetEntry();
......
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