<div dir="ltr"><div><div><div><div><div>Hello,<br><br></div>I am trying to declare jets with area in the initialization section of my Rivet Analysis. I originally tried:<br></div><br> fastjet::GhostedAreaSpec areaspec(2.5,1,0.01);<br> fastjet::AreaDefinition area_def(fastjet::active_area_explicit_ghosts,areaspec);<br> FastJets jets(vfs, FastJets::ANTIKT, Rsmall);<br> jets.useJetArea(area_def);<br> jets.useInvisibles(JetAlg::ALL_INVISIBLES);<br> jets.useMuons(JetAlg::DECAY_MUONS);<br> declare(jets, "jets");<br><br></div>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:<br><br> areaspec = new fastjet::GhostedAreaSpec(2.5,1,0.01);<br> area_def = new fastjet::AreaDefinition(fastjet::active_area_explicit_ghosts,*areaspec);<br> FastJets jets(vfs, FastJets::ANTIKT, Rsmall);<br> jets.useJetArea(area_def);<br> jets.useInvisibles(JetAlg::ALL_INVISIBLES);<br> jets.useMuons(JetAlg::DECAY_MUONS);<br> declare(jets, "jets");<br><br>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?<br><br></div>Best,<br></div>Alan Kaptanoglu<br></div>