You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Evaluating the integrals on a Model whose resonances have mass shapes directly inheriting from MassShape yields zero.
classMassBin : publicMassShape
{
// override CalculateT()// ... other class-specific implementation ...
};
// Create model whose resonances are MassBin'sauto M = create_model();
auto data = M->createDataSet();
// The following integrals evaluate to 0ImportanceSampler::calculate(ModelIntegral(*M), data);
If MassBin (with the same class implementation) inherits from MassShapeWithNominalMass, for instance, the integrals no longer vanish.
I noticed that MassShape has inlined empty functions, e.g. setParameters(). I think this may be the reason for this behavior. @greenwald Was this design chosen on purpose? Why not declaring those functions pure vitrual?
The idea was that they are helper functions that the class need not use, but are there in case they are needed.
But it seems the problem may be that the integrals are not calculated the first time if there are no parameters checked. We need to force the calculation of every integral component the very first time.
Activity
greenwald commentedon Oct 7, 2016
The idea was that they are helper functions that the class need not use, but are there in case they are needed.
But it seems the problem may be that the integrals are not calculated the first time if there are no parameters checked. We need to force the calculation of every integral component the very first time.