Fork me on GitHub

Opened 5 years ago

Last modified 3 years ago

#1408 new How to

Installing new fastjet contrib and getting jet result in ROOT tree

Reported by: karkas Owned by:
Priority: minor Milestone:
Component: Delphes code Version: Delphes 3
Keywords: fastjet, contrib, energycorrelator, correlator, fastjetfinder Cc:

Description

Hello, I am trying to get Delphes to produce the result of the EnergyCorrelatorD2 computation from a fastjet-contrib not included in the Delphes code.

I have successfully configure/make'd the contrib and I am trying to incorporate it in the FastJetFinder.cc and corresponding header. In general, I am taking the SoftDrop recursive tool contrib as a reference in implementing new code.

My attempt so far consists of changes to the following files:
FastJetFinder.cc and header
DelphesClasses.cc and header

which I include below. The code in FastJetFinder looks like this (situated before the standard trimming part:

    if(fComputeEnergyCorrelator)
    {
	  contrib::EnergyCorrelatorD2 d2(fbetaEnergyCorrelator);
          candidate->D2_value = d2(*itOutputList);

    }

With this, along with some parameter declarations in the files and headers, as well as the custom card activating the correlator computation, I am able to get the D2_value to show up in the root file, and it is calling all the jets correctly, but all values are nearly 0 (clearly not how it should be)

I am trying to get this to work otherwise I'll have to abandon Delphes and try to get these values from externally using fastjet, but I don't see why I would not be able to get this class evaluated for each jet candidate that is in the loop.

Thank you in advance,
John

Attachments (1)

delphes_energycorrelator_ticket.zip (13.8 KB ) - added by karkas 5 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 by SAUMYEN KUNDU, 3 years ago

Hi John,
Did you able to implement it correctly? I am also trying to add a module of Energy Correlator but similar problem I am getting, '0' for all values.

So, was wondering how you solved the issue. I would be grateful if you can help in this regard.

Thanks and regards,
Saumyen

in reply to:  1 comment:2 by karkas, 3 years ago

Good morning Saumyen,

Unfortunately, I don't remember working this problem out, as I was very new to these concepts then, and stopped working with Delphes shortly afterwards.

My understanding is that this there must be a simple way to make contribs work, however it's been a while since I have visited such libraries.

Hopefully someone else can catch up now that this ticket is bumped.

Kind regards,
John

Replying to saumyen.k:

Hi John,
Did you able to implement it correctly? I am also trying to add a module of Energy Correlator but similar problem I am getting, '0' for all values.

So, was wondering how you solved the issue. I would be grateful if you can help in this regard.

Thanks and regards,
Saumyen

comment:3 by SAUMYEN KUNDU, 3 years ago

Okay, I see. Thanks a lot, John anyway for the quick response.
Let me try some different things to have a success.

Thanks a lot again.

Regards,
Saumyen

Note: See TracTickets for help on using tickets.