Changeset 954 for trunk/MagicSoft/Mars/macros
- Timestamp:
- 09/28/01 10:51:06 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/getRate.C
r948 r954 61 61 // macro yet) 62 62 // 63 TObjArray *hists = new TObjArray(MParList::CreateObjList("MHMcRate", dim)); 63 TObjArray hists(MParList::CreateObjList("MHMcRate", dim)); 64 hists.SetOwner(); 64 65 65 66 // 66 67 // Check if the list really contains the right number of histograms 67 68 // 68 if (hists ->GetEntriesFast() != dim)69 if (hists.GetEntriesFast() != dim) 69 70 return; 70 71 … … 72 73 // Add the histograms to the paramater list. 73 74 // 74 parlist.AddToList( hists);75 parlist.AddToList(&hists); 75 76 76 77 // … … 99 100 // Start to loop over all events 100 101 // 101 magic.Eventloop(); 102 if (!magic.Eventloop()) 103 return; 102 104 105 TIter Next(&hists); 106 MHMcRate *rate=NULL; 107 while ((rate=(MHMcRate*)Next())) 108 rate->Print(); 103 109 }
Note:
See TracChangeset
for help on using the changeset viewer.