R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BNeulandHitCanvas.h
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (C) 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH *
3 * Copyright (C) 2019-2023 Members of R3B Collaboration *
4 * *
5 * This software is distributed under the terms of the *
6 * GNU General Public Licence (GPL) version 3, *
7 * copied verbatim in the file "LICENSE". *
8 * *
9 * In applying this license GSI does not waive the privileges and immunities *
10 * granted to it by virtue of its status as an Intergovernmental Organization *
11 * or submit itself to any jurisdiction. *
12 ******************************************************************************/
13
14#pragma once
15
17#include <R3BIOConnector.h>
18#include <R3BNeulandHit.h>
19
20namespace R3B::Neuland
21{
22 class HitCanvas : public OnlineCanvas
23 {
24 public:
25 explicit HitCanvas(std::string_view name)
26 : OnlineCanvas(name)
27 {
28 }
29
30 private:
31 InputVectorConnector<R3BNeulandHit> hit_data_{ "NeulandHits" };
32
33 CanvasElement<TH2D> hHitEvsBar_;
34 CanvasElement<TH2D> hTdiffvsBar_;
35 CanvasElement<TH2D> hTofvsBar_;
36 CanvasElement<TH2D> hTofvsEhit_;
37
38 void DataInit() override;
39 void CanvasInit(DataMonitor& histograms) override;
40 void CanvasFill(DataMonitor& histograms) override;
41 void CanvasFinish() override;
42 };
43} // namespace R3B::Neuland
void CanvasFill(DataMonitor &histograms) override
HitCanvas(std::string_view name)
void CanvasInit(DataMonitor &histograms) override
OnlineCanvas(const OnlineCanvas &)=default
Simulation of NeuLAND Bar/Paddle.
InputConnector< std::vector< ElementType > > InputVectorConnector