Belle II Software development
ECLShowerEnergyCorrectionTemporary.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//Root
12#include <TObject.h>
13#include <TGraph2D.h>
14
15namespace Belle2 {
29 class ECLShowerEnergyCorrectionTemporary: public TObject {
30 public:
31
37
43 const float angleMin,
44 const float angleMax,
45 const float energyMin,
46 const float energyMax) :
47 m_graph(graph),
48 m_angleMin(angleMin),
49 m_angleMax(angleMax),
50 m_energyMin(energyMin),
51 m_energyMax(energyMax)
52 {
53
54 }
55
60
68 TGraph2D getGraph2D() const {return m_graph;}
69
74 float getAngleMin() const {return m_angleMin;}
75
80 float getAngleMax() const {return m_angleMax;}
81
85 float getEnergyMin() const {return m_energyMin;}
86
90 float getEnergyMax() const {return m_energyMax;}
91
92 private:
93 TGraph2D m_graph;
94 float m_angleMin;
95 float m_angleMax;
99 // 1: Initial version
101 };
103} // end namespace Belle2
104
Class to hold the information for the ECL shower energy corrections This is a temperary class as ther...
float getEnergyMax() const
Get Maximum value of energy which the corrections are valid for.
ECLShowerEnergyCorrectionTemporary(const TGraph2D &graph, const float angleMin, const float angleMax, const float energyMin, const float energyMax)
Constructor Angles are in degrees!!
float getAngleMin() const
Get Minimum value of angle which the corrections are valid for.
float getEnergyMin() const
Get Minimum value of energy which the corrections are valid for.
float m_angleMax
Maximum value of angle which the corrections are valid for (in degrees).
float m_angleMin
Minimum value of angle which the corrections are valid for (in degrees).
float m_energyMin
Minimum value of energy which the corrections are valid for.
ClassDef(ECLShowerEnergyCorrectionTemporary, 1)
ClassDef.
float m_energyMax
Maximum value of energy which the corrections are valid for.
TGraph2D m_graph
graph holding the shower energy corrections.
float getAngleMax() const
Get Maximum value of angle which the corrections are valid for.
TGraph2D getGraph2D() const
Get the TGraph2D graph x - angle (degrees) y - energy z - correction factor Angles are in degrees!...
Abstract base class for different kinds of events.