Changeset 984 for trunk/MagicSoft/Mars/macros
- Timestamp:
- 10/24/01 13:57:43 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/trigrate.C
r971 r984 24 24 25 25 26 void trigrate(int dim=0, char *filename = " /big0/Maggi/CamData/Gamma/gamma_15_on.root" )26 void trigrate(int dim=0, char *filename = "data/camera.root" ) 27 27 { 28 28 // This macro has two input parameter: … … 67 67 // Check if the list really contains the right number of histograms 68 68 // 69 if (hists.GetEntriesFast() != dim )69 if (hists.GetEntriesFast() != dim && dim) 70 70 return; 71 71 … … 83 83 // 84 84 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"); 85 91 tasklist.AddToList(&reader); 86 92 … … 88 94 cout << "Number of Trigger conditions: " << dim << endl; 89 95 90 MMcTriggerRateCalc rate(dim, 14, BgR, 100000 , 2.75, 10.91e-2);96 MMcTriggerRateCalc rate(dim, 14, BgR, 100000); 91 97 tasklist.AddToList(&rate); 92 98 … … 104 110 105 111 TIter Next(&hists); 106 MHMcRate *r ate=NULL;107 while ((r ate=(MHMcRate*)Next()))108 r ate->Print();112 MHMcRate *r=NULL; 113 while ((r=(MHMcRate*)Next())) 114 r->Print(); 109 115 }
Note:
See TracChangeset
for help on using the changeset viewer.