source: trunk/MagicSoft/Mars/macros/readCT1.C@ 594

Last change on this file since 594 was 594, checked in by harald, 24 years ago
problems with running the macro readCT1.C. The reason was the Name and Title of MNphotEvent. --> Solved!!
File size: 678 bytes
Line 
1{{
2
3 // load the shared lib
4 gSystem->Load("lib/mars.so") ;
5
6 MTaskList *tlist = new MTaskList() ;
7 MParList *plist = new MParList() ;
8
9 //
10
11 MNphotEvent *phevt = new MNphotEvent() ;
12
13
14 plist->AddToList( phevt ) ;
15
16
17 MReadCT1Ascii *readct1 = new MReadCT1Ascii("/hd10/www/Anal_MAGIC/MCCT1_99_ga20.dat") ;
18
19 // MReadCT1Ascii *readct1 = new MReadCT1Ascii("/hd10/www/Anal_MAGIC/CT1_99_on1.dat") ;
20
21
22
23 cout << readct1->PreProcess(plist) << endl ;
24
25 Int_t icount = 0 ;
26 while ( readct1->Process() == kTRUE )
27 {
28 cout << "Event: " << icount++ << endl ;
29 // phevt->Print() ;
30 }
31
32 cout << readct1->PostProcess() << endl ;
33}}
34
Note: See TracBrowser for help on using the repository browser.