Ignore:
Timestamp:
02/21/04 02:09:39 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/macros/calibration.C

    r3234 r3255  
    2323\* ======================================================================== */
    2424
     25const TString pedfile = "../20040215_16770_P_OffCrab4_E.root";
     26const TString calfile = "../20040215_16771_C_OffCrab4_E.root";
     27
    2528//const TString pedfile = "/mnt/users/mdoro/Mars/Data/20040201_14418_P_OffMrk421-1_E.root";
    2629//const TString calfile = "/mnt/users/mdoro/Mars/Data/20040201_1441*_C_OffMrk421-1_E.root";
    2730
    28 const TString pedfile = "/mnt/Data/rootdata/CrabNebula/2004_02_10/20040210_14607_P_CrabNebula_E.root";
    29 const TString calfile = "/mnt/Data/rootdata/CrabNebula/2004_02_10/20040210_14608_C_CrabNebula_E.root";
     31//const TString pedfile = "/mnt/Data/rootdata/CrabNebula/2004_02_10/20040210_14607_P_CrabNebula_E.root";
     32//const TString calfile = "/mnt/Data/rootdata/CrabNebula/2004_02_10/20040210_14608_C_CrabNebula_E.root";
    3033
    3134//const TString pedfile = "/mnt/Data/rootdata/CrabNebula/2004_01_26/20040125_10412_P_Crab-On_E.root";
     
    4346
    4447    MStatusDisplay *display = new MStatusDisplay;
    45     display->SetUpdateTime(3000);
     48    display->SetUpdateTime(500);
    4649    display->Resize(850,700);
    4750
     
    110113    // Look at one specific pixel, after all the histogram manipulations:
    111114    //
    112     hpedcam[9].DrawClone("fourier");
     115    hpedcam[9].DrawClone("fourierevents");
    113116
    114117
     
    218221
    219222    MExtractedSignalCam     sigcam;
    220     MCalibrationCam         calcam;
     223    MCalibrationChargeCam   calcam;
    221224    MHCalibrationRelTimeCam timecam;
    222225    //
     
    244247    // thus take the sliding window
    245248    //         
    246     MExtractPINDiode     pincalc;
    247     MExtractBlindPixel   blindcalc;
    248     MExtractSignal2      sigcalc2;
    249     MArrivalTimeCalc2    timecalc;
    250     MCalibrationCalc    calcalc;
     249    MExtractPINDiode       pincalc;
     250    MExtractBlindPixel     blindcalc;
     251    MExtractSignal2        sigcalc2;
     252    MArrivalTimeCalc2      timecalc;
     253    MCalibrationChargeCalc calcalc;
    251254
    252255    MFillH filltime("MHCalibrationRelTimeCam", "MArrivalTime");
     
    274277    // we have to set the color of the pulser LED by hand
    275278    //
    276     calcalc.SetPulserColor(MCalibrationCalc::kECT1);
     279//    calcalc.SetPulserColor(MCalibrationCalc::kECT1);
    277280
    278281    //
     
    338341    // print the most important results of all pixels
    339342    //
    340     //    calcam.Print();
     343    calcam.Print();
    341344
    342345    //
    343346    // just one example how to get the plots of individual pixels
    344347    //
    345     //  calcam[563].DrawClone();
    346     //  calcam[564].DrawClone();
     348    calcam[564].DrawClone();
    347349
    348350    // Create histograms to display
     
    559561    CamDraw(c9,disp21,calcam,2,2,2);
    560562
    561 
    562563    // Rel. Times
    563564    TCanvas &c10 = display->AddTab("Fitted Rel. Times");
     
    581582    CamDraw(c12,disp27,calcam,1,2,2);
    582583    CamDraw(c12,disp28,calcam,2,2,2);
    583 
    584584}
    585585
     
    603603      TH1D *obj2 = (TH1D*)obj1->Projection();
    604604     
     605      obj2->Sumw2();
    605606      obj2->Draw();
    606607      obj2->SetBit(kCanDelete);
    607      
    608608
    609609      const Double_t min   = obj2->GetBinCenter(obj2->GetXaxis()->GetFirst());
Note: See TracChangeset for help on using the changeset viewer.