Belle II Software development
EclPainterCommon.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11//ECL
12#include <ecl/modules/eclDisplay/EclPainter.h>
13
14// TODO: Dynamic bin count for ENERGY_SUM
15
16class TH1F;
17
18namespace Belle2 {
28 public:
35
39 EclPainterCommon(EclData* data, Type type);
43 virtual ~EclPainterCommon() override;
46
49
50 private:
54 TH1F* m_hist;
55
59 int getMinX();
63 int getMaxX();
67 void initHisto();
71 void setTitles();
72
73 public:
77 Type getType();
78
82 void Draw() override;
83 };
84
85}
This class contains data for ECLSimHit's and provides several relevant conversion functions for bette...
Definition EclData.h:31
Type m_type
Display subtypes of this class.
TH1F * m_hist
Histogram for energy distribution.
EclPainterCommon(const EclPainterCommon &)=delete
Copy constructor (disabled).
Type
Subtype of histogram to draw.
@ ENERGY_SUM
Energy per event distribution.
@ ENERGY
Energy per channel distribution.
@ TIME
Time distribution.
int getMinX()
Return m_x_min.
int getMaxX()
Return m_x_max.
void setTitles()
Update titles of the histogram.
Type getType()
Return subtype of ECLPainterCommon.
EclPainterCommon & operator=(const EclPainterCommon &)=delete
Operator = (disabled).
virtual ~EclPainterCommon() override
Destructor for EclPainter subclass.
void initHisto()
Initialize histogram.
void Draw() override
Redraw the canvas.
EclPainterCommon(EclData *data, Type type)
Constructor for EclPainter subclass.
EclPainter(EclData *data)
Default constructor.
Definition EclPainter.cc:24
Abstract base class for different kinds of events.