Ignore:
Timestamp:
02/09/09 11:30:54 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/msim
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msim/MHPhotonEvent.cc

    r9263 r9308  
    5454// Fill expects a MPhotonEvent (the second argumnet in MFillH).
    5555//
     56//
     57// Class Version 2:
     58// ----------------
     59//  + TH1D fHistH;
     60//
     61//
    5662/////////////////////////////////////////////////////////////////////////////
    5763#include "MHPhotonEvent.h"
     
    113119    fHistWL.SetDirectory(NULL);
    114120
     121    fHistH.SetName("Height");
     122    fHistH.SetTitle("Production Height");
     123    fHistH.SetXTitle("h [km]");
     124    fHistH.SetYTitle("Counts");
     125    fHistH.SetDirectory(NULL);
     126
    115127    // FIXME: Get this information from the corsika run-header
    116128    MBinning(70, 275, 625).Apply(fHistWL);
     129    MBinning(100, 0, 25).Apply(fHistH);
    117130}
    118131
     
    259272        const MPhotonData &ph = (*evt)[idx];
    260273
     274        if (ph.GetPrimary()==MMcEvtBasic::kNightSky)
     275            continue;
     276
    261277        const Double_t x = ph.GetPosX();
    262278        const Double_t y = ph.GetPosY();
     
    265281        const Double_t t = ph.GetTime()-min;
    266282        const Double_t w = ph.GetWavelength();
     283        const Double_t h = ph.GetProductionHeight()/100000;
    267284
    268285        //TVector3 dir = dat->GetDir3();
     
    273290        fHistT.Fill(x, y, t);
    274291        fHistWL.Fill(w);
     292        fHistH.Fill(h);
    275293    }
    276294
     
    341359    gPad->SetGrid();
    342360    fHistWL.Draw();
    343 }
     361
     362    pad->cd(6);
     363    gPad->SetBorderMode(0);
     364    gPad->SetGrid();
     365    fHistH.Draw();
     366}
  • trunk/MagicSoft/Mars/msim/MHPhotonEvent.h

    r9232 r9308  
    2323    TProfile2D fHistT;
    2424    TH1D       fHistWL;
     25    TH1D       fHistH;
    2526
    2627    Int_t      fType;
     
    4041    void Paint(Option_t *o="");
    4142
    42     ClassDef(MHPhotonEvent, 1) // Histogram to display the information of MPhotonEvents
     43    ClassDef(MHPhotonEvent, 2) // Histogram to display the information of MPhotonEvents
    4344};
    4445
  • trunk/MagicSoft/Mars/msim/MPhotonData.h

    r9252 r9308  
    8383    // Getter Others
    8484    UShort_t GetWavelength() const { return fWavelength; }
     85    Float_t GetProductionHeight() const { return fProductionHeight; }
    8586    MMcEvtBasic::ParticleId_t GetPrimary() const { return fPrimary; }
    8687
  • trunk/MagicSoft/Mars/msim/MPhotonEvent.h

    r9301 r9308  
    157157    Int_t GetMaxIndex() const { return fMaxIndex; }
    158158
    159     Bool_t IsValid() const { return fTimeLast>=fTimeFirst; }
     159//    Bool_t IsValid() const { return fTimeLast>=fTimeFirst; }
    160160
    161161    ClassDef(MPhotonStatistics, 1)
Note: See TracChangeset for help on using the changeset viewer.