R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BNeulandHitOnlineMonitorTask.h
Go to the documentation of this file.
1#pragma once
2
3#include "R3BIOConnector.h"
5#include "R3BNeulandHit2.h"
6#include <string>
7
8class FairRootManager;
9class FairRuntimeDb;
10class TH2D;
11class TH1D;
12class TH1L;
13
14namespace R3B
15{
16 class DataMonitor;
17}
18
20{
22
24 {
26 bool enable = false;
27 int n_hit_min = 0;
28 std::string name = "NeulandHitOnlineMonitorTask";
29 std::string read = "NeulandHits";
30 };
31
33 {
34 public:
36 explicit HitOnlineMonitorTask(const Config& config);
37
38 private:
41
42 // histograms:
44 TH2D* hist_times_ = nullptr;
45
46 // overriden functions:
47 void HistogramInit(DataMonitor& histograms) override;
48 void TriggeredExec() override;
49 void ExtraInit(FairRootManager* rootMan) override;
50 void BeginOfEvent() override {}
51 void SetExtraPar(FairRuntimeDb* rtdb) override {}
52 void EndOfTask() override {}
53 [[nodiscard]] auto CheckConditions([[maybe_unused]] TH1L* hist_condition) const -> bool override;
54 };
55
56} // namespace R3B::Neuland::Calibration
auto CheckConditions(TH1L *hist_condition) const -> bool override
InputConnector< std::vector< ElementType > > InputVectorConnector