Changeset 9854 for trunk/Mars/mimage


Ignore:
Timestamp:
08/13/10 11:31:13 (14 years ago)
Author:
tbretz
Message:
Added Histograms for the new variables in MHillasExt to MHHillasExt.
Location:
trunk/Mars/mimage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mimage/MHHillasExt.cc

    r9851 r9854  
    1818!   Author(s): Thomas Bretz, 2001 <mailto:tbretz@astro.uni-wuerzburg.de>
    1919!
    20 !   Copyright: MAGIC Software Development, 2000-2007
     20!   Copyright: MAGIC Software Development, 2000-2010
    2121!
    2222!
     
    3838//  - fMm2Deg
    3939//  - fUseMmScale
     40//
     41// ClassVersion 4:
     42// ---------------
     43//  + TH1F fHTimeSpread;      // [ns] Spread (rms) of arrival time around mean
     44//  + TH1F fHTimeSpreadW;     // [ns] Weighted spread (rms) of arrival time around weighted mean
     45//  + TH1F fHSlopeSpread;     // [ns] Spread (rms) of arrival time around slope
     46//  + TH1F fHSlopeSpreadW;    // [ns] Weighted spread (rms) of arrival time around slope
    4047//
    4148/////////////////////////////////////////////////////////////////////////////
     
    8794    fHM3Trans.UseCurrentStyle();
    8895    fHSlopeL.UseCurrentStyle();
     96    fHTimeSpread.UseCurrentStyle();
     97    fHTimeSpreadW.UseCurrentStyle();
     98    fHSlopeSpread.UseCurrentStyle();
     99    fHSlopeSpreadW.UseCurrentStyle();
    89100
    90101    fHAsym.SetName("Asymmetry");
     
    92103    fHM3Trans.SetName("M3t");
    93104    fHSlopeL.SetName("SlopeL");
     105    fHTimeSpread.SetName("TimeSpread");
     106    fHTimeSpreadW.SetName("TimeSpreadW");
     107    fHSlopeSpread.SetName("SlopeSpread");
     108    fHSlopeSpreadW.SetName("SlopeSpreadW");
    94109
    95110    fHAsym.SetTitle("Asymmetry");
     
    97112    fHM3Trans.SetTitle("3^{rd} Moment Transverse");
    98113    fHSlopeL.SetTitle("Longitudinal time-slope vs. Dist");
     114    fHTimeSpread.SetTitle("Time spread around mean");
     115    fHTimeSpreadW.SetTitle("Weighted time spread around weighted mean");
     116    fHSlopeSpread.SetTitle("Time spread around slope");
     117    fHSlopeSpreadW.SetTitle("Weighted time spread around slope");
    99118
    100119    fHAsym.SetXTitle("Asym [\\circ]");
     
    102121    fHM3Trans.SetXTitle("3^{rd} M_{t} [\\circ]");
    103122    fHSlopeL.SetXTitle("D [\\circ]");
     123    fHTimeSpread.SetXTitle("T_{rms} [ns]");
     124    fHTimeSpreadW.SetXTitle("T_{rms} [ns]");
     125    fHSlopeSpread.SetXTitle("T_{rms} [ns]");
     126    fHSlopeSpreadW.SetXTitle("T_{rms} [ns]");
    104127
    105128    fHAsym.SetYTitle("Counts");
     
    107130    fHM3Trans.SetYTitle("Counts");
    108131    fHSlopeL.SetYTitle("S_{l} [ns/\\circ]");
     132    fHTimeSpread.SetYTitle("Counts");
     133    fHTimeSpreadW.SetYTitle("Counts");
     134    fHSlopeSpread.SetYTitle("Counts");
     135    fHSlopeSpreadW.SetYTitle("Counts");
    109136
    110137    fHAsym.SetFillStyle(4000);
     
    118145    fHSlopeL.SetDirectory(NULL);
    119146
     147    fHTimeSpread.SetDirectory(NULL);
     148    fHTimeSpreadW.SetDirectory(NULL);
     149    fHSlopeSpread.SetDirectory(NULL);
     150    fHSlopeSpreadW.SetDirectory(NULL);
     151
    120152    fHM3Trans.SetLineColor(kBlue);
     153
     154    fHSlopeSpread.SetLineColor(kBlue);
     155    fHSlopeSpreadW.SetLineColor(kBlue);
     156
     157    fHTimeSpreadW.SetLineStyle(kDashed);
     158    fHSlopeSpreadW.SetLineStyle(kDashed);
    121159
    122160    MBinning binsx, binsy;
     
    132170    binsy.SetEdges(100,  -9,   9);
    133171    MH::SetBinning(fHSlopeL, binsx, binsy);
     172
     173    binsx.SetEdges( 50,   0, 1.5);
     174    MH::SetBinning(fHTimeSpread,   binsx);
     175    MH::SetBinning(fHSlopeSpread,  binsx);
     176    binsx.SetEdges(150,   0, 1.5);
     177    MH::SetBinning(fHTimeSpreadW,  binsx);
     178    MH::SetBinning(fHSlopeSpreadW, binsx);
    134179}
    135180
     
    172217    ApplyBinning(*plist, "Dist",    "Slope", fHSlopeL);
    173218
     219    ApplyBinning(*plist, "TimeSpread",       fHTimeSpread);
     220    ApplyBinning(*plist, "TimeSpreadW",      fHTimeSpreadW);
     221    ApplyBinning(*plist, "TimeSpread",       fHSlopeSpread);
     222    ApplyBinning(*plist, "TimeSpreadW",      fHSlopeSpreadW);
     223
    174224    return kTRUE;
    175225}
     
    191241    fHM3Trans.Fill(scale*fHillasExt->GetM3Trans(), w);
    192242    fHSlopeL.Fill(scale*dist, fHillasExt->GetSlopeLong()/scale, w);
     243
     244    fHTimeSpread.Fill(fHillasExt->GetTimeSpread(), w);
     245    fHTimeSpreadW.Fill(fHillasExt->GetTimeSpreadWeighted(), w);
     246    fHSlopeSpread.Fill(fHillasExt->GetSlopeSpread(), w);
     247    fHSlopeSpreadW.Fill(fHillasExt->GetSlopeSpreadWeighted(), w);
    193248
    194249    return kTRUE;
     
    271326        fHSlopeL.Draw("colz");
    272327
    273     delete pad->GetPad(4);
     328    pad->cd(4);
     329    gPad->SetBorderMode(0);
     330    gPad->SetGridx();
     331    gPad->SetGridy();
     332
     333    fHSlopeSpreadW.Draw();
     334    fHTimeSpread.Draw("same");
     335    fHSlopeSpread.Draw("same");
     336    fHTimeSpreadW.Draw("same");
    274337}
    275338
  • trunk/Mars/mimage/MHHillasExt.h

    r9343 r9854  
    2020    MHillasExt *fHillasExt; //! Pointer to the MHillasExt container
    2121
    22     TH1F fHAsym;    // [mm]    fDist minus dist: center of ellipse, highest pixel
    23     TH1F fHM3Long;  // [mm]    3rd moment (e-weighted) along major axis
    24     TH1F fHM3Trans; // [mm]    3rd moment (e-weighted) along minor axis
    25     TH2F fHSlopeL;  //
     22    TH1F fHAsym;            // [mm] fDist minus dist: center of ellipse, highest pixel
     23    TH1F fHM3Long;          // [mm] 3rd moment (e-weighted) along major axis
     24    TH1F fHM3Trans;         // [mm] 3rd moment (e-weighted) along minor axis
     25    TH2F fHSlopeL;          //
     26
     27    TH1F fHTimeSpread;      // [ns] Spread (rms) of arrival time around mean
     28    TH1F fHTimeSpreadW;     // [ns] Weighted spread (rms) of arrival time around weighted mean
     29    TH1F fHSlopeSpread;     // [ns] Spread (rms) of arrival time around slope
     30    TH1F fHSlopeSpreadW;    // [ns] Weighted spread (rms) of arrival time around slope
    2631
    2732    TString fHilName;
     
    4449    void Draw(Option_t *opt=NULL);
    4550
    46     ClassDef(MHHillasExt, 3) // Container which holds histograms for the extended hillas parameters
     51    ClassDef(MHHillasExt, 4) // Container which holds histograms for the extended hillas parameters
    4752};
    4853
Note: See TracChangeset for help on using the changeset viewer.