1 #ifndef __SimTracker_SiPhase2Digitizer_DigitizerUtility_h 2 #define __SimTracker_SiPhase2Digitizer_DigitizerUtility_h 36 Amplitude(
float amp,
const PSimHit* hitp,
float frac = 0,
float tcor = 0,
size_t hitIndex = 0, uint32_t tofBin = 0)
40 _simInfoList.push_back({
frac, std::make_unique<SimHitInfo>(hitp, tcor, hitIndex, tofBin)});
54 for (
auto const& ic :
other.simInfoList()) {
56 _simInfoList.push_back({ic.first, std::make_unique<SimHitInfo>(*ic.second)});
66 std::vector<std::pair<float, std::unique_ptr<SimHitInfo> > >
_simInfoList;
SimHitInfo(const PSimHit *hitp, float corrTime, size_t hitIndex, uint32_t tofBin)
SignalPoint(float x, float y, float sigma_x, float sigma_y, float t, const PSimHit &hit, float a=1.0)
const std::vector< std::pair< float, std::unique_ptr< SimHitInfo > > > & simInfoList() const
const LocalPoint & position() const
uint32_t hitIndex() const
std::vector< std::pair< float, std::unique_ptr< SimHitInfo > > > _simInfoList
SignalPoint(float x, float y, float sigma_x, float sigma_y, float t, float a=1.0)
EnergyDepositUnit(float energy, Local3DPoint position)
EncodedEventId eventId() const
Amplitude(float amp, const PSimHit *hitp, float frac=0, float tcor=0, size_t hitIndex=0, uint32_t tofBin=0)
SignalPoint & set_amplitude(float amp)
std::vector< std::pair< float, SimHitInfo * > > simInfoList
EnergyDepositUnit(float energy, float x, float y, float z)
void migrate_position(const Local3DPoint &pos)
void operator+=(const Amplitude &other)
void operator+=(const float &)
static int position[264][3]