source: trunk/MagicSoft/Mars/macros/getCollArea.C@ 706

Last change on this file since 706 was 705, checked in by tbretz, 24 years ago
*** empty log message ***
File size: 745 bytes
Line 
1void getCollArea(char *filename = "/big0/Maggi/CamData/Gamma/gamma_15_on.root" )
2{
3
4 MParList *parlist = new MParList() ;
5 MTaskList *tasklist = new MTaskList() ;
6
7 MMcEvt *mcEvt = new MMcEvt() ;
8 parlist->AddToList( mcEvt ) ;
9
10 MMcTrig *McTrig = new MMcTrig() ;
11 parlist->AddToList( McTrig ) ;
12
13 MCollArea *collArea = new MCollArea() ;
14 parlist->AddToList( collArea ) ;
15
16
17 MReadTree reader( "Events", filename) ;
18 tasklist->AddToList( &reader ) ;
19
20 MCollAreaTrigger effi ;
21 tasklist->AddToList( &effi) ;
22
23 parlist.AddToList( tasklist);
24
25 tasklist->Print() ;
26
27 // set up the loop for the processing
28
29 MEvtLoop magic;
30 magic.SetParList( parlist );
31
32
33 magic.Eventloop() ;
34
35 collArea->Draw() ;
36
37}
Note: See TracBrowser for help on using the repository browser.