Ignore:
Timestamp:
11/25/02 09:12:47 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhist/MHAlphaEnergyTheta.cc

    r1415 r1668  
    6464    fHist.SetDirectory(NULL);
    6565
    66     fHist.SetTitle("3D-plot of alpha, E-est, Theta");
     66    fHist.SetTitle("3D-plot of alpha, E_{est}, Theta");
    6767    fHist.SetXTitle("\\alpha [\\circ]");
    68     fHist.SetYTitle("E-est [GeV]            ");
     68    fHist.SetYTitle("E_{est} [GeV]");
    6969    fHist.SetZTitle("\\Theta [\\circ]");
    7070}
     
    7979   if (!fEnergy)
    8080   {
    81        *fLog << err << dbginf << "MHAlphaEnergyTheta : MEnergyEst not found... aborting." << endl;
     81       *fLog << err << dbginf << "MEnergyEst not found... aborting." << endl;
    8282       return kFALSE;
    8383   }
     
    8686   if (!fMcEvt)
    8787   {
    88        *fLog << err << dbginf << "MHAlphaEnergyTheta : MMcEvt not found... aborting." << endl;
     88       *fLog << err << dbginf << "MMcEvt not found... aborting." << endl;
    8989       return kFALSE;
    9090   }
     
    9595   if (!binsenergy || !binsalphaflux || !binstheta)
    9696   {
    97        *fLog << err << dbginf << "MHAlphaEnergyTheta : At least one MBinning not found... aborting." << endl;
     97       *fLog << err << dbginf << "At least one MBinning not found... aborting." << endl;
    9898       return kFALSE;     
    9999   }
     
    103103   fHist.Sumw2();
    104104
    105    fHist.Sumw2();
    106 
    107105   return kTRUE;
    108106}
     
    116114    MHillasSrc &hil = *(MHillasSrc*)par;
    117115
    118     fHist.Fill(fabs(hil.GetAlpha()), fEnergy->GetEnergy(), fMcEvt->GetTheta()*kRad2Deg);
     116    fHist.Fill(fabs(hil.GetAlpha()), fEnergy->GetEnergy(),
     117               fMcEvt->GetTelescopeTheta()*kRad2Deg);
    119118
    120119    return kTRUE;
     
    148147
    149148    h->SetTitle("Distribution of E-est [GeV]");
    150     h->SetXTitle("E-est [GeV]            ");
     149    h->SetXTitle("E_{est} [GeV]");
    151150    h->SetYTitle("Counts");
    152151
     
    186185
    187186    c.cd(1);
    188     h = ((TH3*)(&fHist))->Project3D("expro");
     187    h = ((TH3*)(&fHist))->Project3D(fName+"_expro");
    189188
    190189    h->SetTitle("Distribution of \\alpha [\\circ]");
     
    196195
    197196    c.cd(2);
    198     h = ((TH3*)(&fHist))->Project3D("eypro");
     197    h = ((TH3*)(&fHist))->Project3D(fName+"_eypro");
    199198
    200199    h->SetTitle("Distribution of E-est [GeV]");
    201     h->SetXTitle("E-est [GeV]            ");
     200    h->SetXTitle("E_{est} [GeV]");
    202201    h->SetYTitle("Counts");
    203202
     
    207206
    208207    c.cd(3);
    209     h = ((TH3*)(&fHist))->Project3D("ezpro");
     208    h = ((TH3*)(&fHist))->Project3D(fName+"_ezpro");
    210209
    211210    h->SetTitle("Distribution of \\Theta [\\circ]");
Note: See TracChangeset for help on using the changeset viewer.