12#include <framework/dataobjects/RelationElement.h>
17#include <svd/simulation/SVDSimulationTools.h>
58 std::ostringstream os;
80 typedef std::map<RelationElement::index_type, RelationElement::weight_type>
relations_map;
82 typedef std::map<RelationElement::index_type, RelationElement::weight_type>::value_type
relation_value_type;
111 if (particle > -1)
m_particles[particle] +=
static_cast<float>(charge);
112 if (truehit > -1)
m_truehits[truehit] +=
static_cast<float>(charge);
138 double waveform(
double t,
double initTime,
double charge,
double tau,
141 double z = (t - initTime) / tau;
142 return charge * wfun(z);
159 double total_waveform = 0;
161 total_waveform +=
waveform(t, elementary_waveform);
163 return total_waveform;
188 std::ostringstream os;
191 os << ++i <<
'\t' << elementary_waveform.toString();
unsigned int index_type
type used for indices.
double w_betaprime(double t)
Beta-prime waveform shape, x^alpha/(1+x)^beta.
std::function< double(double)> WaveformShape
WaveformShape type.
Abstract base class for different kinds of events.