Skip to content

DepoFluxWriter exception could be more clear. #43

@brettviren

Description

@brettviren

As part of the "collusion" (see https://github.com/LArSoft/larwirecell/blob/develop/larwirecell/docs/depofluxwriter.org#track-ids ) the same art::Event "label" must be used for the vector of SimEnergyDeposit by both SimDepoSetSource and DepoFluxWriter. If the user gets this wrong by naming two different but existing labels then DepoFluxWriter will throw an exception about an out-of-bounds access which is somewhat cryptic.

Better would be to have DepoFluxWriter explicitly check the size of the SED vector against the vector of depos from WCT and raise an exception with a more explicit message.

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