[Rivet] Memory error

Alan Kaptanoglu alank2 at alumni.stanford.edu
Mon Oct 17 15:43:56 BST 2016


Thanks David for the quick response. Analysis file attached.

On Mon, Oct 17, 2016 at 4:38 PM, David Grellscheid <
david.grellscheid at durham.ac.uk> wrote:

> Hi Alan,
>
> Can you please attach your analysis file, too? That will help in
> reproducing the error here.
>
> Thanks,
>
>   David
>
>
> On 17/10/16 15:29, Alan Kaptanoglu wrote:
> > Hello,
> >
> > I am trying to declare jets with area in the initialization section of
> > my Rivet Analysis. I originally tried:
> >
> >       fastjet::GhostedAreaSpec areaspec(2.5,1,0.01);
> >       fastjet::AreaDefinition
> > area_def(fastjet::active_area_explicit_ghosts,areaspec);
> >       FastJets jets(vfs, FastJets::ANTIKT, Rsmall);
> >       jets.useJetArea(area_def);
> >       jets.useInvisibles(JetAlg::ALL_INVISIBLES);
> >       jets.useMuons(JetAlg::DECAY_MUONS);
> >       declare(jets, "jets");
> >
> > but this definition goes out of scope so when I ask for jet areas in my
> > "analysis" section of my code, it complains the jets have no valid jet
> > area associated with them. I next tried several versions of:
> >
> >       areaspec = new fastjet::GhostedAreaSpec(2.5,1,0.01);
> >       area_def = new
> > fastjet::AreaDefinition(fastjet::active_area_explicit_ghosts,*areaspec);
> >       FastJets jets(vfs, FastJets::ANTIKT, Rsmall);
> >       jets.useJetArea(area_def);
> >       jets.useInvisibles(JetAlg::ALL_INVISIBLES);
> >       jets.useMuons(JetAlg::DECAY_MUONS);
> >       declare(jets, "jets");
> >
> > where areaspec and area_def are private members of my Analysis class. I
> > also tried initializing these variables in my constructor using
> > initialization lists, as well as declaring them global variables (and
> > yes, to my knowledge, I am also deleting them correctly if I use "new").
> > In all these cases, the code runs correctly but complains at the end of
> > a memory error, which is attached in a text file. Any idea why this is
> > happening or how to fix?
> >
> > Best,
> > Alan Kaptanoglu
> >
> >
> > _______________________________________________
> > Rivet mailing list
> > Rivet at projects.hepforge.org
> > https://www.hepforge.org/lists/listinfo/rivet
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.hepforge.org/lists-archive/rivet/attachments/20161017/90991085/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tt_signal.cc
Type: text/x-c++src
Size: 34980 bytes
Desc: not available
URL: <https://www.hepforge.org/lists-archive/rivet/attachments/20161017/90991085/attachment.cc>


More information about the Rivet mailing list