Changeset 4389 for trunk


Ignore:
Timestamp:
07/15/04 13:51:02 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r4384 r4389  
    1919
    2020                                                 -*-*- END OF LINE -*-*-
     21
     22
     23 2004/07/15: Markus Gaug
     24
     25  * mcalib/MHCalibrationChargeCam.[h,cc]
     26    - hard coded the reference lines for the DataCheck Display. Should be faster and
     27      easier to read than the TArrayF's.
    2128
    2229
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.cc

    r4340 r4389  
    156156const Float_t MHCalibrationChargeCam::fgTimeLowerLimit           = 1.;
    157157const Float_t MHCalibrationChargeCam::fgTimeUpperLimit           = 2.;
    158 const Int_t   MHCalibrationChargeCam::gkNumRefColours            = 7;
     158// 1Led Green, 1 LED blue, 5 LEDs blue, 10 LEDs blue, 10 LEDs UV, CT1, 5Leds Green
     159const Float_t MHCalibrationChargeCam::gkHiGainInnerRefLines[7]   = { 245., 323. , 1065., 1467., 180., 211. , 533.5};   
     160const Float_t MHCalibrationChargeCam::gkHiGainOuterRefLines[7]   = { 217., 307.5, 932. , 1405., 167., 183.5, 405.5};
     161const Float_t MHCalibrationChargeCam::gkLoGainInnerRefLines[7]   = { 20.8, 28.0 , 121. , 200.2, 16.5, 13.5 , 41.7 };
     162const Float_t MHCalibrationChargeCam::gkLoGainOuterRefLines[7]   = { 18.9, 26.0 , 108.3, 198. , 14.0, 11.  , 42.  };
    159163// --------------------------------------------------------------------------
    160164//
     
    181185  SetTimeUpperLimit();
    182186
    183   gkHiGainInnerRefLines.Set(gkNumRefColours);
    184   gkHiGainOuterRefLines.Set(gkNumRefColours);
    185   gkLoGainInnerRefLines.Set(gkNumRefColours);
    186   gkLoGainOuterRefLines.Set(gkNumRefColours);
    187 
    188   // 1 LED green
    189   gkHiGainInnerRefLines.AddAt(245. ,0);
    190   gkHiGainOuterRefLines.AddAt(217. ,0);
    191   gkLoGainInnerRefLines.AddAt(20.8 ,0);
    192   gkLoGainOuterRefLines.AddAt(18.9 ,0);
    193 
    194   // 1 LED blue
    195   gkHiGainInnerRefLines.AddAt(323. ,1);
    196   gkHiGainOuterRefLines.AddAt(307.5,1);
    197   gkLoGainInnerRefLines.AddAt(28.0 ,1);
    198   gkLoGainOuterRefLines.AddAt(26.0 ,1);
    199 
    200   // 5 LEDs blue
    201   gkHiGainInnerRefLines.AddAt(1065.,2);
    202   gkHiGainOuterRefLines.AddAt(932. ,2);
    203   gkLoGainInnerRefLines.AddAt(121. ,2);
    204   gkLoGainOuterRefLines.AddAt(108.3,2);
    205 
    206   // 10 LEDs blue
    207   gkHiGainInnerRefLines.AddAt(1467.,3);
    208   gkHiGainOuterRefLines.AddAt(1405.,3);
    209   gkLoGainInnerRefLines.AddAt(200.2,3);
    210   gkLoGainOuterRefLines.AddAt(198. ,3);
    211 
    212   // 10 LEDs UV
    213   gkHiGainInnerRefLines.AddAt(180.,4);
    214   gkHiGainOuterRefLines.AddAt(167.,4);
    215   gkLoGainInnerRefLines.AddAt(16.5,4);
    216   gkLoGainOuterRefLines.AddAt(14.0,4);
    217 
    218   // CT1
    219   gkHiGainInnerRefLines.AddAt(211.,5);
    220   gkHiGainOuterRefLines.AddAt(183.5,5);
    221   gkLoGainInnerRefLines.AddAt(13.5,5);
    222   gkLoGainOuterRefLines.AddAt(11.,5);
    223 
    224   // 5 LEDs green
    225   gkHiGainInnerRefLines.AddAt(533.5,6);
    226   gkHiGainOuterRefLines.AddAt(405.5,6);
    227   gkLoGainInnerRefLines.AddAt(41.7,6);
    228   gkLoGainOuterRefLines.AddAt(42.,6);
    229187
    230188}
     
    1002960}
    1003961
    1004 void MHCalibrationChargeCam::DrawDataCheckPixel(MHCalibrationChargePix &pix, const TArrayF &refline)
     962void MHCalibrationChargeCam::DrawDataCheckPixel(MHCalibrationChargePix &pix, const Float_t refline[])
    1005963{
    1006964 
     
    10501008
    10511009
    1052 void  MHCalibrationChargeCam::DisplayRefLines(const TH2D *hist, const TArrayF &refline) const
    1053 {
    1054 
    1055   TLine *green1 = new TLine(refline.At(0),0.,refline.At(0),hist->GetYaxis()->GetXmax());
     1010void  MHCalibrationChargeCam::DisplayRefLines(const TH2D *hist, const Float_t refline[]) const
     1011{
     1012
     1013  TLine *green1 = new TLine(refline[0],0.,refline[0],hist->GetYaxis()->GetXmax());
    10561014  green1->SetBit(kCanDelete);
    10571015  green1->SetLineColor(kGreen);
     
    10601018  green1->Draw();
    10611019
    1062   TLine *green5 = new TLine(refline.At(6),0.,refline.At(6),hist->GetYaxis()->GetXmax());
     1020  TLine *green5 = new TLine(refline[6],0.,refline[6],hist->GetYaxis()->GetXmax());
    10631021  green5->SetBit(kCanDelete);
    10641022  green5->SetLineColor(8);
     
    10671025  green5->Draw();
    10681026
    1069   TLine *blue1   = new TLine(refline.At(1),0.,refline.At(1),hist->GetYaxis()->GetXmax());
     1027  TLine *blue1   = new TLine(refline[1],0.,refline[1],hist->GetYaxis()->GetXmax());
    10701028  blue1->SetBit(kCanDelete);
    10711029  blue1->SetLineColor(007);
     
    10741032  blue1->Draw();
    10751033
    1076   TLine *blue5   = new TLine(refline.At(2),0.,refline.At(2),hist->GetYaxis()->GetXmax());
     1034  TLine *blue5   = new TLine(refline[2],0.,refline[2],hist->GetYaxis()->GetXmax());
    10771035  blue5->SetBit(kCanDelete);
    10781036  blue5->SetLineColor(062);
     
    10811039  blue5->Draw();
    10821040
    1083   TLine *blue10   = new TLine(refline.At(3),0.,refline.At(3),hist->GetYaxis()->GetXmax());
     1041  TLine *blue10   = new TLine(refline[3],0.,refline[3],hist->GetYaxis()->GetXmax());
    10841042  blue10->SetBit(kCanDelete);
    10851043  blue10->SetLineColor(004);
     
    10881046  blue10->Draw();
    10891047
    1090   TLine *uv10    = new TLine(refline.At(4),0.,refline.At(4),hist->GetYaxis()->GetXmax());
     1048  TLine *uv10    = new TLine(refline[4],0.,refline[4],hist->GetYaxis()->GetXmax());
    10911049  uv10->SetBit(kCanDelete);
    10921050  uv10->SetLineColor(106);
     
    10951053  uv10->Draw();
    10961054
    1097   TLine *ct1    = new TLine(refline.At(5),0.,refline.At(5),hist->GetYaxis()->GetXmax());
     1055  TLine *ct1    = new TLine(refline[5],0.,refline[5],hist->GetYaxis()->GetXmax());
    10981056  ct1->SetBit(kCanDelete);
    10991057  ct1->SetLineColor(006);
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.h

    r4326 r4389  
    2323  static const Float_t fgTimeLowerLimit;             //! Default for fTimeLowerLimit    (now set to: 1.)
    2424  static const Float_t fgTimeUpperLimit;             //! Default for fTimeUpperLimit    (now set to: 2.)
    25   static const Int_t   gkNumRefColours;
    2625 
    27   TArrayF gkHiGainInnerRefLines;
    28   TArrayF gkHiGainOuterRefLines;
    29   TArrayF gkLoGainInnerRefLines;
    30   TArrayF gkLoGainOuterRefLines;
     26  static const Float_t gkHiGainInnerRefLines[7];
     27  static const Float_t gkHiGainOuterRefLines[7];
     28  static const Float_t gkLoGainInnerRefLines[7];
     29  static const Float_t gkLoGainOuterRefLines[7];
    3130 
    3231  Float_t fTimeLowerLimit;            // Limit dist. to first signal slice (in units of FADC slices)
     
    4847  void   FinalizeBadPixels();
    4948
    50   void   DrawDataCheckPixel(MHCalibrationChargePix &pix, const TArrayF &refline);
    51   void   DisplayRefLines(const TH2D *hist, const TArrayF &refline) const;
     49  void   DrawDataCheckPixel(MHCalibrationChargePix &pix, const Float_t refline[]);
     50  void   DisplayRefLines(const TH2D *hist, const Float_t refline[]) const;
    5251 
    5352public:
Note: See TracChangeset for help on using the changeset viewer.