Changeset 9308 for trunk/MagicSoft/Mars/msim
- Timestamp:
- 02/09/09 11:30:54 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/msim
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msim/MHPhotonEvent.cc
r9263 r9308 54 54 // Fill expects a MPhotonEvent (the second argumnet in MFillH). 55 55 // 56 // 57 // Class Version 2: 58 // ---------------- 59 // + TH1D fHistH; 60 // 61 // 56 62 ///////////////////////////////////////////////////////////////////////////// 57 63 #include "MHPhotonEvent.h" … … 113 119 fHistWL.SetDirectory(NULL); 114 120 121 fHistH.SetName("Height"); 122 fHistH.SetTitle("Production Height"); 123 fHistH.SetXTitle("h [km]"); 124 fHistH.SetYTitle("Counts"); 125 fHistH.SetDirectory(NULL); 126 115 127 // FIXME: Get this information from the corsika run-header 116 128 MBinning(70, 275, 625).Apply(fHistWL); 129 MBinning(100, 0, 25).Apply(fHistH); 117 130 } 118 131 … … 259 272 const MPhotonData &ph = (*evt)[idx]; 260 273 274 if (ph.GetPrimary()==MMcEvtBasic::kNightSky) 275 continue; 276 261 277 const Double_t x = ph.GetPosX(); 262 278 const Double_t y = ph.GetPosY(); … … 265 281 const Double_t t = ph.GetTime()-min; 266 282 const Double_t w = ph.GetWavelength(); 283 const Double_t h = ph.GetProductionHeight()/100000; 267 284 268 285 //TVector3 dir = dat->GetDir3(); … … 273 290 fHistT.Fill(x, y, t); 274 291 fHistWL.Fill(w); 292 fHistH.Fill(h); 275 293 } 276 294 … … 341 359 gPad->SetGrid(); 342 360 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 23 23 TProfile2D fHistT; 24 24 TH1D fHistWL; 25 TH1D fHistH; 25 26 26 27 Int_t fType; … … 40 41 void Paint(Option_t *o=""); 41 42 42 ClassDef(MHPhotonEvent, 1) // Histogram to display the information of MPhotonEvents43 ClassDef(MHPhotonEvent, 2) // Histogram to display the information of MPhotonEvents 43 44 }; 44 45 -
trunk/MagicSoft/Mars/msim/MPhotonData.h
r9252 r9308 83 83 // Getter Others 84 84 UShort_t GetWavelength() const { return fWavelength; } 85 Float_t GetProductionHeight() const { return fProductionHeight; } 85 86 MMcEvtBasic::ParticleId_t GetPrimary() const { return fPrimary; } 86 87 -
trunk/MagicSoft/Mars/msim/MPhotonEvent.h
r9301 r9308 157 157 Int_t GetMaxIndex() const { return fMaxIndex; } 158 158 159 Bool_t IsValid() const { return fTimeLast>=fTimeFirst; }159 // Bool_t IsValid() const { return fTimeLast>=fTimeFirst; } 160 160 161 161 ClassDef(MPhotonStatistics, 1)
Note:
See TracChangeset
for help on using the changeset viewer.