1 #ifndef __SimTracker_SiPhase2Digitizer_DigitizerUtility_h 2 #define __SimTracker_SiPhase2Digitizer_DigitizerUtility_h 21 _simInfoList.push_back({
frac, std::make_unique<SimHitInfoForLinks>(hitp, hitIndex, tofBin)});
30 const std::vector<std::pair<float, std::unique_ptr<SimHitInfoForLinks> > >&
simInfoList()
const {
39 _simInfoList.push_back({ic.first, std::make_unique<SimHitInfoForLinks>(*ic.second)});
52 std::vector<std::pair<float, std::unique_ptr<SimHitInfoForLinks> > >
_simInfoList;
63 float x()
const {
return _position.x(); }
64 float y()
const {
return _position.y(); }
65 float z()
const {
return _position.z(); }
66 float energy()
const {
return _energy; }
78 SignalPoint() : _pos(0, 0), _time(0), _amplitude(0), _sigma_x(1.), _sigma_y(1.), _hitp(
nullptr) {}
81 : _pos(x, y), _time(t), _amplitude(
a), _sigma_x(sigma_x), _sigma_y(sigma_y), _hitp(
nullptr) {}
84 : _pos(x, y), _time(t), _amplitude(
a), _sigma_x(sigma_x), _sigma_y(sigma_y), _hitp(&hit) {}
87 float x()
const {
return _pos.x(); }
88 float y()
const {
return _pos.y(); }
89 float sigma_x()
const {
return _sigma_x; }
90 float sigma_y()
const {
return _sigma_y; }
91 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)
void operator+=(const float &)
static int position[264][3]
std::vector< std::pair< float, SimHitInfoForLinks * > > simInfoList
const std::vector< std::pair< float, std::unique_ptr< SimHitInfoForLinks > > > & simInfoList() const