Changeset 4965
- Timestamp:
- 09/12/04 23:17:27 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeCam.cc
r4963 r4965 145 145 #include <TStyle.h> 146 146 #include <TF1.h> 147 #include <TLine.h>148 147 #include <TLatex.h> 149 148 #include <TLegend.h> … … 1468 1467 { 1469 1468 1470 TLine *green1 = new TLine(refline[0],0.,refline[0],0.9*hist->GetMaximum()); 1469 TGraph *green1 = new TGraph(2); 1470 green1->SetPoint(0,refline[0],0.1); 1471 green1->SetPoint(1,refline[0],hist->GetMaximum()); 1471 1472 green1->SetBit(kCanDelete); 1472 1473 green1->SetLineColor(kGreen); 1473 1474 green1->SetLineStyle(2); 1474 1475 green1->SetLineWidth(3); 1475 green1->Draw(); 1476 1477 TLine *green5 = new TLine(refline[6],0.,refline[6],0.9*hist->GetMaximum()); 1476 green1->Draw("L"); 1477 1478 TGraph *green5 = new TGraph(2); 1479 green5->SetPoint(0,refline[6],0.1); 1480 green5->SetPoint(1,refline[6],hist->GetMaximum()); 1478 1481 green5->SetBit(kCanDelete); 1479 1482 green5->SetLineColor(8); 1480 1483 green5->SetLineStyle(2); 1481 1484 green5->SetLineWidth(3); 1482 green5->Draw(); 1483 1484 TLine *blue1 = new TLine(refline[1],0.,refline[1],0.9*hist->GetMaximum()); 1485 green5->Draw("L"); 1486 1487 TGraph *blue1 = new TGraph(2); 1488 blue1->SetPoint(0,refline[1],0.1); 1489 blue1->SetPoint(1,refline[1],hist->GetMaximum()); 1485 1490 blue1->SetBit(kCanDelete); 1486 1491 blue1->SetLineColor(227); 1487 1492 blue1->SetLineStyle(2); 1488 1493 blue1->SetLineWidth(3); 1489 blue1->Draw(); 1490 1491 TLine *blue5 = new TLine(refline[2],0.,refline[2],0.9*hist->GetMaximum()); 1494 blue1->Draw("L"); 1495 1496 TGraph *blue5 = new TGraph(2); 1497 blue5->SetPoint(0,refline[2],0.1); 1498 blue5->SetPoint(1,refline[2],hist->GetMaximum()); 1492 1499 blue5->SetBit(kCanDelete); 1493 1500 blue5->SetLineColor(68); 1494 1501 blue5->SetLineStyle(2); 1495 1502 blue5->SetLineWidth(3); 1496 blue5->Draw(); 1497 1498 TLine *blue10 = new TLine(refline[3],0.,refline[3],0.9*hist->GetMaximum()); 1503 blue5->Draw("L"); 1504 1505 TGraph *blue10 = new TGraph(2); 1506 blue10->SetPoint(0,refline[3],0.1); 1507 blue10->SetPoint(1,refline[3],hist->GetMaximum()); 1499 1508 blue10->SetBit(kCanDelete); 1500 1509 blue10->SetLineColor(4); 1501 1510 blue10->SetLineStyle(2); 1502 1511 blue10->SetLineWidth(3); 1503 blue10->Draw(); 1504 1505 TLine *uv10 = new TLine(refline[4],0.,refline[4],0.9*hist->GetMaximum()); 1512 blue10->Draw("L"); 1513 1514 TGraph *uv10 = new TGraph(2); 1515 uv10->SetPoint(0,refline[4],0.1); 1516 uv10->SetPoint(1,refline[4],hist->GetMaximum()); 1506 1517 uv10->SetBit(kCanDelete); 1507 1518 uv10->SetLineColor(106); 1508 1519 uv10->SetLineStyle(2); 1509 1520 uv10->SetLineWidth(3); 1510 uv10->Draw(); 1511 1512 TLine *ct1 = new TLine(refline[5],0.,refline[5],0.9*hist->GetMaximum()); 1521 uv10->Draw("L"); 1522 1523 TGraph *ct1 = new TGraph(2); 1524 ct1->SetPoint(0,refline[5],0.1); 1525 ct1->SetPoint(1,refline[5],hist->GetMaximum()); 1513 1526 ct1->SetBit(kCanDelete); 1514 1527 ct1->SetLineColor(6); 1515 1528 ct1->SetLineStyle(2); 1516 1529 ct1->SetLineWidth(3); 1517 ct1->Draw( );1530 ct1->Draw("L"); 1518 1531 1519 1532 TLegend *leg = new TLegend(0.8,0.35,0.99,0.99);
Note:
See TracChangeset
for help on using the changeset viewer.