Changeset 753
- Timestamp:
- 04/18/01 16:26:42 (24 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 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); -
trunk/MagicSoft/Mars/mbase/MHtml.cc
r752 r753 1 // @(#)root/html:$Name: not supported by cvs2svn $:$Id: MHtml.cc,v 1. 1 2001-04-18 13:34:23tbretz Exp $1 // @(#)root/html:$Name: not supported by cvs2svn $:$Id: MHtml.cc,v 1.2 2001-04-18 15:26:04 tbretz Exp $ 2 2 // Author: Nenad Buncic 18/10/95 3 3 … … 722 722 Bool_t postponeMemberDescr = kFALSE; 723 723 Bool_t skipMemberName = kFALSE; 724 Bool_t writeBracket = kFALSE; 724 725 streampos postponedpos = 0; 725 726 … … 824 825 825 826 826 if( extractComments 827 if( extractComments) { 827 828 if( firstCommentLine ) { 828 829 out << "<pre>"; … … 948 949 949 950 if( method ) { 951 950 952 if (skipMemberName) 951 953 { 952 954 skipMemberName = kFALSE; 955 writeBracket = kTRUE; 953 956 sourceFile.seekg(postponedpos); 954 957 } … … 1057 1060 ExpandKeywords( out, nameEndPtr, classPtr, flag ); 1058 1061 out << "<br>" << endl; 1062 1059 1063 if (postponeMemberDescr) 1060 1064 { 1061 postponeMemberDescr = kFALSE;1062 1065 streampos pos = sourceFile.tellg(); 1063 1066 sourceFile.seekg(postponedpos); 1064 1067 postponedpos = pos; 1065 1068 skipMemberName = kTRUE; 1069 postponeMemberDescr = kFALSE; 1066 1070 } 1067 1071 extractComments = kTRUE; … … 1075 1079 1076 1080 // write to '.cxx.html' file 1077 if( thisLineIsPpLine ) 1078 ExpandPpLine( tempFile, fLine ); 1079 else { 1080 if( thisLineIsCommented ) tempFile << "<b>"; 1081 ExpandKeywords( tempFile, fLine, classPtr, tempFlag, "../" ); 1082 if( thisLineIsCommented ) tempFile << "</b>"; 1081 if (!skipMemberName) 1082 { 1083 if( thisLineIsPpLine ) 1084 ExpandPpLine( tempFile, fLine ); 1085 else { 1086 if( thisLineIsCommented) tempFile << "<b>"; 1087 ExpandKeywords( tempFile, fLine, classPtr, tempFlag, "../" ); 1088 if( thisLineIsCommented ) tempFile << "</b>"; 1089 } 1090 tempFile << endl; 1091 1092 if (writeBracket) 1093 { 1094 writeBracket = kFALSE; 1095 tempFile << "{" << endl; 1096 } 1083 1097 } 1084 tempFile << endl; 1098 1085 1099 } 1086 1100 tempFile << "</pre>" << endl; -
trunk/MagicSoft/Mars/mgui/MGeomCamCT1.h
r715 r753 22 22 void Draw(Option_t *option = "" ) ; 23 23 24 ClassDef(MGeomCamCT1, 1) // Geometry class for the camera24 ClassDef(MGeomCamCT1, 1) // Geometry class for the CT1 camera 25 25 }; 26 26
Note:
See TracChangeset
for help on using the changeset viewer.