source: trunk/MagicSoft/Mars/macros/evtrate.C@ 3414

Last change on this file since 3414 was 2626, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 498 bytes
Line 
1void evtrate()
2{
3 MParList plist;
4 MTaskList tlist;
5 plist.AddToList(&tlist);
6
7 MReadMarsFile read("Events");
8 read.DisableAutoScheme();
9 read.AddFile("test-time.root");
10
11 MEventRateCalc calc;
12 calc.SetNumEvents(200);
13
14 MHVsTime rate("MEventRate.fRate");
15
16 MFillH fill(&rate, "MTime");
17
18 tlist.AddToList(&read);
19 tlist.AddToList(&calc);
20 tlist.AddToList(&fill);
21
22 MEvtLoop loop;
23 loop.SetParList(&plist);
24
25 loop.Eventloop();
26
27 rate.DrawClone();
28}
Note: See TracBrowser for help on using the repository browser.