Changeset 5126


Ignore:
Timestamp:
09/24/04 16:01:33 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mcalib/MCalibrationBlindCamTwoNewStyle.cc

    r4986 r5126  
    5454    : MCalibrationBlindCam(2,name,"Two Blind Pixels in camera - new style")
    5555{
    56 
    5756  CreatePixs    ();   
    5857  CreateAreas   ();   
     
    6059  CreateQEs     ();     
    6160  CreateCollEffs();
    62 
    6361}
    6462
     
    8381{
    8482
    85   MCalibrationBlindPix &pix = (MCalibrationBlindPix&)(*this)[0];
    86   pix.SetArea(100.);
    87 
    88   pix = (MCalibrationBlindPix&)(*this)[1];
    89   pix.SetArea(100.);
    90  
    91 }
     83  MCalibrationBlindPix &pix0 = (MCalibrationBlindPix&)(*this)[0];
     84  pix0.SetArea(100.);
     85
     86  MCalibrationBlindPix &pix1 = (MCalibrationBlindPix&)(*this)[1];
     87  pix1.SetArea(100.);
     88}
     89
    9290
    9391// --------------------------------------------------------------------------
     
    9997{
    10098
    101   MCalibrationBlindPix &pix = (MCalibrationBlindPix&)(*this)[0]; 
     99  MCalibrationBlindPix &pix0 = (MCalibrationBlindPix&)(*this)[0]; 
    102100
    103101  Float_t qe[4];
     
    108106  qe[    MCalibrationCam::kCT1   ] = 0.273;
    109107
    110   pix.SetQE(4,qe); 
     108  pix0.SetQE(4,qe); 
    111109
    112110  Float_t qeerr[4];
     
    117115  qeerr[    MCalibrationCam::kCT1   ] = 0.006;
    118116
    119   pix.SetQEErr(4,qeerr); 
    120 
    121   pix = (MCalibrationBlindPix&)(*this)[1];
     117  pix0.SetQEErr(4,qeerr); 
     118
     119  MCalibrationBlindPix &pix1 = (MCalibrationBlindPix&)(*this)[1];
    122120
    123121  qe[    MCalibrationCam::kGREEN ] = 0.155;
     
    126124  qe[    MCalibrationCam::kCT1   ] = 0.261;
    127125
    128   pix.SetQE(4,qe); 
     126  pix1.SetQE(4,qe); 
    129127
    130128  qeerr[    MCalibrationCam::kGREEN ] = 0.004;
     
    133131  qeerr[    MCalibrationCam::kCT1   ] = 0.006;
    134132
    135   pix.SetQEErr(4,qeerr); 
     133  pix1.SetQEErr(4,qeerr); 
    136134
    137135}
     
    145143{
    146144
    147   MCalibrationBlindPix &pix = (MCalibrationBlindPix&)(*this)[0]; 
     145  MCalibrationBlindPix &pix0 = (MCalibrationBlindPix&)(*this)[0]; 
    148146
    149147  Float_t colleff[4];
     
    154152  colleff[    MCalibrationCam::kCT1   ] = 0.90;
    155153
    156   pix.SetCollEff(4,colleff); 
     154  pix0.SetCollEff(4,colleff); 
    157155
    158156  Float_t collefferr[4];
     
    163161  collefferr[    MCalibrationCam::kCT1   ] = 0.05;
    164162
    165   pix.SetCollEffErr(4,collefferr); 
    166 
    167   pix = (MCalibrationBlindPix&)(*this)[1];
     163  pix0.SetCollEffErr(4,collefferr); 
     164
     165  MCalibrationBlindPix &pix1 = (MCalibrationBlindPix&)(*this)[1];
    168166 
    169167  colleff[    MCalibrationCam::kGREEN ] = 0.99;
     
    172170  colleff[    MCalibrationCam::kCT1   ] = 0.90;
    173171
    174   pix.SetCollEff(4,colleff); 
     172  pix1.SetCollEff(4,colleff); 
    175173
    176174  collefferr[    MCalibrationCam::kGREEN ] = 0.05;
     
    179177  collefferr[    MCalibrationCam::kCT1   ] = 0.05;
    180178 
    181   pix.SetCollEffErr(4,collefferr);   
     179  pix1.SetCollEffErr(4,collefferr);   
    182180}
    183181
     
    193191{
    194192
    195   MCalibrationBlindPix &pix = (MCalibrationBlindPix&)(*this)[0]; 
     193  MCalibrationBlindPix &pix0 = (MCalibrationBlindPix&)(*this)[0]; 
    196194
    197195  Float_t att[4];
     
    202200  att[MCalibrationCam::kCT1   ] = 1.95;
    203201
    204   pix.SetAtt(4,att);
     202  pix0.SetAtt(4,att);
    205203
    206204  Float_t atterr[4];
     
    211209  atterr[    MCalibrationCam::kCT1   ] = 0.01;
    212210
    213   pix.SetAttErr(4,atterr);
    214 
    215   pix = (MCalibrationBlindPix&)(*this)[1]; 
     211  pix0.SetAttErr(4,atterr);
     212
     213  MCalibrationBlindPix &pix1 = (MCalibrationBlindPix&)(*this)[1]; 
    216214
    217215  att[MCalibrationCam::kGREEN ] = 3.00;
     
    220218  att[MCalibrationCam::kCT1   ] = 3.00;
    221219
    222   pix.SetAtt(4,att);
     220  pix1.SetAtt(4,att);
    223221
    224222  atterr[    MCalibrationCam::kGREEN ] = 0.15;
     
    227225  atterr[    MCalibrationCam::kCT1   ] = 0.15;
    228226
    229   pix.SetAttErr(4,atterr);
    230  
    231 }
    232 
     227  pix1.SetAttErr(4,atterr);
     228 
     229}
     230
Note: See TracChangeset for help on using the changeset viewer.