Changeset 4965


Ignore:
Timestamp:
09/12/04 23:17:27 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeCam.cc

    r4963 r4965  
    145145#include <TStyle.h>
    146146#include <TF1.h>
    147 #include <TLine.h>
    148147#include <TLatex.h>
    149148#include <TLegend.h>
     
    14681467{
    14691468
    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());
    14711472  green1->SetBit(kCanDelete);
    14721473  green1->SetLineColor(kGreen);
    14731474  green1->SetLineStyle(2);
    14741475  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());
    14781481  green5->SetBit(kCanDelete);
    14791482  green5->SetLineColor(8);
    14801483  green5->SetLineStyle(2);
    14811484  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());
    14851490  blue1->SetBit(kCanDelete);
    14861491  blue1->SetLineColor(227);
    14871492  blue1->SetLineStyle(2);
    14881493  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());
    14921499  blue5->SetBit(kCanDelete);
    14931500  blue5->SetLineColor(68);
    14941501  blue5->SetLineStyle(2);
    14951502  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());
    14991508  blue10->SetBit(kCanDelete);
    15001509  blue10->SetLineColor(4);
    15011510  blue10->SetLineStyle(2);
    15021511  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());
    15061517  uv10->SetBit(kCanDelete);
    15071518  uv10->SetLineColor(106);
    15081519  uv10->SetLineStyle(2);
    15091520  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());
    15131526  ct1->SetBit(kCanDelete);
    15141527  ct1->SetLineColor(6);
    15151528  ct1->SetLineStyle(2);
    15161529  ct1->SetLineWidth(3);
    1517   ct1->Draw();
     1530  ct1->Draw("L");
    15181531
    15191532  TLegend *leg = new TLegend(0.8,0.35,0.99,0.99);
Note: See TracChangeset for help on using the changeset viewer.