Changeset 988 for trunk/MagicSoft/Mars/mmain
- Timestamp:
- 10/24/01 15:12:21 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mmain/MMonteCarlo.cc
r954 r988 219 219 // 220 220 MReadTree reader("Events", fInputFile); 221 reader.UseLeaf("fImpact"); 222 reader.UseLeaf("fEnergy"); 223 reader.UseLeaf("fNumFirstLevel"); 224 221 225 tlist.AddToList(&reader); 222 226 … … 288 292 // Check if the list really contains the right number of histograms 289 293 // 290 if (hists.GetEntriesFast() != dim )294 if (hists.GetEntriesFast() != dim && dim) 291 295 return; 292 296 … … 304 308 // 305 309 MReadTree reader("Events", fInputFile); 310 reader.UseLeaf("fImpact"); 311 reader.UseLeaf("fEnergy"); 312 reader.UseLeaf("fPhi"); 313 reader.UseLeaf("fTheta"); 314 reader.UseLeaf("fNumFirstLevel"); 315 reader.UseLeaf("fPhotElfromShower"); 316 306 317 tlist.AddToList(&reader); 307 318 308 Float_t BgR[10]={660, 4,0,0,0,0,0,0,0,0};309 310 MMcTriggerRateCalc crate(dim, 14, BgR, 100000 , 2.75, 10.91e-2);319 Float_t BgR[10]={660, 4, 0, 0, 0, 0, 0, 0, 0, 0}; 320 321 MMcTriggerRateCalc crate(dim, 14, BgR, 100000); 311 322 tlist.AddToList(&crate); 312 323 … … 323 334 return; 324 335 325 TIter Next(&hists); 326 MHMcRate *rate=NULL; 327 while ((rate=(MHMcRate*)Next())) 328 rate->Print(); 336 hists.Print(); 329 337 } 330 338 … … 378 386 // like one dimension MMcThresholdCalc 379 387 // 380 MReadTree read("Events", fInputFile); 388 MReadTree read("Events", fInputFile); 389 read.VetoBranch("MRawEvtData"); 390 read.VetoBranch("MRawEvtHeader"); 391 381 392 MMcThresholdCalc calc(dim); 382 383 393 tlist.AddToList(&read); 384 394 tlist.AddToList(&calc); … … 398 408 // 399 409 TIter Next(&hists); 400 MHMcRate *hist=NULL;401 while (( hist=(MHMcRate*)Next()))402 hist->DrawClone();410 TObject *obj; 411 while ((obj=Next())) 412 obj->DrawClone(); 403 413 } 404 414
Note:
See TracChangeset
for help on using the changeset viewer.