1 #ifndef SimTracker_Common_DigitizerUtility_h 2 #define SimTracker_Common_DigitizerUtility_h 41 if (
_frac[0] < -0.5) {
46 Amplitude(
float amp,
const PSimHit* hitp,
size_t hitIndex,
size_t hitInd4CR,
unsigned int tofBin,
float frac)
50 if (
_frac[0] < -0.5) {
53 _hitInfos.emplace_back(hitp, hitIndex, tofBin, hitInd4CR, amp);
67 if (
other._frac[0] > -0.5) {
68 if (!
other._hitInfos.empty()) {
93 float amp,
const PSimHit* hitp,
float frac = 0,
float tcor = 0,
size_t hitIndex = 0, uint32_t tofBin = 0)
97 _simInfoList.push_back({
frac, std::make_unique<SimHitInfo>(hitp, tcor, hitIndex, tofBin)});
111 for (
auto const& ic :
other.simInfoList()) {
113 _simInfoList.push_back({ic.first, std::make_unique<SimHitInfo>(*ic.second)});
123 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)
Ph2Amplitude(float amp, const PSimHit *hitp, float frac=0, float tcor=0, size_t hitIndex=0, uint32_t tofBin=0)
void operator+=(const Ph2Amplitude &other)
void operator+=(const float &)
EnergyDepositUnit(float energy, float x, float y, float z)
SimHitInfo(const PSimHit *hitp, float corrTime, size_t hitIndex, uint32_t tofBin)
Amplitude(float amp, const PSimHit *hitp, size_t hitIndex, size_t hitInd4CR, unsigned int tofBin, float frac)
void operator+=(const float &)
std::vector< SimHitInfoForLinks > _hitInfos
const LocalPoint & position() const
SignalPoint(float x, float y, float sigma_x, float sigma_y, float t, const PSimHit &hit, float a=1.0)
EncodedEventId eventId() const
uint32_t hitIndex() const
EnergyDepositUnit(float energy, Local3DPoint position)
void migrate_position(const Local3DPoint &pos)
std::vector< std::pair< float, std::unique_ptr< SimHitInfo > > > _simInfoList
const std::vector< float > & individualampl() const
std::vector< std::pair< float, SimHitInfo * > > simInfoList
static int position[264][3]
const std::vector< SimHitInfoForLinks > & hitInfos() const
SignalPoint & set_amplitude(float amp)
const std::vector< std::pair< float, std::unique_ptr< SimHitInfo > > > & simInfoList() const
std::vector< float > _frac
Amplitude(float amp, float frac)
void operator+=(const Amplitude &other)