Changeset 584 for trunk/MagicSoft/Mars
- Timestamp:
- 01/19/01 14:20:51 (24 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r574 r584 1 -*-*- END -*-*- 1 -*-*- END -*-*- 2 3 2000/01/19: Thomas Bretz 4 5 * mmc/*.hxx: 6 - changed include of MDefineTrigger.h back 7 8 9 2000/01/19: Oscar Blanch 10 11 * mmc/MTriggerDefine.h: 12 - added 13 14 2 15 2000/01/18: Thomas Bretz 3 4 * Makefile:5 - mmc-library added6 7 * Makefile.conf.general:8 - Added definition of __MARS__9 10 * Makefile.rules:11 - Added definitions to rootcint12 13 * Oscar added the McFormat subdir of the Monte Carlo as mmc14 15 * mmc/MMcEvt.h:16 - renamed to MMcEvt.hxx17 18 * mmc/*.hxx:19 - added necessary defintions from MDefineTrigger.h20 21 * mmc/Makefile, mmc/McLinkDef.h, mmc/McIncl.h, mmc/readme.txt:22 - added23 24 * mmc/LinkDef.h:25 - removed26 16 17 * Makefile: 18 - mmc-library added 19 20 * Makefile.conf.general: 21 - Added definition of __MARS__ 22 23 * Makefile.rules: 24 - Added definitions to rootcint 25 26 * Oscar added the McFormat subdir of the Monte Carlo as mmc 27 28 * mmc/MMcEvt.h: 29 - renamed to MMcEvt.hxx 30 31 * mmc/*.hxx: 32 - added necessary defintions from MDefineTrigger.h 33 34 * mmc/Makefile, mmc/McLinkDef.h, mmc/McIncl.h, mmc/readme.txt: 35 - added 36 37 * mmc/LinkDef.h: 38 - removed 39 27 40 28 41 2000/01/17: Thomas Bretz 29 30 * Makefile:31 - Exchanged explicit rules to make library by implicit ones32 - The shared object works now. I exchanged the libraries with the object files.33 But I don't know why the libraries don't work.34 35 * Makefile.conf.linux-gnu:36 - replaced CC with gcc (instead of g++)37 38 * mdatacheck/DataCheckLinkDef.h:39 - removed unused statements40 41 * mraw/RawLinkDef.h:42 - added globals43 44 * mraw/MerppLinkDef.h:45 - removed unused file46 47 42 43 * Makefile: 44 - Exchanged explicit rules to make library by implicit ones 45 - The shared object works now. I exchanged the libraries with the object 46 files. But I don't know why the libraries don't work. 47 48 * Makefile.conf.linux-gnu: 49 - replaced CC with gcc (instead of g++) 50 51 * mdatacheck/DataCheckLinkDef.h: 52 - removed unused statements 53 54 * mraw/RawLinkDef.h: 55 - added globals 56 57 * mraw/MerppLinkDef.h: 58 - removed unused file 59 60 48 61 2000/01/12: Thomas Bretz 49 50 * MLinkDef.h, MIncl.h, marslogo.xpm, magiclogo.xpm:51 - added52 53 * LinkDef.h:54 - removed55 56 * Makefile:57 - Added CINT, mrproper58 59 * mbase/Makefile, mraw/Makefile, mgui/Makefile, mdatacheck/Makefile:60 - included makefile.general, Makefile.rules,61 - removes corresponding lines62 63 * mdatacheck/MDumpEvtHeader.[h,cc], mdatacheck/MFillAdcSpect.[cc,h],64 mdatacheck/MFillAdcSpect.[h,cc], mdatacheck/MGDisplayAdc.[cc,h],65 mdatacheck/MHistsosAdc.[h,cc], mdatacheck.MShowSpect.[cc,h]66 - changed include statements67 68 * mgui/MGDataCheckMain.[cc,h], mgui/MGMarsMain.[cc,h]69 - changed include statements70 - move enum from h to cc71 - removed comma operator from delete statements (nonsense)62 63 * MLinkDef.h, MIncl.h, marslogo.xpm, magiclogo.xpm: 64 - added 65 66 * LinkDef.h: 67 - removed 68 69 * Makefile: 70 - Added CINT, mrproper 71 72 * mbase/Makefile, mraw/Makefile, mgui/Makefile, mdatacheck/Makefile: 73 - included makefile.general, Makefile.rules, 74 - removes corresponding lines 75 76 * mdatacheck/MDumpEvtHeader.[h,cc], mdatacheck/MFillAdcSpect.[cc,h], 77 mdatacheck/MFillAdcSpect.[h,cc], mdatacheck/MGDisplayAdc.[cc,h], 78 mdatacheck/MHistsosAdc.[h,cc], mdatacheck.MShowSpect.[cc,h] 79 - changed include statements 80 81 * mgui/MGDataCheckMain.[cc,h], mgui/MGMarsMain.[cc,h] 82 - changed include statements 83 - move enum from h to cc 84 - removed comma operator from delete statements (nonsense) 72 85 73 86 74 87 2001/01/11: Harald Kornmayer 75 88 76 * ./77 readraw.cc, Makefile, Makefile.rules, LinkDef.h, MParList.cc, MReadTree.cc,78 MReadTree.h, mbase/Makefile, mraw/Makefile79 - small changes in this files. Not really critical.89 * ./ 90 readraw.cc, Makefile, Makefile.rules, LinkDef.h, MParList.cc, MReadTree.cc, 91 MReadTree.h, mbase/Makefile, mraw/Makefile 92 - small changes in this files. Not really critical. 80 93 81 * mars.cc82 - added the main file for the gui94 * mars.cc 95 - added the main file for the gui 83 96 84 * mgui/85 GuiIncl.h, MGMarsMain.cc, GuiLinkDef.h, MGMarsMain.h, MGDataCheckMain.cc,86 Makefile, MGDataCheckMain.h87 - added the subdir mgui and this files97 * mgui/ 98 GuiIncl.h, MGMarsMain.cc, GuiLinkDef.h, MGMarsMain.h, MGDataCheckMain.cc, 99 Makefile, MGDataCheckMain.h 100 - added the subdir mgui and this files 88 101 89 * mdatacheck/90 DataCheckIncl.h, DataCheckLinkDef.h, MHistosAdc.cc, MHistosAdc.h,91 MDumpEvtHeader.cc, MDumpEvtHeader.h, MShowSpect.cc, MShowSpect.h,92 MFillAdcSpect.cc, MFillAdcSpect.h, MViewAdcSpectra.cc, MViewAdcSpectra.h,93 MGDisplayAdc.cc, MGDisplayAdc.h, Makefile94 - added the subdir mdatacheck and this files102 * mdatacheck/ 103 DataCheckIncl.h, DataCheckLinkDef.h, MHistosAdc.cc, MHistosAdc.h, 104 MDumpEvtHeader.cc, MDumpEvtHeader.h, MShowSpect.cc, MShowSpect.h, 105 MFillAdcSpect.cc, MFillAdcSpect.h, MViewAdcSpectra.cc, MViewAdcSpectra.h, 106 MGDisplayAdc.cc, MGDisplayAdc.h, Makefile 107 - added the subdir mdatacheck and this files 95 108 96 109 97 110 2000/12/28: Thomas Bretz 98 99 * merpp.cc, MArray.cc, MArray.h, MArrayB.cc, MArrayB.h, MArrayS.cc,100 MArrayS.h, MEvtLoop.cc, MEvtLoop.h, MInputStreamID.cc, MInputStreamID.h,101 MParContainer.cc, MParContainer.h, MParList.cc, MParList.h, MReadTree.cc,102 MTask.cc, MTask.h, MTaskList.cc, MTaskList.h, MTime.cc, MTime.h:103 - Added changes some comments.104 105 * MLoopEvt.cc, MLoopEvt.h:106 - Removed111 112 * merpp.cc, MArray.cc, MArray.h, MArrayB.cc, MArrayB.h, MArrayS.cc, 113 MArrayS.h, MEvtLoop.cc, MEvtLoop.h, MInputStreamID.cc, MInputStreamID.h, 114 MParContainer.cc, MParContainer.h, MParList.cc, MParList.h, MReadTree.cc, 115 MTask.cc, MTask.h, MTaskList.cc, MTaskList.h, MTime.cc, MTime.h: 116 - Added changes some comments. 117 118 * MLoopEvt.cc, MLoopEvt.h: 119 - Removed 107 120 108 121 109 122 2000/12/22 - Thomas Bretz: 110 111 * readraw.cc:112 - changed some comments and the Root-Name of the program113 - added check for the existance of the file114 - changed name of numbers of entries from iEnt to nent115 123 116 * dohtml.C: 117 - changed title of converted macros 118 119 * MRawEvtData.cc: 120 - added a commet in Draw() 121 122 * MRawEvtPixelIter.[h,cc]: 123 - Added the comment header of the file 124 - removed inheritance from TIterator (not needed) 125 - some changes to get it work (the one in the repository was untested 126 and not working) 127 - changed calling style of iterator from do...while to while-loop 128 - changed some comments 129 130 * MRawRunHeader.cc: 131 - added some comments 124 * readraw.cc: 125 - changed some comments and the Root-Name of the program 126 - added check for the existance of the file 127 - changed name of numbers of entries from iEnt to nent 132 128 133 * Changelog, News: added 134 135 * test.C: removed 129 * dohtml.C: 130 - changed title of converted macros 131 132 * MRawEvtData.cc: 133 - added a commet in Draw() 134 135 * MRawEvtPixelIter.[h,cc]: 136 - Added the comment header of the file 137 - removed inheritance from TIterator (not needed) 138 - some changes to get it work (the one in the repository was untested 139 and not working) 140 - changed calling style of iterator from do...while to while-loop 141 - changed some comments 142 143 * MRawRunHeader.cc: 144 - added some comments 145 146 * Changelog, News: added 147 148 * test.C: removed -
trunk/MagicSoft/Mars/readraw.cc
r583 r584 18 18 #include "MInputStreamID.h" 19 19 20 #include "MMcEvt.h "20 #include "MMcEvt.hxx" 21 21 22 22 #include "MGMarsMain.h" … … 72 72 // open the file 73 73 // 74 75 74 cout << " Open the file " << endl ; 76 77 75 TFile input(argv[1], "READ"); 78 76 … … 80 78 // open the Run Header and read in 81 79 // 82 83 80 cout << " Check the RunHeader " << endl ; 84 81 TTree *runtree = (TTree*) input.Get("RunHeaders") ; 85 82 86 83 if (!runtree) 87 {88 cout << endl 89 << " WARNING: This file has NO RunHeader " 90 << endl << endl ; 91 }84 { 85 cout << endl 86 << " WARNING: This file has NO RunHeader " 87 << endl << endl ; 88 } 92 89 else 93 {94 95 96 97 98 99 100 }90 { 91 cout << " Entries in Tree RunHeaders: " << dec << runtree->GetEntries() << endl ; 92 93 runtree->GetBranch("MRawRunHeader")->SetAddress(&runheader); 94 runtree->GetEvent(0); 95 96 runheader->Print(); 97 } 101 98 102 99 // 103 100 // open the DataTree and read in 104 101 // 105 106 102 cout << " Check the Event Tree " << endl ; 107 108 103 TTree *evttree = (TTree*) input.Get("Events") ; 109 110 104 cout << " Check all the Branches in the Tree " << endl ; 111 105 112 106 // 113 107 // check the branches in the Tree 114 108 // 115 109 TIter Next(evttree->GetListOfBranches()); 116 110 TBranch *branch=NULL; 117 111 118 while ( (branch=(TBranch*)Next()))112 while ((branch=(TBranch*)Next())) 119 113 { 120 114 // … … 123 117 const char *name = branch->GetName(); 124 118 125 // cout << name << endl ; 119 if (!strcmp(name, "MRawEvtHeader")) 120 evttree->GetBranch("MRawEvtHeader")->SetAddress(&evtheader); 126 121 127 if ( ! strcmp(name, "MRawEvtHeader"))128 evttree->GetBranch("MRawEvtHeader")->SetAddress(&evtheader);122 if (!strcmp(name, "MTime")) 123 evttree->GetBranch("MTime")->SetAddress(&evttime); 129 124 130 if ( ! strcmp(name, "MTime"))131 evttree->GetBranch("MTime")->SetAddress(&evttime);125 if (!strcmp(name, "MRawEvtData")) 126 evttree->GetBranch("MRawEvtData")->SetAddress(&evtdata); 132 127 133 if ( ! strcmp(name, "MRawEvtData"))134 evttree->GetBranch("MRawEvtData")->SetAddress(&evtdata);128 if (!strcmp(name, "MRawCrateArray")) 129 evttree->GetBranch("MRawCrateArray")->SetAddress(&evtcrate); 135 130 136 if ( ! strcmp(name, "MRawCrateArray"))137 evttree->GetBranch("MRawCrateArray")->SetAddress(&evtcrate);131 if (!strcmp(name, "MMcEvt")) 132 evttree->GetBranch("MMcEvt")->SetAddress(&evtmc); 138 133 139 if ( ! strcmp(name, "MMcEvt") ) 140 evttree->GetBranch("MMcEvt")->SetAddress(&evtmc); 134 if (!strcmp(name, "MMcTrig")) 135 cout << " Not able to connect to class MMcTrig yet." << endl; 136 } 141 137 142 if ( ! strcmp(name, "MMcTrig") ) 143 cout << " Not able to connect to class MMcTrig yet " << endl ; 138 // 139 // loop over all entries 140 // 141 Int_t nent = (Int_t)evttree->GetEntries(); 144 142 145 146 } 147 148 // loop over all entries 149 150 Int_t nent = (Int_t)evttree->GetEntries(); 151 152 cout << endl << endl 153 << " Entries in Tree Data: " << dec << nent << endl; 143 cout << endl << endl; 144 cout << " Entries in Tree Data: " << dec << nent << endl; 154 145 155 146 for (Int_t i = 0; i<nent; i++) … … 157 148 cout << "Entry: " << i << endl; 158 149 150 // 159 151 // readin event with the selected branches 152 // 160 153 evttree->GetEvent(i); 161 154 … … 166 159 evtcrate->Print(); 167 160 evtdata->Print(); 168 169 161 } 170 162
Note:
See TracChangeset
for help on using the changeset viewer.