GaussianTransferFunctionOnEnergy.cc
38 GaussianTransferFunctionOnEnergyBase(PoolPtr pool, const ParameterSet& parameters): Module(pool, parameters.getModuleName()) {
97 GaussianTransferFunctionOnEnergy(PoolPtr pool, const ParameterSet& parameters): GaussianTransferFunctionOnEnergyBase(pool, parameters) {
105 double range_min = std::max( { m_min_E, m_reco_input->M(), m_reco_input->E() - (m_sigma_range * sigma_E_rec) } );
121 // Compute TF*jacobian, where the jacobian includes the transformation of [0,1]->[range_min,range_max] and d|P|/dE
122 *TF_times_jacobian = ROOT::Math::normal_pdf(gen_E, sigma_E_gen, m_reco_input->E()) * range * dP_over_dE(*output);
172 GaussianTransferFunctionOnEnergyEvaluator(PoolPtr pool, const ParameterSet& parameters): GaussianTransferFunctionOnEnergyBase(pool, parameters) {
178 *TF_value = ROOT::Math::normal_pdf(m_gen_input->E(), m_gen_input->E() * m_sigma, m_reco_input->E());
Mathematical functions.
Helper class for Gaussian transfer function modules.
Definition: GaussianTransferFunctionOnEnergy.cc:35
Evaluate a transfer function on energy described by a Gaussian distribution.
Definition: GaussianTransferFunctionOnEnergy.cc:170
Integrate over a transfer function on energy described by a Gaussian distribution.
Definition: GaussianTransferFunctionOnEnergy.cc:95