Ignore:
Timestamp:
12/17/04 13:27:08 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhflux
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhflux/MHEffectiveOnTime.cc

    r5143 r5620  
    107107MHEffectiveOnTime::MHEffectiveOnTime(const char *name, const char *title)
    108108    : 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))*/
    111111{
    112112    //
     
    646646void MHEffectiveOnTime::Paint(Option_t *opt)
    647647{
     648    *fLog << all << "Paint: '" << opt << "'" << endl;
     649
    648650    TH1D *h=0;
    649651    TPaveStats *st=0;
     
    675677
    676678        pad->GetPad(1)->cd(1);
    677         if ((h = (TH1D*)gPad->FindObject(fNameProjDeltaT)))
     679        if ((h = (TH1D*)gPad->FindObject("ProjDeltaT"/*fNameProjDeltaT*/)))
    678680        {
    679             h = fH2DeltaT.ProjectionX(fNameProjDeltaT, -1, 9999, "E");
     681            h = fH2DeltaT.ProjectionX("ProjDeltaT"/*fNameProjDeltaT*/, -1, 9999, "E");
    680682            if (h->GetEntries()>0)
    681683                gPad->SetLogy();
     
    683685
    684686        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");
    687689
    688690        if (!fIsFinalized)
     
    692694    if (o==(TString)"paint")
    693695    {
    694         if ((h = (TH1D*)gPad->FindObject(fNameProjDeltaT)))
     696        if ((h = (TH1D*)gPad->FindObject("ProjDeltaT"/*fNameProjDeltaT*/)))
    695697        {
    696698            Double_t res[7];
     
    771773    pad->GetPad(1)->cd(1);
    772774    gPad->SetBorderMode(0);
    773     h = fH2DeltaT.ProjectionX(fNameProjDeltaT, -1, 9999, "E");
     775    h = fH2DeltaT.ProjectionX("ProjDeltaT"/*fNameProjDeltaT*/, -1, 9999, "E");
    774776    h->SetTitle("Distribution of \\Delta t [s]");
    775777    h->SetXTitle("\\Delta t [s]");
     
    801803    pad->GetPad(2)->cd(1);
    802804    gPad->SetBorderMode(0);
    803     h = fH2DeltaT.ProjectionY(fNameProjTheta, -1, 9999, "E");
     805    h = fH2DeltaT.ProjectionY("ProjTheta"/*fNameProjTheta*/, -1, 9999, "E");
    804806    h->SetTitle("Distribution of  \\Theta [\\circ]");
    805807    h->SetXTitle("\\Theta [\\circ]");
  • trunk/MagicSoft/Mars/mhflux/MHEffectiveOnTime.h

    r4999 r5620  
    5050    Int_t fNumEvents;    // Number of events to be used for a bin in time
    5151
    52     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
     52    //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
    5454
    5555    Bool_t FitH(TH1D *h, Double_t *res, Bool_t paint=kFALSE) const;
Note: See TracChangeset for help on using the changeset viewer.