Ignore:
Timestamp:
06/30/08 10:37:00 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhcalib
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhcalib/HCalibLinkDef.h

    r8795 r8988  
    1313#pragma link C++ class MHCalibrationChargePINDiode+;
    1414#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+;
    1717#pragma link C++ class MHCalibrationPulseTimeCam+;
    1818//#pragma link C++ class MHCalibrationHiLoCam+;
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationCam.cc

    r8452 r8988  
    14721472//
    14731473void 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
    14861481      TPaveText *text = new TPaveText(sat? 0.1 : 0.35,0.7,sat ? 0.4 : 0.7,1.0);
    14871482      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);
    14951484      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());
    15031494}
    15041495
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeCam.cc

    r8957 r8988  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationChargeCam.cc,v 1.61 2008-06-14 15:55:53 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MHCalibrationChargeCam.cc,v 1.62 2008-06-30 09:36:36 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    12861286            break;
    12871287        case MCalibrationCam::kUV:
    1288             fit->SetLineColor(106);
     1288            fit->SetLineColor(51);
    12891289            break;
    12901290        case MCalibrationCam::kCT1:
    1291             fit->SetLineColor(006);
     1291            fit->SetLineColor(6);
    12921292            break;
    12931293        default:
     
    13371337{
    13381338    TLine *line = new TLine(refline, 0, refline, hist->GetMaximum());
    1339     line->SetLineColor(106);
     1339    line->SetLineColor(51);
    13401340    line->SetLineStyle(2);
    13411341    line->SetLineWidth(3);
     
    13431343    line->Draw();
    13441344
    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);
    13461346    leg->AddEntry(line, "10 Leds UV", "l");
    13471347    leg->SetBit(kCanDelete);
  • trunk/MagicSoft/Mars/mhcalib/Makefile

    r8795 r8988  
    4040           MHCalibrationChargePINDiode.cc \
    4141           MHCalibrationRelTimeCam.cc \
    42            MHCalibrationTestCam.cc \
    4342           MHCalibrationPulseTimeCam.cc \
    44            MHCalibrationTestTimeCam.cc \
    4543           MHGausEvents.cc
    4644
Note: See TracChangeset for help on using the changeset viewer.