Changeset 7068 for trunk/MagicSoft/Mars/mmuon
- Timestamp:
- 05/19/05 17:07:03 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mmuon/MHMuonPar.cc
r7022 r7068 204 204 fHistSize.Draw(); 205 205 206 AppendPad("pad3"); 207 206 208 pad->cd(4); 207 209 gPad->SetBorderMode(0); … … 219 221 void MHMuonPar::Paint(Option_t *opt) 220 222 { 221 if (TString(opt)!=TString("pad4")) 222 return; 223 224 const Double_t lolim = 0.7; 225 const Double_t uplim = 1.2; 226 227 const Int_t bin1 = fHistBroad.GetXaxis()->FindFixBin(lolim); 228 const Int_t bin2 = fHistBroad.GetXaxis()->FindFixBin(uplim); 229 230 const TString txt = Form("\\Sigma_{%.2f\\circ}^{%.2f\\circ} = %.3f", lolim, 231 uplim, fHistBroad.Integral(bin1, bin2)); 232 233 TLatex text(0.57, 0.93, txt); 234 text.SetBit(TLatex::kTextNDC); 235 text.SetTextSize(0.055); 236 text.Paint(); 237 } 223 if (TString(opt)==TString("pad4")) 224 { 225 const Double_t lolim = 0.7; 226 const Double_t uplim = 1.2; 227 228 const Int_t bin1 = fHistBroad.GetXaxis()->FindFixBin(lolim); 229 const Int_t bin2 = fHistBroad.GetXaxis()->FindFixBin(uplim); 230 231 const TString txt = Form("\\Sigma_{%.2f\\circ}^{%.2f\\circ} = %.3f", lolim, 232 uplim, fHistBroad.Integral(bin1, bin2)); 233 234 TLatex text(0.57, 0.93, txt); 235 text.SetBit(TLatex::kTextNDC); 236 text.SetTextSize(0.055); 237 text.Paint(); 238 } 239 240 if (TString(opt)==TString("pad3")) 241 { 242 const Double_t lolim = 0.7; 243 const Double_t uplim = 1.2; 244 245 const Int_t bin1 = fHistSize.GetXaxis()->FindFixBin(lolim); 246 const Int_t bin2 = fHistSize.GetXaxis()->FindFixBin(uplim); 247 248 const TString txt = Form("\\Sigma_{%.2f\\circ}^{%.2f\\circ} = %.f", lolim, 249 uplim, fHistSize.Integral(bin1, bin2)); 250 251 TLatex text(0.47, 0.93, txt); 252 text.SetBit(TLatex::kTextNDC); 253 text.SetTextSize(0.055); 254 text.Paint(); 255 } 256 }
Note:
See TracChangeset
for help on using the changeset viewer.