Changeset 7015
- Timestamp:
- 05/12/05 11:00:04 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7013 r7015 21 21 22 22 -*-*- END OF LINE -*-*- 23 2005/05/12 Markus Meyer 24 25 * mmuon/MHMounPar[.h,.cc] 26 - added function Paint. This function integrates the TProfile 27 ArcWidth/Radius Vs. Radius between certain values and shows 28 the result in the Status Display 29 30 31 23 32 2005/05/11 Thomas Bretz 24 33 -
trunk/MagicSoft/Mars/mmuon/MHMuonPar.cc
r7009 r7015 46 46 #include <TH1.h> 47 47 #include <TPad.h> 48 #include <TLatex.h> 48 49 #include <TCanvas.h> 49 50 #include <TProfile.h> … … 90 91 91 92 fHistBroad.SetName("RingBroadening"); 92 fHistBroad.SetTitle("Profile of ArcWidth/Radius versus Radius");93 fHistBroad.SetTitle("Profile ArcWidth/Radius vs Radius"); 93 94 fHistBroad.SetXTitle("R [\\circ]"); 94 95 fHistBroad.SetYTitle("W/R [1]"); … … 98 99 99 100 fHistSize.SetName("SizeVsRadius"); 100 fHistSize.SetTitle("Profile of Muon Size vs.Radius");101 fHistSize.SetTitle("Profile MuonSize vs Radius"); 101 102 fHistSize.SetXTitle("R [\\circ]"); 102 103 fHistSize.SetYTitle("S [phe]"); … … 205 206 gPad->SetBorderMode(0); 206 207 fHistBroad.Draw(); 207 } 208 209 AppendPad("pad4"); 210 } 211 212 void MHMuonPar::Paint(Option_t *opt) 213 { 214 if (TString(opt)!=TString("pad4")) 215 return; 216 217 const Double_t lolim = 0.7; 218 const Double_t uplim = 1.2; 219 220 const Int_t bin1 = fHistBroad.GetXaxis()->FindFixBin(lolim); 221 const Int_t bin2 = fHistBroad.GetXaxis()->FindFixBin(uplim); 222 223 const TString txt = Form("\\Sigma_{%.2f\\circ}^{%.2f\\circ} = %.3f", lolim, 224 uplim, fHistBroad.Integral(bin1, bin2)); 225 226 TLatex text(0.57, 0.93, txt); 227 text.SetBit(TLatex::kTextNDC); 228 text.SetTextSize(0.055); 229 text.Paint(); 230 } -
trunk/MagicSoft/Mars/mmuon/MHMuonPar.h
r7009 r7015 42 42 43 43 void Draw(Option_t *opt=""); 44 void Paint(Option_t *opt=""); 44 45 45 46 ClassDef(MHMuonPar, 1)
Note:
See TracChangeset
for help on using the changeset viewer.