Belle II Software  release-05-01-25
ECLDspWithExtraMCInfo.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2020 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * DataObject inheriting from ECLDsp with additional MC true information *
7  * Contributors: Torben Ferber *
8  * *
9  * This software is provided "as is" without any warranty. *
10  **************************************************************************/
11 
12 #ifndef ECLDSPWITHEXTRAMCINFO_H
13 #define ECLDSPWITHEXTRAMCINFO_H
14 
15 #include <framework/datastore/RelationsObject.h>
16 namespace Belle2 {
29  class ECLDspWithExtraMCInfo : public ECLDsp {
30  public:
33  void setEnergyDep(double input) { m_energyDep = input; }
34 
37  void setHadronEnergyDep(double input) { m_hadronEnergyDep = input; }
38 
41  void setFlightTime(double input) { m_flighttime = input; }
42 
45  void setTimeShift(double input) { m_timeshift = input; }
46 
49  void setTimeToSensor(double input) { m_timetosensor = input; }
50 
53  void setEnergyConversion(double input) { m_energyConversion = input; }
54 
58  double getHadronEnergyDep() const { return m_hadronEnergyDep; }
59 
63  double getEnergyDep() const { return m_energyDep; }
64 
68  double getEnergyConversion() const { return m_energyConversion; }
69 
73  double getFlightTime() const { return m_flighttime; }
74 
78  double getTimeShift() const { return m_timeshift; }
79 
83  double getTimeToSensor() const { return m_timetosensor; }
84 
85 
86  private:
87 
88  double m_hadronEnergyDep{0};
89  double m_energyDep{0};
90  double m_energyConversion{0};
91  double m_flighttime{0};
92  double m_timeshift{0};
93  double m_timetosensor{0};
95  ClassDef(ECLDspWithExtraMCInfo, 1);
96 
97  };
99 } // end namespace Belle2
100 
101 #endif
Belle2::ECLDspWithExtraMCInfo::m_energyDep
double m_energyDep
True deposited energy.
Definition: ECLDspWithExtraMCInfo.h:98
Belle2::ECLDspWithExtraMCInfo::setHadronEnergyDep
void setHadronEnergyDep(double input)
Set total true deposited hadron energy.
Definition: ECLDspWithExtraMCInfo.h:46
Belle2::ECLDspWithExtraMCInfo::setTimeShift
void setTimeShift(double input)
Set timeshift (weighted by true deposited energy)
Definition: ECLDspWithExtraMCInfo.h:54
Belle2::ECLDspWithExtraMCInfo::getTimeToSensor
double getTimeToSensor() const
get time to sensor
Definition: ECLDspWithExtraMCInfo.h:92
Belle2::ECLDspWithExtraMCInfo::getFlightTime
double getFlightTime() const
get true flight time
Definition: ECLDspWithExtraMCInfo.h:82
Belle2::ECLDspWithExtraMCInfo::m_hadronEnergyDep
double m_hadronEnergyDep
True deposited hadron energy.
Definition: ECLDspWithExtraMCInfo.h:97
Belle2::ECLDspWithExtraMCInfo::getHadronEnergyDep
double getHadronEnergyDep() const
get true deposited hadron energy @returntrue deposited hadron energy
Definition: ECLDspWithExtraMCInfo.h:67
Belle2::ECLDspWithExtraMCInfo::m_timeshift
double m_timeshift
Time shift (weighted by true energy)
Definition: ECLDspWithExtraMCInfo.h:101
Belle2::ECLDspWithExtraMCInfo::setTimeToSensor
void setTimeToSensor(double input)
Set time to sensor (weighted by true deposited energy)
Definition: ECLDspWithExtraMCInfo.h:58
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ECLDspWithExtraMCInfo::m_timetosensor
double m_timetosensor
time to sensor (weighted by true energy)
Definition: ECLDspWithExtraMCInfo.h:102
Belle2::ECLDspWithExtraMCInfo::getTimeShift
double getTimeShift() const
get time shift
Definition: ECLDspWithExtraMCInfo.h:87
Belle2::ECLDspWithExtraMCInfo::getEnergyDep
double getEnergyDep() const
get true deposited energy @returntrue deposited energy
Definition: ECLDspWithExtraMCInfo.h:72
Belle2::ECLDspWithExtraMCInfo::getEnergyConversion
double getEnergyConversion() const
get energy conversion factor
Definition: ECLDspWithExtraMCInfo.h:77
Belle2::ECLDspWithExtraMCInfo::m_energyConversion
double m_energyConversion
Conversion from energy to ADC.
Definition: ECLDspWithExtraMCInfo.h:99
Belle2::ECLDspWithExtraMCInfo::m_flighttime
double m_flighttime
True flighttime (weighted by true energy)
Definition: ECLDspWithExtraMCInfo.h:100
Belle2::ECLDspWithExtraMCInfo::setEnergyConversion
void setEnergyConversion(double input)
Set energy conversion factor.
Definition: ECLDspWithExtraMCInfo.h:62
Belle2::ECLDspWithExtraMCInfo::setFlightTime
void setFlightTime(double input)
Set true flight time (weighted by true deposited energy)
Definition: ECLDspWithExtraMCInfo.h:50
Belle2::ECLDspWithExtraMCInfo::setEnergyDep
void setEnergyDep(double input)
Set total true deposited energy.
Definition: ECLDspWithExtraMCInfo.h:42