Fork me on GitHub

Opened 10 years ago

Closed 10 years ago

#302 closed How to (fixed)

histogram binning in a Delphes analysis

Reported by: adi Owned by:
Priority: minor Milestone:
Component: Delphes code Version: Delphes 3
Keywords: Cc:

Description

To whom this may concern,

I'm currently writing a Delphes analysis and was wondering if it is possible to create an histogram with customize various bins?

thank you in advance,
Adi Ashkenazi
Tel Aviv University

Change History (5)

comment:1 by adi, 10 years ago

Summary: histogram binning in an Delphes analysishistogram binning in n Delphes analysis
Type: BugHow to

comment:2 by adi, 10 years ago

Summary: histogram binning in n Delphes analysishistogram binning in a Delphes analysis

comment:3 by Pavel Demin, 10 years ago

You can have a look at one of the example ROOT macros in the 'examples' directory.

For example, in 'examples/Example1.C' on lines 24 and 25 you can find two commands that define two histograms. By modifying the arguments of the TH1F constructor, you can create a histogram with whatever bins you need.

A more detailed description of the TH1F class can be found at

http://root.cern.ch/root/html/TH1F.html

Regards,

Pavel

comment:4 by adi, 10 years ago

great!
thank you for the quick and informative answer! (i was only aware of the Delphes::AddHistogram option)

thank you again,
adi

comment:5 by Pavel Demin, 10 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.