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

Last change on this file since 592 was 592, checked in by harald, 24 years ago
Introduced a Task to read in the data from CT1 files to study the behaviour of different analysis methods. Also the macro "macros/readCT1.C" was added that reads in the CT1 data files and puts the content in the MNphotEvent container. Then you can access that representation of this event.
File size: 675 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 plist->AddToList( phevt ) ;
14
15 MReadCT1Ascii *readct1 = new MReadCT1Ascii("/hd10/www/Anal_MAGIC/MCCT1_99_ga20.dat") ;
16
17 // MReadCT1Ascii *readct1 = new MReadCT1Ascii("/hd10/www/Anal_MAGIC/CT1_99_on1.dat") ;
18
19
20 cout << readct1->PreProcess(plist) << endl ;
21
22 Int_t icount = 0 ;
23 while ( readct1->Process() == kTRUE )
24 {
25 cout << "Event: " << icount++ << endl ;
26 // phevt->Print() ;
27 }
28
29 cout << readct1->PostProcess() << endl ;
30}}
31
Note: See TracBrowser for help on using the repository browser.