Changeset 1076 for trunk/MagicSoft/Mars/macros/readCT1.C
- Timestamp:
- 11/14/01 10:03:20 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/readCT1.C
r1038 r1076 37 37 38 38 MCT1ReadAscii read("/home/tbretz/data/CT1_97_off1.dat"); 39 MClone clone("MCerPhotEvt"); 39 40 MImgCleanStd clean; 40 41 MHillasCalc hcalc; 41 42 42 43 tlist.AddToList(&read); 44 tlist.AddToList(&clone); 43 45 tlist.AddToList(&clean); 44 46 tlist.AddToList(&hcalc); … … 50 52 return; 51 53 52 MCerPhotEvt &phevt = *(MCerPhotEvt*)plist->FindObject("MCerPhotEvt");53 54 54 Int_t icount = 0; 55 55 MCamDisplay display(&geomcam); 56 56 display.Draw(); 57 57 58 while ( read.Process())58 while (tlist.Process()) 59 59 { 60 cout << "Event: " << icount++ << endl; 61 hillas.Reset(); 60 cout << "Event #" << icount++ << endl; 62 61 63 display.DrawPhotNum( &phevt);62 display.DrawPhotNum((MCerPhotEvt*)clone.GetClone()); 64 63 gClient->HandleInput(); 65 64 if(getchar()=='q') 66 65 break; 67 66 68 clean.Process();69 70 if (hcalc.Process()==kCONTINUE)71 {72 cout << "skipped." << endl;73 continue;74 }75 76 67 hillas.Print(); 77 68 hillas.Draw(); 78 79 display.DrawPhotNum(&phevt); 69 display.DrawPhotNum((MCerPhotEvt*)plist.FindObject("MCerPhotEvt")); 80 70 81 71 gClient->HandleInput();
Note:
See TracChangeset
for help on using the changeset viewer.