Dear All,
I created one histogram where no of entries are 705. These are events with counts greater than zero. Now there are more 191 events whose counts are zero. I want to add these 191 events into the histogram.
root [1] auto h = new TH1F("h","h", 10, 0,1)
(TH1F *) 0x7fb9a7d4d5d0
root [2] h->Fill(0.5,0);
root [3] h->GetEntries()
(double) 1.0000000
root [4] h->Draw()
Info in <TCanvas::MakeDefCanvas>: created default TCanvas with name c1
root [5]
I do not want to fill. Here there is 1 entry . Suppose this entry has 1 count.
Now i have 4 more entry with 0 counts. I want to add those entries directly into the histogram so that the updated histogram will show no of entries 5. ( among which 1 entry with 1 count and 4 entries with 0 counts.)
Dear Couet,
The program with 0 weight is working . But if i have to fill 100 events manually that is a problem. How do I can fill the histogram 100 times with 0 weight. What will be command in that case ?