- Timestamp:
- 08/13/10 11:31:13 (14 years ago)
- Location:
- trunk/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/Changelog
r9853 r9854 18 18 19 19 -*-*- END OF LINE -*-*- 20 21 2010/08/13 Thomas Bretz 22 23 * mimage/MHHillasExt.[h,cc]: 24 - added new histograms to display new variables 25 - increased class version number 26 27 20 28 21 29 2010/08/13 Daniela Dorner -
trunk/Mars/mimage/MHHillasExt.cc
r9851 r9854 18 18 ! Author(s): Thomas Bretz, 2001 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-20 0720 ! Copyright: MAGIC Software Development, 2000-2010 21 21 ! 22 22 ! … … 38 38 // - fMm2Deg 39 39 // - 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 40 47 // 41 48 ///////////////////////////////////////////////////////////////////////////// … … 87 94 fHM3Trans.UseCurrentStyle(); 88 95 fHSlopeL.UseCurrentStyle(); 96 fHTimeSpread.UseCurrentStyle(); 97 fHTimeSpreadW.UseCurrentStyle(); 98 fHSlopeSpread.UseCurrentStyle(); 99 fHSlopeSpreadW.UseCurrentStyle(); 89 100 90 101 fHAsym.SetName("Asymmetry"); … … 92 103 fHM3Trans.SetName("M3t"); 93 104 fHSlopeL.SetName("SlopeL"); 105 fHTimeSpread.SetName("TimeSpread"); 106 fHTimeSpreadW.SetName("TimeSpreadW"); 107 fHSlopeSpread.SetName("SlopeSpread"); 108 fHSlopeSpreadW.SetName("SlopeSpreadW"); 94 109 95 110 fHAsym.SetTitle("Asymmetry"); … … 97 112 fHM3Trans.SetTitle("3^{rd} Moment Transverse"); 98 113 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"); 99 118 100 119 fHAsym.SetXTitle("Asym [\\circ]"); … … 102 121 fHM3Trans.SetXTitle("3^{rd} M_{t} [\\circ]"); 103 122 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]"); 104 127 105 128 fHAsym.SetYTitle("Counts"); … … 107 130 fHM3Trans.SetYTitle("Counts"); 108 131 fHSlopeL.SetYTitle("S_{l} [ns/\\circ]"); 132 fHTimeSpread.SetYTitle("Counts"); 133 fHTimeSpreadW.SetYTitle("Counts"); 134 fHSlopeSpread.SetYTitle("Counts"); 135 fHSlopeSpreadW.SetYTitle("Counts"); 109 136 110 137 fHAsym.SetFillStyle(4000); … … 118 145 fHSlopeL.SetDirectory(NULL); 119 146 147 fHTimeSpread.SetDirectory(NULL); 148 fHTimeSpreadW.SetDirectory(NULL); 149 fHSlopeSpread.SetDirectory(NULL); 150 fHSlopeSpreadW.SetDirectory(NULL); 151 120 152 fHM3Trans.SetLineColor(kBlue); 153 154 fHSlopeSpread.SetLineColor(kBlue); 155 fHSlopeSpreadW.SetLineColor(kBlue); 156 157 fHTimeSpreadW.SetLineStyle(kDashed); 158 fHSlopeSpreadW.SetLineStyle(kDashed); 121 159 122 160 MBinning binsx, binsy; … … 132 170 binsy.SetEdges(100, -9, 9); 133 171 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); 134 179 } 135 180 … … 172 217 ApplyBinning(*plist, "Dist", "Slope", fHSlopeL); 173 218 219 ApplyBinning(*plist, "TimeSpread", fHTimeSpread); 220 ApplyBinning(*plist, "TimeSpreadW", fHTimeSpreadW); 221 ApplyBinning(*plist, "TimeSpread", fHSlopeSpread); 222 ApplyBinning(*plist, "TimeSpreadW", fHSlopeSpreadW); 223 174 224 return kTRUE; 175 225 } … … 191 241 fHM3Trans.Fill(scale*fHillasExt->GetM3Trans(), w); 192 242 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); 193 248 194 249 return kTRUE; … … 271 326 fHSlopeL.Draw("colz"); 272 327 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"); 274 337 } 275 338 -
trunk/Mars/mimage/MHHillasExt.h
r9343 r9854 20 20 MHillasExt *fHillasExt; //! Pointer to the MHillasExt container 21 21 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 26 31 27 32 TString fHilName; … … 44 49 void Draw(Option_t *opt=NULL); 45 50 46 ClassDef(MHHillasExt, 3) // Container which holds histograms for the extended hillas parameters51 ClassDef(MHHillasExt, 4) // Container which holds histograms for the extended hillas parameters 47 52 }; 48 53
Note:
See TracChangeset
for help on using the changeset viewer.