- Timestamp:
- 10/29/01 13:23:39 (23 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r1007 r1008 98 98 - changed fName, fTitle from pointer to static object 99 99 - changed to use auto enabling scheme 100 100 101 * macros/threshold.C, macros/collarea.C, macros/trigrate.C: 102 - removed UseLeaf 103 101 104 * mraw/MRawFileWrite.cc: 102 105 - changed fName, fTitle from pointer to static object -
trunk/MagicSoft/Mars/macros/threshold.C
r988 r1008 78 78 // 79 79 MReadTree read("Events", filename); 80 read.UseLeaf("fEnergy");81 read.UseLeaf("fNumFirstLevel");82 83 80 MMcThresholdCalc calc(numtrigcond); 84 81 … … 99 96 // Now you can display the results 100 97 // 98 hists.Print(); 99 101 100 TIter Next(&hists); 102 101 TObject *obj; -
trunk/MagicSoft/Mars/macros/trigrate.C
r988 r1008 61 61 // macro yet) 62 62 // 63 TObjArray hists(MParList::CreateObjList("MHMcRate", dim)); 63 UInt_t from = dim>0 ? 1 : -dim; 64 UInt_t to = dim>0 ? dim : -dim; 65 66 Int_t num = to-from+1; 67 68 TObjArray hists(MParList::CreateObjList("MHMcRate", num)); 64 69 hists.SetOwner(); 65 70 … … 67 72 // Check if the list really contains the right number of histograms 68 73 // 69 if (hists.GetEntriesFast() != dim && dim)74 if (hists.GetEntriesFast() != num) 70 75 return; 71 76 … … 83 88 // 84 89 MReadTree reader("Events", filename); 85 reader.UseLeaf("fImpact");86 reader.UseLeaf("fEnergy");87 reader.UseLeaf("fPhi");88 reader.UseLeaf("fTheta");89 reader.UseLeaf("fNumFirstLevel");90 reader.UseLeaf("fPhotElfromShower");91 90 tasklist.AddToList(&reader); 92 91 93 92 Float_t BgR[10]={660, 4, 0, 0, 0, 0, 0, 0, 0, 0}; 94 cout << "Number of Trigger conditions: " << dim << endl;93 cout << "Number of Trigger conditions: " << num << endl; 95 94 96 MMcTriggerRateCalc rate( dim, 14, BgR, 100000);95 MMcTriggerRateCalc rate(num, 14, BgR, 100000); 97 96 tasklist.AddToList(&rate); 98 97
Note:
See TracChangeset
for help on using the changeset viewer.