1 #ifndef __SimTracker_SiPhase2Digitizer_DigitizerUtility_h 2 #define __SimTracker_SiPhase2Digitizer_DigitizerUtility_h 20 if (hitp !=
nullptr)
_simInfoList.push_back({
frac, std::make_unique<SimHitInfoForLinks>(hitp,hitIndex,tofBin)});
34 if (ic.first > -0.5)
_simInfoList.push_back({ic.first, std::make_unique<SimHitInfoForLinks>(*ic.second)});
49 std::vector<std::pair<float, std::unique_ptr<SimHitInfoForLinks> > >
_simInfoList;
59 _energy(energy),_position(x,y,z) {}
61 _energy(energy),_position(position) {}
62 float x()
const{
return _position.x();}
63 float y()
const{
return _position.y();}
64 float z()
const{
return _position.z();}
65 float energy()
const {
return _energy;}
77 _sigma_x(1.), _sigma_y(1.), _hitp(0) {}
80 float t,
float a=1.0):
81 _pos(x,y), _time(t), _amplitude(
a), _sigma_x(sigma_x),
82 _sigma_y(sigma_y), _hitp(0) {}
86 _pos(x,y), _time(t), _amplitude(
a), _sigma_x(sigma_x),
87 _sigma_y(sigma_y),_hitp(&hit) {}
90 float x()
const {
return _pos.x();}
91 float y()
const {
return _pos.y();}
94 float time()
const {
return _time;}
SignalPoint(float x, float y, float sigma_x, float sigma_y, float t, const PSimHit &hit, float a=1.0)
SignalPoint(float x, float y, float sigma_x, float sigma_y, float t, float a=1.0)
Amplitude(float amp, const PSimHit *hitp, float frac=0, size_t hitIndex=0, unsigned int tofBin=0)
EnergyDepositUnit(float energy, Local3DPoint position)
std::vector< std::pair< float, std::unique_ptr< SimHitInfoForLinks > > > _simInfoList
SignalPoint & set_amplitude(float amp)
EnergyDepositUnit(float energy, float x, float y, float z)
const LocalPoint & position() const
void operator+=(const Amplitude &other)
static int position[264][3]
std::vector< std::pair< float, SimHitInfoForLinks * > > simInfoList
const std::vector< std::pair< float, std::unique_ptr< SimHitInfoForLinks > > > & simInfoList() const