Skip to content
Snippets Groups Projects

Online-QA module for STS raw digis

Merged Sergei Zharko requested to merge s.zharko/cbmroot:online-raw-sts-digi-qa into master
Files
10
+ 12
0
@@ -8,6 +8,7 @@
#include "EventbuildChain.h"
#include "Exceptions.h"
#include "HistogramSender.h"
#include "StsDigiQa.h"
#include "bmon/Unpack.h"
#include "ca/TrackingChain.h"
#include "compat/OpenMP.h"
@@ -115,6 +116,11 @@ void Reco::Init(const Options& opts)
auto walkMap = yaml::ReadFromFile<sts::WalkMap>(Opts().ParamsDir() / "StsWalkMap.yaml");
sts::Unpack::Config cfg{.readout = readout, .walkMap = walkMap};
fStsUnpack = std::make_unique<sts::Unpack>(cfg);
if (fSender != nullptr) {
fStsDigiQa = std::make_unique<sts::DigiQa>(fSender);
fStsDigiQa->RegisterReadoutSetup(readoutSetup);
fStsDigiQa->Init();
}
}
if (Opts().Has(Subsystem::TOF) && Opts().Has(Step::Unpack)) {
@@ -214,6 +220,12 @@ RecoResults Reco::Run(const fles::Timeslice& ts)
QueueEvbuildMetrics(evbuildMonitor);
}
// --- Raw digi QAs
if (fSender != nullptr && Opts().Has(Subsystem::STS) && Opts().Has(Step::Unpack)) {
fStsDigiQa->RegisterDigiData(&digis.fSts);
fStsDigiQa->Exec();
}
sts::HitfinderMonitor stsHitfinderMonitor;
PartitionedSpan<sts::Hit> stsHits;
PartitionedVector<sts::Cluster> stsClusters;
Loading