Skip to content

Vanishing integrals #104

Open
Open

Description

@pdigiglio

Evaluating the integrals on a Model whose resonances have mass shapes directly inheriting from MassShape yields zero.

class MassBin : public MassShape
{
    // override CalculateT()
    // ... other class-specific implementation ...
};

// Create model whose resonances are MassBin's
auto M    = create_model();
auto data = M->createDataSet();
// The following integrals evaluate to 0
ImportanceSampler::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?

Activity

  1. greenwald commented on Oct 7, 2016

    @greenwald
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions