Fork me on GitHub

Opened 4 years ago

#1425 new Task

Problem extracting variables from Delphes output to new ROOT file

Reported by: SAUMYEN KUNDU Owned by:
Priority: critical Milestone:
Component: Delphes miscellaneous Version: Delphes 3
Keywords: Cc:

Description

Hi,

I was trying to extract some variables and combinations of variables from the Delphes output file to a new ROOT file. The macro I am using is attached. I am using Delphes3 and ROOTv6.14.

The MissingET branch is getting written perfectly because it has constituents for every event. But for the lepton or photon branch, there are some events that are empty. When I am filling up the tree through the event loop, the values of some variables from the previous loop are getting repeated as there's no new value to overwrite it.

Is it possible that I get some ideas, suggestions and/ advice from here? I earlier was discussing in the ROOT forum as it appeared that may be related to ROOT. But that wasn't solved. So, it'll be appreciated if I get some help.

Regards,
Saumyen

Attachments (1)

NewDelphes.C (3.7 KB ) - added by SAUMYEN KUNDU 4 years ago.
ROOT macro to extract variables from Delphes output file to new ROOT file

Download all attachments as: .zip

Change History (1)

by SAUMYEN KUNDU, 4 years ago

Attachment: NewDelphes.C added

ROOT macro to extract variables from Delphes output file to new ROOT file

Note: See TracTickets for help on using tickets.