Last change
on this file since 1 was
1,
checked in by zerwas, 11 years ago
|
first import of structure, PYTHIA8 and DELPHES
|
File size:
824 bytes
|
Line | |
---|
1 | /* |
---|
2 | root |
---|
3 | .X examples/ProcessingTime.C("delphes_output.root"); |
---|
4 | */ |
---|
5 | |
---|
6 | //------------------------------------------------------------------------------ |
---|
7 | |
---|
8 | TGraphErrors gr; |
---|
9 | |
---|
10 | //------------------------------------------------------------------------------ |
---|
11 | |
---|
12 | void ProcessingTime(const char *inputFile) |
---|
13 | { |
---|
14 | TChain *chain = new TChain("Delphes"); |
---|
15 | chain->Add(inputFile); |
---|
16 | |
---|
17 | TH1F hist("time", "time", 50, 0, 0.01); |
---|
18 | Int_t i; |
---|
19 | |
---|
20 | for(i = 1; i < 8; ++i) |
---|
21 | { |
---|
22 | chain->Draw("Event.ProcTime >> time", TString::Format("Jet_size == %d", i+1)); |
---|
23 | gr.SetPoint(i, i+1, hist.GetMean()*1000); |
---|
24 | gr.SetPointError(i, 0, hist.GetRMS()*1000); |
---|
25 | } |
---|
26 | |
---|
27 | gr.GetXaxis()->SetLimits(1.0, 9.0); |
---|
28 | gr.GetXaxis()->SetTitle("number of jets"); |
---|
29 | gr.GetYaxis()->SetTitle("processing time per event, ms"); |
---|
30 | gr.SetMarkerStyle(kFullDotMedium); |
---|
31 | gr.Draw("AP"); |
---|
32 | } |
---|
33 | |
---|
Note: See
TracBrowser
for help on using the repository browser.