Changeset 895
- Timestamp:
- 07/23/01 14:44:07 (23 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r894 r895 15 15 We cannot use GetBranch()->SetAddress() we have to use 16 16 SetBranchAddress. 17 18 * macros/MagicHillas.C: 19 - changed to new stilish histogram fillers. 17 20 18 21 -
trunk/MagicSoft/Mars/macros/MagicHillas.C
r769 r895 51 51 // CalEvents: Calibration Events 52 52 // 53 MReadTree read("Events", "data/ my_file.root");54 // read.AddFile("data/ test.root");53 MReadTree read("Events", "data/cer000020.root"); 54 // read.AddFile("data/cer000019.root"); 55 55 56 MCerPhotCalc ncalc; 57 MImgCleanStd clean; 58 MHillasCalc hcalc; 59 MFillHHillas hfill; 60 MFillHStarMap sfill; 56 MCerPhotCalc ncalc; 57 MImgCleanStd clean; 58 MHillasCalc hcalc; 59 MFillH hfill("MHillas", "MHHillas"); 60 MFillHStarMap sfill("MHillas", "MHStarMap"); 61 MWriteRootFile write("hillas.root"); 62 write.AddContainer("MHillas"); 63 write.AddContainer("MHHillas"); 64 write.AddContainer(smap); 61 65 62 66 tlist.AddToList(&read); … … 66 70 tlist.AddToList(&hfill); 67 71 tlist.AddToList(&sfill); 72 tlist.AddToList(&write); 68 73 69 74 // … … 76 81 // Execute your analysis 77 82 // 78 evtloop.Eventloop(); 83 if (!evtloop.Eventloop()) 84 return; 79 85 80 86 // -
trunk/MagicSoft/Mars/mbase/MReadTree.cc
r894 r895 108 108 // 109 109 // If you want to read the given tree over several files you must add 110 // the files here before PreProcess is called. Be carfull: This does 111 // only work if the trees in the files containing the same branches yet. 110 // the files here before PreProcess is called. Be careful: If the tree 111 // doesn't have the same contents (branches) it may confuse your 112 // program (trees which are are not existing in later files are not read 113 // anymore, tree wich are not existing in the first file are never read) 112 114 // 113 115 /*Int_t*/ void MReadTree::AddFile(const char *fname) … … 175 177 continue; 176 178 177 178 179 // 179 180 // Create a pointer to the pointer to the object in which the … … 202 203 // the actual branch should be stored - enable branch. 203 204 // 204 // FIXME: is it correct, that the pointer is deleted immediatly afterwards?205 205 fChain->SetBranchAddress(name, pcont); 206 206 }
Note:
See TracChangeset
for help on using the changeset viewer.