Last change
on this file since 701 was 689, checked in by harald, 24 years ago |
calculation of errors for collection area included!
|
File size:
747 bytes
|
Line | |
---|
1 | void 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( filename ,"Events" ) ;
|
---|
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.