Changeset 8695 for trunk/MagicSoft/Mars/mhflux
- Timestamp:
- 08/22/07 19:18:35 (17 years ago)
- Location:
- trunk/MagicSoft/Mars/mhflux
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhflux/MAlphaFitter.cc
r8049 r8695 526 526 { 527 527 const TString name(Form("TempAlphaEnergy%06d", gRandom->Integer(1000000))); 528 TH1D *h = hon.ProjectionZ(name, -1, 9999, bin, bin, "E");528 TH1D *h = hon.ProjectionZ(name, -1, -1, bin, bin, "E"); 529 529 h->SetDirectory(0); 530 530 … … 537 537 { 538 538 const TString name(Form("TempAlphaTheta%06d", gRandom->Integer(1000000))); 539 TH1D *h = hon.ProjectionZ(name, bin, bin, -1, 9999, "E");539 TH1D *h = hon.ProjectionZ(name, bin, bin, -1, -1, "E"); 540 540 h->SetDirectory(0); 541 541 … … 551 551 hon.GetZaxis()->SetRange(bin,bin); 552 552 TH1D *h = (TH1D*)hon.Project3D("ye"); 553 hon.GetZaxis()->SetRange(-1, 9999);553 hon.GetZaxis()->SetRange(-1,-1); 554 554 555 555 h->SetDirectory(0); … … 563 563 { 564 564 const TString name(Form("TempAlpha%06d", gRandom->Integer(1000000))); 565 TH1D *h = hon.ProjectionZ(name, -1, 9999, -1, 9999, "E");565 TH1D *h = hon.ProjectionZ(name, -1, -1, -1, -1, "E"); 566 566 h->SetDirectory(0); 567 567 … … 576 576 const TString name0(Form("TempAlpha%06d_off", gRandom->Integer(1000000))); 577 577 578 TH1D *h1 = hon.ProjectionZ(name1, -1, 9999, bin, bin, "E");579 TH1D *h0 = hof.ProjectionZ(name0, -1, 9999, bin, bin, "E");578 TH1D *h1 = hon.ProjectionZ(name1, -1, -1, bin, bin, "E"); 579 TH1D *h0 = hof.ProjectionZ(name0, -1, -1, bin, bin, "E"); 580 580 h1->SetDirectory(0); 581 581 h0->SetDirectory(0); … … 594 594 const TString name0(Form("TempAlpha%06d_off", gRandom->Integer(1000000))); 595 595 596 TH1D *h1 = hon.ProjectionZ(name1, bin, bin, -1, 9999, "E");597 TH1D *h0 = hof.ProjectionZ(name0, bin, bin, -1, 9999, "E");596 TH1D *h1 = hon.ProjectionZ(name1, bin, bin, -1, -1, "E"); 597 TH1D *h0 = hof.ProjectionZ(name0, bin, bin, -1, -1, "E"); 598 598 h1->SetDirectory(0); 599 599 h0->SetDirectory(0); … … 614 614 hon.GetZaxis()->SetRange(bin,bin); 615 615 TH1D *h1 = (TH1D*)hon.Project3D("ye"); 616 hon.GetZaxis()->SetRange(-1, 9999);616 hon.GetZaxis()->SetRange(-1,-1); 617 617 h1->SetDirectory(0); 618 618 619 619 hof.GetZaxis()->SetRange(bin,bin); 620 620 TH1D *h0 = (TH1D*)hof.Project3D("ye"); 621 hof.GetZaxis()->SetRange(-1, 9999);621 hof.GetZaxis()->SetRange(-1,-1); 622 622 h0->SetDirectory(0); 623 623 … … 635 635 const TString name0(Form("TempAlpha%06d_off", gRandom->Integer(1000000))); 636 636 637 TH1D *h1 = hon.ProjectionZ(name1, -1, 9999, -1, 9999, "E");638 TH1D *h0 = hof.ProjectionZ(name0, -1, 9999, -1, 9999, "E");637 TH1D *h1 = hon.ProjectionZ(name1, -1, -1, -1, -1, "E"); 638 TH1D *h0 = hof.ProjectionZ(name0, -1, -1, -1, -1, "E"); 639 639 h1->SetDirectory(0); 640 640 h0->SetDirectory(0); -
trunk/MagicSoft/Mars/mhflux/MHAlpha.cc
r8664 r8695 401 401 MAlphaFitter fit(fFit); 402 402 403 TH1D *h = fOffData ? fOffData->ProjectionZ("ProjTimeTemp", -1, 9999, -1, 9999, "E") : 0;403 TH1D *h = fOffData ? fOffData->ProjectionZ("ProjTimeTemp", -1, -1, -1, -1, "E") : 0; 404 404 const Bool_t rc = fit.ScaleAndFit(fHistTime, h); 405 405 if (h) -
trunk/MagicSoft/Mars/mhflux/MHCollectionArea.cc
r8674 r8695 121 121 void MHCollectionArea::CalcEfficiency() 122 122 { 123 TH1D *hsel = fHistSel.ProjectionY("Spy", -1, 9999, "E");;124 TH1D *hall = fHistAll.ProjectionY("Apy", -1, 9999, "E");123 TH1D *hsel = fHistSel.ProjectionY("Spy", -1, -1, "E");; 124 TH1D *hall = fHistAll.ProjectionY("Apy", -1, -1, "E"); 125 125 126 126 // … … 327 327 pad->cd(1); 328 328 if (gPad->FindObject("ProjSelX")) 329 fHistSel.ProjectionX("ProjSelX", -1, 9999, "E");329 fHistSel.ProjectionX("ProjSelX", -1, -1, "E"); 330 330 331 331 pad->cd(2); 332 332 if (gPad->FindObject("ProjAllY")) 333 h1=fHistAll.ProjectionY("ProjAllY", -1, 9999, "E");333 h1=fHistAll.ProjectionY("ProjAllY", -1, -1, "E"); 334 334 if (gPad->FindObject("ProjSelY")) 335 h2=fHistSel.ProjectionY("ProjSelY", -1, 9999, "E");335 h2=fHistSel.ProjectionY("ProjSelY", -1, -1, "E"); 336 336 337 337 if (h1 && h1->GetMaximum()>0) … … 381 381 gPad->SetGridy(); 382 382 /* 383 h = fHistAll.ProjectionX("ProjAllX", -1, 9999, "E");383 h = fHistAll.ProjectionX("ProjAllX", -1, -1, "E"); 384 384 h->SetXTitle("\\Theta [\\circ]"); 385 385 h->SetDirectory(NULL); … … 388 388 h->Draw(); 389 389 */ 390 h = fHistSel.ProjectionX("ProjSelX", -1, 9999, "E");390 h = fHistSel.ProjectionX("ProjSelX", -1, -1, "E"); 391 391 h->SetXTitle("\\Theta [\\circ]"); 392 392 h->SetDirectory(NULL); … … 405 405 gPad->SetGridy(); 406 406 407 h1 = fHistAll.ProjectionY("ProjAllY", -1, 9999, "E");407 h1 = fHistAll.ProjectionY("ProjAllY", -1, -1, "E"); 408 408 h1->SetDirectory(NULL); 409 409 h1->SetLineColor(kGreen); … … 412 412 h1->Draw(); 413 413 414 h2 = fHistSel.ProjectionY("ProjSelY", -1, 9999, "E");414 h2 = fHistSel.ProjectionY("ProjSelY", -1, -1, "E"); 415 415 h2->SetDirectory(NULL); 416 416 h2->SetLineColor(kRed); -
trunk/MagicSoft/Mars/mhflux/MHEffectiveOnTime.cc
r7818 r8695 866 866 if ((h = (TH1D*)gPad->FindObject("ProjDeltaT"/*fNameProjDeltaT*/))) 867 867 { 868 h = fH2DeltaT.ProjectionX("ProjDeltaT"/*fNameProjDeltaT*/, -1, 9999, "E");868 h = fH2DeltaT.ProjectionX("ProjDeltaT"/*fNameProjDeltaT*/, -1, -1, "E"); 869 869 if (h->GetEntries()>0) 870 870 gPad->SetLogy(); … … 873 873 pad->GetPad(2)->cd(1); 874 874 if ((h = (TH1D*)gPad->FindObject("ProjTheta"/*fNameProjTheta*/))) 875 fH2DeltaT.ProjectionY("ProjTheta"/*fNameProjTheta*/, -1, 9999, "E");875 fH2DeltaT.ProjectionY("ProjTheta"/*fNameProjTheta*/, -1, -1, "E"); 876 876 877 877 if (!fIsFinalized) … … 963 963 pad->GetPad(1)->cd(1); 964 964 gPad->SetBorderMode(0); 965 h = fH2DeltaT.ProjectionX("ProjDeltaT"/*fNameProjDeltaT*/, -1, 9999, "E");965 h = fH2DeltaT.ProjectionX("ProjDeltaT"/*fNameProjDeltaT*/, -1, -1, "E"); 966 966 h->SetTitle("Distribution of \\Delta t [s]"); 967 967 h->SetXTitle("\\Delta t [s]"); … … 993 993 pad->GetPad(2)->cd(1); 994 994 gPad->SetBorderMode(0); 995 h = fH2DeltaT.ProjectionY("ProjTheta"/*fNameProjTheta*/, -1, 9999, "E");995 h = fH2DeltaT.ProjectionY("ProjTheta"/*fNameProjTheta*/, -1, -1, "E"); 996 996 h->SetTitle("Distribution of \\Theta [\\circ]"); 997 997 h->SetXTitle("\\Theta [\\circ]"); -
trunk/MagicSoft/Mars/mhflux/MHEnergyEst.cc
r8673 r8695 364 364 if ((hx=(TH1D*)gPad->FindObject(MString::Format("Prof%s", h.GetName())))) 365 365 { 366 hx = hyx->ProfileX(Form("Prof%s", h.GetName()), -1, 9999, "s");366 hx = hyx->ProfileX(Form("Prof%s", h.GetName()), -1, -1, "s"); 367 367 368 368 if (logy && hx->GetMaximum()>0) … … 387 387 h2->SetLineColor(kRed); 388 388 389 TH1D *h1 = h2->ProfileX(Form("Prof%s", h.GetName()), -1, 9999, "s");389 TH1D *h1 = h2->ProfileX(Form("Prof%s", h.GetName()), -1, -1, "s"); 390 390 h1->SetDirectory(NULL); 391 391 h1->SetBit(kCanDelete); … … 478 478 gPad->SetGridy(); 479 479 /* 480 h = fHImpact.ProjectionX("Impact", -1, 9999, "e");480 h = fHImpact.ProjectionX("Impact", -1, -1, "e"); 481 481 h->SetBit(TH1::kNoStats); 482 482 h->SetTitle("Distribution of Impact"); -
trunk/MagicSoft/Mars/mhflux/MMcSpectrumWeight.cc
r8680 r8695 485 485 *fLog << " New spectral slope: "; 486 486 if (fNewSlope==-99) 487 *fLog << "undefined " << endl;487 *fLog << "undefined/no change" << endl; 488 488 else 489 489 *fLog << fNewSlope << endl;
Note:
See TracChangeset
for help on using the changeset viewer.