Changeset 5620 for trunk/MagicSoft/Mars/mhflux
- Timestamp:
- 12/17/04 13:27:08 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mhflux
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhflux/MHEffectiveOnTime.cc
r5143 r5620 107 107 MHEffectiveOnTime::MHEffectiveOnTime(const char *name, const char *title) 108 108 : fPointPos(0), fTime(0), fParam(0), fIsFinalized(kFALSE), 109 fNumEvents(200*60) , fNameProjDeltaT(Form("DeltaT_%p", this)),110 fNameProjTheta(Form("Theta_%p", this)) 109 fNumEvents(200*60)/*, fNameProjDeltaT(Form("DeltaT_%p", this)), 110 fNameProjTheta(Form("Theta_%p", this))*/ 111 111 { 112 112 // … … 646 646 void MHEffectiveOnTime::Paint(Option_t *opt) 647 647 { 648 *fLog << all << "Paint: '" << opt << "'" << endl; 649 648 650 TH1D *h=0; 649 651 TPaveStats *st=0; … … 675 677 676 678 pad->GetPad(1)->cd(1); 677 if ((h = (TH1D*)gPad->FindObject( fNameProjDeltaT)))679 if ((h = (TH1D*)gPad->FindObject("ProjDeltaT"/*fNameProjDeltaT*/))) 678 680 { 679 h = fH2DeltaT.ProjectionX( fNameProjDeltaT, -1, 9999, "E");681 h = fH2DeltaT.ProjectionX("ProjDeltaT"/*fNameProjDeltaT*/, -1, 9999, "E"); 680 682 if (h->GetEntries()>0) 681 683 gPad->SetLogy(); … … 683 685 684 686 pad->GetPad(2)->cd(1); 685 if ((h = (TH1D*)gPad->FindObject( fNameProjTheta)))686 fH2DeltaT.ProjectionY( fNameProjTheta, -1, 9999, "E");687 if ((h = (TH1D*)gPad->FindObject("ProjTheta"/*fNameProjTheta*/))) 688 fH2DeltaT.ProjectionY("ProjTheta"/*fNameProjTheta*/, -1, 9999, "E"); 687 689 688 690 if (!fIsFinalized) … … 692 694 if (o==(TString)"paint") 693 695 { 694 if ((h = (TH1D*)gPad->FindObject( fNameProjDeltaT)))696 if ((h = (TH1D*)gPad->FindObject("ProjDeltaT"/*fNameProjDeltaT*/))) 695 697 { 696 698 Double_t res[7]; … … 771 773 pad->GetPad(1)->cd(1); 772 774 gPad->SetBorderMode(0); 773 h = fH2DeltaT.ProjectionX( fNameProjDeltaT, -1, 9999, "E");775 h = fH2DeltaT.ProjectionX("ProjDeltaT"/*fNameProjDeltaT*/, -1, 9999, "E"); 774 776 h->SetTitle("Distribution of \\Delta t [s]"); 775 777 h->SetXTitle("\\Delta t [s]"); … … 801 803 pad->GetPad(2)->cd(1); 802 804 gPad->SetBorderMode(0); 803 h = fH2DeltaT.ProjectionY( fNameProjTheta, -1, 9999, "E");805 h = fH2DeltaT.ProjectionY("ProjTheta"/*fNameProjTheta*/, -1, 9999, "E"); 804 806 h->SetTitle("Distribution of \\Theta [\\circ]"); 805 807 h->SetXTitle("\\Theta [\\circ]"); -
trunk/MagicSoft/Mars/mhflux/MHEffectiveOnTime.h
r4999 r5620 50 50 Int_t fNumEvents; // Number of events to be used for a bin in time 51 51 52 const TString fNameProjDeltaT; //! This should make sure, that gROOT doen't confuse the projection with something else53 const TString fNameProjTheta; //! This should make sure, that gROOT doen't confuse the projection with something else52 //const TString fNameProjDeltaT; //! This should make sure, that gROOT doen't confuse the projection with something else 53 //const TString fNameProjTheta; //! This should make sure, that gROOT doen't confuse the projection with something else 54 54 55 55 Bool_t FitH(TH1D *h, Double_t *res, Bool_t paint=kFALSE) const;
Note:
See TracChangeset
for help on using the changeset viewer.