Changeset 1800 for trunk/MagicSoft/Mars/macros
- Timestamp:
- 02/27/03 14:56:53 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/trigrate.C
r1797 r1800 131 131 return; 132 132 133 // Set for each MHMcRate object the trigger condition number in the 134 // camera file (for the case of camera files with several conditions, 135 // produced with the trigger_loop option. 136 // 137 138 if (dim < 0) 139 ((MHMcRate*)(hists[0]))->SetTriggerCondNum((Short_t)(-dim)); 140 else if (dim > 0) 141 for (Short_t i = from ; i <= to; i++) 142 ((MHMcRate*)(hists[i-1]))->SetTriggerCondNum(i); 143 133 144 // 134 145 // Add the histograms to the paramater list. … … 187 198 gStyle->SetOptStat(0); 188 199 rate->Draw(); 200 201 TFile f("ratehists.root", "recreate"); 202 203 rate->GetHist(2)->Write(); 204 rate->GetHist(3)->Write(); 205 rate->GetHist(4)->Write(); 189 206 } 207 208 190 209 } 191 192 193 194
Note:
See TracChangeset
for help on using the changeset viewer.