<div dir="ltr">Thanks David for the quick response. Analysis file attached. <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 17, 2016 at 4:38 PM, David Grellscheid <span dir="ltr"><<a href="mailto:david.grellscheid@durham.ac.uk" target="_blank">david.grellscheid@durham.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Alan,<br>
<br>
Can you please attach your analysis file, too? That will help in<br>
reproducing the error here.<br>
<br>
Thanks,<br>
<br>
David<br>
<div><div class="h5"><br>
<br>
On 17/10/16 15:29, Alan Kaptanoglu wrote:<br>
> Hello,<br>
><br>
> I am trying to declare jets with area in the initialization section of<br>
> my Rivet Analysis. I originally tried:<br>
><br>
> fastjet::GhostedAreaSpec areaspec(2.5,1,0.01);<br>
> fastjet::AreaDefinition<br>
> area_def(fastjet::active_area_<wbr>explicit_ghosts,areaspec);<br>
> FastJets jets(vfs, FastJets::ANTIKT, Rsmall);<br>
> jets.useJetArea(area_def);<br>
> jets.useInvisibles(JetAlg::<wbr>ALL_INVISIBLES);<br>
> jets.useMuons(JetAlg::DECAY_<wbr>MUONS);<br>
> declare(jets, "jets");<br>
><br>
> but this definition goes out of scope so when I ask for jet areas in my<br>
> "analysis" section of my code, it complains the jets have no valid jet<br>
> area associated with them. I next tried several versions of:<br>
><br>
> areaspec = new fastjet::GhostedAreaSpec(2.5,<wbr>1,0.01);<br>
> area_def = new<br>
> fastjet::AreaDefinition(<wbr>fastjet::active_area_explicit_<wbr>ghosts,*areaspec);<br>
> FastJets jets(vfs, FastJets::ANTIKT, Rsmall);<br>
> jets.useJetArea(area_def);<br>
> jets.useInvisibles(JetAlg::<wbr>ALL_INVISIBLES);<br>
> jets.useMuons(JetAlg::DECAY_<wbr>MUONS);<br>
> declare(jets, "jets");<br>
><br>
> where areaspec and area_def are private members of my Analysis class. I<br>
> also tried initializing these variables in my constructor using<br>
> initialization lists, as well as declaring them global variables (and<br>
> yes, to my knowledge, I am also deleting them correctly if I use "new").<br>
> In all these cases, the code runs correctly but complains at the end of<br>
> a memory error, which is attached in a text file. Any idea why this is<br>
> happening or how to fix?<br>
><br>
> Best,<br>
> Alan Kaptanoglu<br>
><br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> Rivet mailing list<br>
> <a href="mailto:Rivet@projects.hepforge.org">Rivet@projects.hepforge.org</a><br>
> <a href="https://www.hepforge.org/lists/listinfo/rivet" rel="noreferrer" target="_blank">https://www.hepforge.org/<wbr>lists/listinfo/rivet</a><br>
><br>
</blockquote></div><br></div>