Skip to content
Snippets Groups Projects

QA for digi events. Checks the digi time distribution within the event.

Merged Volker Friese requested to merge v.friese/cbmroot:eventQa into master
Files
3
+ 15
0
@@ -6,6 +6,7 @@
#include "CbmSourceTs.h"
#include "CbmTaskBuildEvents.h"
#include "CbmTaskDigiEventQa.h"
#include "CbmTaskTriggerDigi.h"
#include "CbmTaskUnpack.h"
#include "CbmTsEventHeader.h"
@@ -14,6 +15,9 @@
#include <FairRootFileSink.h>
#include <FairRunOnline.h>
#include <THttpServer.h>
#include <TRootSniffer.h>
#include <iostream>
#include <memory>
#include <string>
@@ -102,6 +106,10 @@ int32_t CbmReco::Run()
evtBuild->SetEventWindow(entry.first, entry.second.first, entry.second.second);
evtBuild->SetOutputBranchPersistent("DigiEvent", fConfig.fStoreEvents);
// --- Event QA
auto evtQa = make_unique<CbmTaskDigiEventQa>();
evtQa->Config(fConfig);
// --- Run configuration
FairRunOnline run(source.release());
run.SetSink(sink.release());
@@ -109,6 +117,13 @@ int32_t CbmReco::Run()
run.AddTask(unpack.release());
run.AddTask(trigger.release());
run.AddTask(evtBuild.release());
run.AddTask(evtQa.release());
// ----- HttpServer for online monitoring
Int_t serverHttpPort = 8080;
Int_t serverRefreshRate = 100; // timeslices
run.ActivateHttpServer(serverRefreshRate, serverHttpPort);
run.GetHttpServer()->GetSniffer()->SetScanGlobalDir(kFALSE);
// --- Initialise and start run
timer.Stop();
Loading