[Rivet] Beware of vector<Histo1DPtr>

Andy Buckley andy.buckley at cern.ch
Mon Aug 11 17:00:01 BST 2014


I think this problem is fixed with the trunk version of YODA (since
Friday). The released versions of YODA should all have been unaffected.

Andy


On 07/08/14 15:36, Holger Schulz wrote:
> On 07/08/14 14:56, Holger Schulz wrote:
>>
>> This crash goes away when declaring
>>
>>     Histo1DPtr _h_dNch_dn[4];
>>
>> instead of
>>         vector<Histo1DPtr> _h_dNch_dn;
> Sorry, that was too early, the error as described remains:
> 
>     python: ../include/YODA/Utils/BinSearcher.h:219: size_t
>     YODA::Utils::BinSearcher::index(double) const: Assertion `x >=
>     _edges[index] && x < _edges[index+1]' failed.
> 
> So yeah, there seems to be something going wrong.
> 
> Holger


-- 
Dr Andy Buckley, Royal Society University Research Fellow
Particle Physics Expt Group, University of Glasgow / PH Dept, CERN


More information about the Rivet mailing list