8#include <ecl/dataobjects/ECLHit.h>
10#include <gtest/gtest.h>
33 const float edep = 1.234;
34 const float timeAve = 4.321;
35 ECLHit myHit2(cellId, edep, timeAve);
45 const float edep = 1.234;
46 const float timeAve = 4.321;
47 const float deltaTimeShift = 2.5;
56 EXPECT_EQ(myHit.
getTimeAve(), timeAve + deltaTimeShift);
Set up a few arrays and objects in the datastore.
Class to store simulated hits which equate to average of ECLSImHit on crystals input for digitization...
double getTimeAve() const
Get average time.
void setEnergyDep(double Edep)
Set deposit energy.
int getCellId() const
Get Cell ID.
void setCellId(int CellId)
Set Cell ID.
double getEnergyDep() const
Get deposit energy.
void shiftInTime(float delta) override
Shift the Hit in time (needed for beam background mixing)
void setTimeAve(double TimeAve)
Set average time.
Abstract base class for different kinds of events.