Changeset 4626 for trunk


Ignore:
Timestamp:
08/16/04 13:06:15 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mjobs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.cc

    r4620 r4626  
    156156const Int_t MJCalibration::gkSecondBlindPixelInstallation = 31693;
    157157const Int_t MJCalibration::gkThirdBlindPixelInstallation  = 99999;
     158
     159const Double_t MJCalibration::fgConvFADC2PheMin           = 0.;
     160const Double_t MJCalibration::fgConvFADC2PheMax           = 1.5;
     161const Double_t MJCalibration::fgConvFADC2PhotMin          = 0.;
     162const Double_t MJCalibration::fgConvFADC2PhotMax          = 10.;
     163const Double_t MJCalibration::fgQEMin                     = 0.;
     164const Double_t MJCalibration::fgQEMax                     = 0.3;
     165
     166const Float_t  MJCalibration::fgRefConvFADC2PheInner      = 0.14;       
     167const Float_t  MJCalibration::fgRefConvFADC2PheOuter      = 0.45;       
     168const Float_t  MJCalibration::fgRefConvFADC2PhotInner     = 0.8;
     169const Float_t  MJCalibration::fgRefConvFADC2PhotOuter     = 3.8;
     170const Float_t  MJCalibration::fgRefQEInner                = 0.18;           
     171const Float_t  MJCalibration::fgRefQEOuter                = 0.12;
    158172// --------------------------------------------------------------------------
    159173//
     
    559573      // for the datacheck, fix the ranges!!
    560574      //
    561       // obj5->SetMinimum(fgChargeMin);
    562       // obj5->SetMaximum(fgChargeMax);
     575      obj5->SetMinimum(fgConvFADC2PheMin);
     576      obj5->SetMaximum(fgConvFADC2PheMax);
    563577      //
    564578      // Set the datacheck sizes:
     
    568582      // set reference lines
    569583      //
    570       //        DisplayReferenceLines(obj5,0);
     584      DisplayReferenceLines(obj5,2);
    571585     
    572586      c2.cd(4);
     
    591605      // for the datacheck, fix the ranges!!
    592606      //
    593       // obj6->SetMinimum(fgChargeMin);
    594       // obj6->SetMaximum(fgChargeMax);
     607      obj6->SetMinimum(fgQEMin);
     608      obj6->SetMaximum(fgQEMax);
    595609      //
    596610      // Set the datacheck sizes:
     
    600614      // set reference lines
    601615      //
    602       //        DisplayReferenceLines(obj6,0);
     616      DisplayReferenceLines(obj6,0);
    603617     
    604618      c2.cd(5);
     
    623637      // for the datacheck, fix the ranges!!
    624638      //
    625       // obj3->SetMinimum(fgChargeMin);
    626       // obj3->SetMaximum(fgChargeMax);
     639      obj7->SetMinimum(fgConvFADC2PhotMin);
     640      obj7->SetMaximum(fgConvFADC2PhotMax);
    627641      //
    628642      // Set the datacheck sizes:
     
    632646      // set reference lines
    633647      //
    634       //        DisplayReferenceLines(obj3,0);
     648      DisplayReferenceLines(obj7,1);
    635649     
    636650      c2.cd(6);
     
    855869{
    856870
    857   Double_t x = cam->GetNbinsX();
    858  
    859871  const MGeomCam *geom = cam->GetGeometry();
    860872
    861   if (geom->InheritsFrom("MGeomCamMagic"))
    862     x = what ? 397 : cam->GetNbinsX();
     873  Double_t x = geom->InheritsFrom("MGeomCamMagic") ? 397 : cam->GetNbinsX() ;
    863874
    864875  TLine line;
    865876  line.SetLineStyle(kDashed);
    866877  line.SetLineWidth(3);
    867  
    868   /*
    869878  line.SetLineColor(kBlue);
    870   TLine *l1 = line.DrawLine(0, what ? fgRefPedRmsGalacticInner : fgRefPedGalactic,
    871                             x, what ? fgRefPedRmsGalacticInner : fgRefPedGalactic);
    872  
    873   line.SetLineColor(kYellow);
    874   TLine *l2 = line.DrawLine(0, what ? fgRefPedRmsExtraGalacticInner : fgRefPedExtraGalactic,
    875                             x, what ? fgRefPedRmsExtraGalacticInner : fgRefPedExtraGalactic);
    876  
    877   line.SetLineColor(kMagenta);
    878   TLine *l3 = line.DrawLine(0, what ? fgRefPedRmsClosedLidsInner : fgRefPedClosedLids,
    879                             x, what ? fgRefPedRmsClosedLidsInner : fgRefPedClosedLids);
    880 
     879 
     880  TLine *l1 = NULL;
     881
     882  if (what == 0)
     883    l1 = line.DrawLine(0, fgRefQEInner, x, fgRefQEInner);     
     884  else if (what == 1)
     885    l1 = line.DrawLine(0, fgRefConvFADC2PhotInner, x, fgRefConvFADC2PhotInner);     
     886  else if (what == 2)
     887    l1 = line.DrawLine(0, fgRefConvFADC2PheInner, x, fgRefConvFADC2PheInner );
     888 
    881889  if (geom->InheritsFrom("MGeomCamMagic"))
    882     if (what)
    883       {
    884         const Double_t x2 = cam->GetNbinsX();
    885 
    886         line.SetLineColor(kBlue);
    887         line.DrawLine(398, fgRefPedRmsGalacticOuter,
    888                       x2,  fgRefPedRmsGalacticOuter);
    889        
    890         line.SetLineColor(kYellow);
    891         line.DrawLine(398, fgRefPedRmsExtraGalacticOuter,
    892                       x2,  fgRefPedRmsExtraGalacticOuter);
    893        
    894         line.SetLineColor(kMagenta);
    895         line.DrawLine(398, fgRefPedRmsClosedLidsOuter,
    896                       x2,  fgRefPedRmsClosedLidsOuter);
    897       }
    898    
    899   TLegend *leg = new TLegend(0.4,0.75,0.7,0.99);
     890    {
     891      const Double_t x2 = cam->GetNbinsX();
     892
     893      switch (what)
     894        {
     895        case 0:
     896          line.DrawLine(x2, fgRefQEOuter, 398, fgRefQEOuter);     
     897          break;
     898        case 1:
     899          line.DrawLine(x2, fgRefConvFADC2PhotOuter, 398, fgRefConvFADC2PhotOuter );     
     900          break;
     901        case 2:
     902          line.DrawLine(x2, fgRefConvFADC2PheOuter, 398, fgRefConvFADC2PheOuter);
     903          break;
     904        }
     905    }
     906 
     907  TLegend *leg = new TLegend(what ? 0.2 : 0.6,0.75,what ? 0.5 : 0.9 ,0.85);
    900908  leg->SetBit(kCanDelete);
    901   leg->AddEntry(l1, "Galactic Source","l");
    902   leg->AddEntry(l2, "Extra-Galactic Source","l");
    903   leg->AddEntry(l3, "Closed Lids","l");
     909  leg->AddEntry(l1, "Reference","l");
    904910  leg->Draw();
    905   */   
    906 
    907 
    908911}
    909912
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.h

    r4623 r4626  
    4141  static const Int_t gkThirdBlindPixelInstallation;    //! Run number upon which third blind pixel was installed
    4242
     43  static const Double_t fgConvFADC2PheMin;             //! Histogram minimum for conversion factor to phes
     44  static const Double_t fgConvFADC2PheMax;             //! Histogram maximum for conversion factor to phes
     45  static const Double_t fgConvFADC2PhotMin;            //! Histogram minimum for conversion factor to phs
     46  static const Double_t fgConvFADC2PhotMax;            //! Histogram maixmum for conversion factor to phs
     47  static const Double_t fgQEMin;                       //! Histogram minimum for quantum efficiency
     48  static const Double_t fgQEMax;                       //! Histogram maximum for quantum efficiency
     49 
    4350  static const Float_t  fgRefConvFADC2PheInner;        //! Reference value for the conversion factor to phes - inner
    4451  static const Float_t  fgRefConvFADC2PheOuter;        //! Reference value for the conversion factor to phes - outer
Note: See TracChangeset for help on using the changeset viewer.