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 , 10 years ago
Summary: | histogram binning in an Delphes analysis → histogram binning in n Delphes analysis |
---|---|
Type: | Bug → How to |
comment:2 by , 10 years ago
Summary: | histogram binning in n Delphes analysis → histogram binning in a Delphes analysis |
---|
comment:3 by , 10 years ago
comment:4 by , 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 , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
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