Last change
on this file since 687 was 686, checked in by harald, 24 years ago |
Added the first implementation of macro to calculate the
trigger collection area. the macro is called getCollArea.C
|
File size:
702 bytes
|
Line | |
---|
1 | {{
|
---|
2 |
|
---|
3 | MParList *parlist = new MParList() ;
|
---|
4 | MTaskList *tasklist = new MTaskList() ;
|
---|
5 |
|
---|
6 | MMcEvt *mcEvt = new MMcEvt() ;
|
---|
7 | parlist->AddToList( mcEvt ) ;
|
---|
8 |
|
---|
9 | MMcTrig *McTrig = new MMcTrig() ;
|
---|
10 | parlist->AddToList( McTrig ) ;
|
---|
11 |
|
---|
12 | MCollArea *collArea = new MCollArea() ;
|
---|
13 | parlist->AddToList( collArea ) ;
|
---|
14 |
|
---|
15 |
|
---|
16 | MReadTree reader("/big0/Maggi/CamData/Gamma/gamma_15_on.root","Events" ) ;
|
---|
17 | tasklist->AddToList( &reader ) ;
|
---|
18 |
|
---|
19 | MCollAreaTrigger effi ;
|
---|
20 | tasklist->AddToList( &effi) ;
|
---|
21 |
|
---|
22 | parlist.AddToList( tasklist);
|
---|
23 |
|
---|
24 | tasklist->Print() ;
|
---|
25 |
|
---|
26 | // set up the loop for the processing
|
---|
27 |
|
---|
28 | MEvtLoop magic;
|
---|
29 | magic.SetParList( parlist );
|
---|
30 |
|
---|
31 |
|
---|
32 | magic.Eventloop() ;
|
---|
33 |
|
---|
34 | collArea->Draw() ;
|
---|
35 |
|
---|
36 | }}
|
---|
Note:
See
TracBrowser
for help on using the repository browser.