Opened 12 years ago
Closed 12 years ago
#176 closed How to (fixed)
Save rho for each event in output ntuple
Reported by: | Jim Hirschauer | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | Delphes code | Version: | Delphes 3 |
Keywords: | Cc: |
Description
Is it possible to save the rho energy density per event?
We are already calculating this with the FastJetFinder, but are unsure
how to save it. Thanks.
Change History (4)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
It's also possible to add a class for Rho. Something like
class Rho: public TObject { public: Float_t Rho; // rho energy density ClassDef(Rho, 1) };
comment:3 by , 12 years ago
Here is a version with the Rho class and branch:
http://cp3.irmp.ucl.ac.be/downloads/Delphes-3.0.8.pre3.tar.gz
comment:4 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
The Rho class and branch are in Delphes 3.0.8 now.
Note:
See TracTickets
for help on using tickets.
Yes it is possible.
By default the rho variable is computed in the FastJetFinder module as a candidate with 4-momentum vector with entries (rho,0,0,rho).
The default name for the rho output array is Rho/rho.
To store it in the output file, you can add in the TreeWriter section of your delphes card the following line (using the processScalarHT method of the TreeWriter class):
add Branch Rho/rho Rho ScalarHT
Indeed, if rho is computed by another instance of the FastJetFinder X and has an array name Y, you should write:
add Branch X/Y Rho ScalarHT