Changeset 753 for trunk/MagicSoft/Mars/macros
- Timestamp:
- 04/18/01 16:26:42 (24 years ago)
- Location:
- trunk/MagicSoft/Mars/macros
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/dohtml.C
r749 r753 8 8 // create the html document class 9 9 // 10 THtml html;10 MHtml html; 11 11 12 12 html.SetOutputDir("htmldoc"); 13 html.SetSourceDir(".:mbase:mraw:mgui:manalysis:mdatacheck:m eventdisp:mmc");13 html.SetSourceDir(".:mbase:mraw:mgui:manalysis:mdatacheck:mmain:meventdisp:mmc:mmontecarlo:mhist"); 14 14 html.SetXwho("http://hegra1.mppmu.mpg.de/MAGICWeb/collaborators.html?"); 15 15 … … 17 17 18 18 html.SetSourceDir("macros"); 19 html.Convert("merpp.C", "MARS - Merging and Preprocessing"); 20 html.Convert("readraw.C", "MARS - How To Read A Raw"); 21 html.Convert("rootlogon.C", "MARS - rootlogon.C"); 19 html.Convert("merpp.C", "MARS - Merging and Preprocessing"); 20 html.Convert("readraw.C", "MARS - How To Read A Raw"); 21 html.Convert("rootlogon.C", "MARS - rootlogon.C"); 22 html.Convert("readCT1.C", "MARS - Read and display CT1 Events"); 23 html.Convert("readMagic.C", "MARS - Read and display Magic Events"); 24 html.Convert("CT1Hillas.C", "MARS - Calculate CT1 Hillas"); 25 html.Convert("MagicHillas.C", "MARS - Calculate Magic Hillas"); 26 html.Convert("getCollArea.C", "MARS - Calculate Collection Area from a MC root file"); 22 27 } -
trunk/MagicSoft/Mars/macros/getCollArea.C
r705 r753 1 1 void getCollArea(char *filename = "/big0/Maggi/CamData/Gamma/gamma_15_on.root" ) 2 2 { 3 4 MParList *parlist = new MParList() ; 5 MTaskList *tasklist = new MTaskList() ; 6 7 MMcEvt *mcEvt = new MMcEvt() ; 8 parlist->AddToList( mcEvt ) ; 3 // FIXME: Harald, you should tell the people what the result of 4 // this macro really is. 9 5 10 MMcTrig *McTrig = new MMcTrig() ; 11 parlist->AddToList( McTrig ) ; 6 // 7 // first we have to create our empty lists 8 // 9 MParList parlist; 10 MTaskList tasklist; 12 11 13 MCollArea *collArea = new MCollArea() ; 14 parlist->AddToList( collArea ) ; 12 // 13 // Setup the parameter list. 14 // - we need to create MCollArea only. The other containers 15 // are created automatically without loss - we don't have to 16 // access them- 17 // - MCollArea must be created by us because we need the pointer 18 // to it and if it would get created automatically it would also be 19 // deleted automatically 20 // 21 parlist.AddToList(&tasklist); 15 22 23 MCollArea *collArea = new MCollArea(); 24 parlist.AddToList(collArea); 16 25 17 MReadTree reader( "Events", filename) ; 18 tasklist->AddToList( &reader ) ; 26 // 27 // Setup out tasks: 28 // - First we have to read the events 29 // - Then we can fill the efficiency histograms 30 // 31 MReadTree reader("Events", filename); 32 tasklist.AddToList(&reader); 19 33 20 MCollAreaTrigger effi ; 21 tasklist->AddToList( &effi) ; 22 23 parlist.AddToList( tasklist); 34 MCollAreaTrigger effi; 35 tasklist.AddToList(&effi); 24 36 25 tasklist->Print() ; 37 // 38 // set up the loop for the processing 39 // 40 MEvtLoop magic; 41 magic.SetParList(&parlist); 26 42 27 // set up the loop for the processing28 29 MEvtLoop magic;30 magic.SetParList( parlist);43 // 44 // Start to loop over all events 45 // 46 magic.Eventloop(); 31 47 32 33 magic.Eventloop() ;34 35 collArea->Draw() ;36 48 // 49 // Now the histogram we wanted to get out of the data is 50 // filled and can be displayd 51 // 52 collArea->Draw(); 37 53 } -
trunk/MagicSoft/Mars/macros/readCT1.C
r716 r753 34 34 while (read.Process()) 35 35 { 36 cout << "Event: " << icount++ << endl 36 cout << "Event: " << icount++ << endl; 37 37 38 38 display.DrawPhotNum(&phevt);
Note:
See TracChangeset
for help on using the changeset viewer.