 |
Belle II Software
release-05-01-25
|
1 #include <ecl/dataobjects/ECLHit.h>
3 #include <gtest/gtest.h>
26 const float edep = 1.234;
27 const float timeAve = 4.321;
28 ECLHit myHit2(cellId, edep, timeAve);
38 const float edep = 1.234;
39 const float timeAve = 4.321;
40 const float deltaTimeShift = 2.5;
49 EXPECT_EQ(myHit.
getTimeAve(), timeAve + deltaTimeShift);
int getCellId() const
Get Cell ID.
void setEnergyDep(double Edep)
Set deposit energy.
double getEnergyDep() const
Get deposit energy.
void setTimeAve(double TimeAve)
Set average time.
Abstract base class for different kinds of events.
Class to store simulated hits which equate to average of ECLSImHit on crystals input for digitization...
void shiftInTime(float delta) override
Shift the Hit in time (needed for beam background mixing)
TEST_F(ECLHitTest, SettersAndGetters)
Test Setters and Getters.
Set up a few arrays and objects in the datastore.
double getTimeAve() const
Get average time.
void setCellId(int CellId)
Set Cell ID.