Changeset 8988 for trunk/MagicSoft/Mars/mhcalib
- Timestamp:
- 06/30/08 10:37:00 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/mhcalib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhcalib/HCalibLinkDef.h
r8795 r8988 13 13 #pragma link C++ class MHCalibrationChargePINDiode+; 14 14 #pragma link C++ class MHCalibrationRelTimeCam+; 15 #pragma link C++ class MHCalibrationTestCam+;16 #pragma link C++ class MHCalibrationTestTimeCam+;15 //#pragma link C++ class MHCalibrationTestCam+; 16 //#pragma link C++ class MHCalibrationTestTimeCam+; 17 17 #pragma link C++ class MHCalibrationPulseTimeCam+; 18 18 //#pragma link C++ class MHCalibrationHiLoCam+; -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationCam.cc
r8452 r8988 1472 1472 // 1473 1473 void MHCalibrationCam::DrawAverageSigma(Bool_t sat, Bool_t inner, 1474 Float_t sigma, Float_t sigmavar, 1475 Float_t relsigma, Float_t relsigmavar) const 1476 { 1477 1478 if (sigma != 0 && sigmavar >= 0 && relsigmavar >= 0.) 1479 { 1480 1481 TPad *newpad = new TPad("newpad","transparent",0,0,1,1); 1482 newpad->SetFillStyle(4000); 1483 newpad->Draw(); 1484 newpad->cd(); 1485 1474 Float_t sigma, Float_t sigmavar, 1475 Float_t relsigma, Float_t relsigmavar) const 1476 { 1477 1478 if (sigma==0 || sigmavar<0 || relsigmavar<0) 1479 return; 1480 1486 1481 TPaveText *text = new TPaveText(sat? 0.1 : 0.35,0.7,sat ? 0.4 : 0.7,1.0); 1487 1482 text->SetTextSize(0.05); 1488 const TString line1 = Form("%s%s%s",inner ? "Outer" : "Inner", 1489 " Pixels ", sat ? "Low Gain" : "High Gain"); 1490 TText *txt1 = text->AddText(line1.Data()); 1491 const TString line2 = Form("#sigma per pix: %2.2f #pm %2.2f",sigma,TMath::Sqrt(sigmavar)); 1492 TText *txt2 = text->AddText(line2.Data()); 1493 const TString line3 = Form("Rel. #sigma per pix: %2.2f #pm %2.2f",relsigma,TMath::Sqrt(relsigmavar)); 1494 TText *txt3 = text->AddText(line3.Data()); 1483 text->SetBit(kCanDelete); 1495 1484 text->Draw(""); 1496 1497 text->SetBit(kCanDelete); 1498 txt1->SetBit(kCanDelete); 1499 txt2->SetBit(kCanDelete); 1500 txt3->SetBit(kCanDelete); 1501 newpad->SetBit(kCanDelete); 1502 } 1485 1486 const TString line1 = Form("%s Pixels %s Gain", 1487 inner?"Outer" : "Inner", sat?"Low":"High"); 1488 const TString line2 = Form("#sigma per pix: %2.2f #pm %2.2f", sigma, TMath::Sqrt(sigmavar)); 1489 const TString line3 = Form("Rel. #sigma per pix: %2.2f #pm %2.2f", relsigma, TMath::Sqrt(relsigmavar)); 1490 1491 text->AddText(line1.Data()); 1492 text->AddText(line2.Data()); 1493 text->AddText(line3.Data()); 1503 1494 } 1504 1495 -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeCam.cc
r8957 r8988 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationChargeCam.cc,v 1.6 1 2008-06-14 15:55:53tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationChargeCam.cc,v 1.62 2008-06-30 09:36:36 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 1286 1286 break; 1287 1287 case MCalibrationCam::kUV: 1288 fit->SetLineColor( 106);1288 fit->SetLineColor(51); 1289 1289 break; 1290 1290 case MCalibrationCam::kCT1: 1291 fit->SetLineColor( 006);1291 fit->SetLineColor(6); 1292 1292 break; 1293 1293 default: … … 1337 1337 { 1338 1338 TLine *line = new TLine(refline, 0, refline, hist->GetMaximum()); 1339 line->SetLineColor( 106);1339 line->SetLineColor(51); 1340 1340 line->SetLineStyle(2); 1341 1341 line->SetLineWidth(3); … … 1343 1343 line->Draw(); 1344 1344 1345 TLegend *leg = new TLegend(0.8,0.01,0.99,0. 45);1345 TLegend *leg = new TLegend(0.8,0.01,0.99,0.15); 1346 1346 leg->AddEntry(line, "10 Leds UV", "l"); 1347 1347 leg->SetBit(kCanDelete); -
trunk/MagicSoft/Mars/mhcalib/Makefile
r8795 r8988 40 40 MHCalibrationChargePINDiode.cc \ 41 41 MHCalibrationRelTimeCam.cc \ 42 MHCalibrationTestCam.cc \43 42 MHCalibrationPulseTimeCam.cc \ 44 MHCalibrationTestTimeCam.cc \45 43 MHGausEvents.cc 46 44
Note:
See TracChangeset
for help on using the changeset viewer.