Changeset 991 for trunk/MagicSoft/Mars/mmain
- Timestamp:
- 10/26/01 10:11:30 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mmain/MMonteCarlo.cc
r989 r991 290 290 // macro yet) 291 291 // 292 TObjArray hists(MParList::CreateObjList("MHMcRate", dim)); 292 const UInt_t from = dim>0 ? 1 : -dim; 293 const UInt_t to = dim>0 ? dim : -dim; 294 const Int_t num = to-from+1; 295 296 TObjArray hists(MParList::CreateObjList("MHMcRate", from, to)); 293 297 hists.SetOwner(); 294 298 … … 296 300 // Check if the list really contains the right number of histograms 297 301 // 298 if (hists.GetEntriesFast() != dim && dim)302 if (hists.GetEntriesFast() != num) 299 303 return; 300 304 … … 367 371 // and store the histograms in an TObjArray 368 372 // 369 TObjArray hists(MParList::CreateObjList("MHMcEnergy", dim)); 373 const UInt_t from = dim>0 ? 1 : -dim; 374 const UInt_t to = dim>0 ? dim : -dim; 375 const Int_t num = to-from+1; 376 377 TObjArray hists(MParList::CreateObjList("MHMcEnergy", from, to)); 370 378 hists.SetOwner(); 371 379 … … 373 381 // Check if the list really contains the right number of histograms 374 382 // 375 if (hists.GetEntriesFast() != dim)383 if (hists.GetEntriesFast() != num) 376 384 return; 377 385 … … 391 399 // 392 400 MReadTree read("Events", fInputFile); 393 read. VetoBranch("MRawEvtData");394 read. VetoBranch("MRawEvtHeader");401 read.UseLeaf("fEnergy"); 402 read.UseLeaf("fNumFirstLevel"); 395 403 396 404 MMcThresholdCalc calc(dim);
Note:
See TracChangeset
for help on using the changeset viewer.