Ignore:
Timestamp:
02/21/04 02:09:39 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/macros
Files:
3 edited

Legend:

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

    r3202 r3255  
    114114    //
    115115
    116     MCalibrationCam         calcam;
     116    MCalibrationChargeCam   calcam;
    117117    MExtractedSignalCam     sigcam;
     118    MCalibrationChargePINDiode pindiode;
    118119   
     120    //
     121    // As long, as we don't have digital modules,
     122    // we have to set the color of the pulser LED by hand
     123    //
     124    calcam.SetColor(MCalibrationChargeCam::kECT1);
     125    pindiode.SetColor(MCalibrationChargePINDiode::kECT1);
     126
    119127    plist2.AddToList(&geomcam);
    120128    plist2.AddToList(&pedcam);
    121129    plist2.AddToList(&calcam);
    122130    plist2.AddToList(&sigcam);
     131    plist2.AddToList(&pindiode);
     132
     133   // hists
     134    MFillH fillpin("MHCalibrationChargePINDiode", "MExtractedSignalPINDiode");
    123135
    124136    //tasks
     
    126138    read2.DisableAutoScheme();
    127139
    128     MExtractPINDiode      pincalc;
    129     MExtractBlindPixel    blindcalc;
    130     MExtractSignal        sigsig;
    131     MCalibrationCalc      calcalc;
    132 
    133     MFillH fillpin("MHCalibrationChargePINDiode", "MExtractedSignalPINDiode");
    134     //
    135     // As long, as we don't have digital modules,
    136     // we have to set the color of the pulser LED by hand
    137     //
    138     calcalc.SetPulserColor(MCalibrationCalc::kECT1);
     140    MExtractPINDiode       pincalc;
     141    MExtractBlindPixel     blindcalc;
     142    MExtractSignal         sigsig;
     143    MCalibrationChargeCalc calcalc;
    139144
    140145    //
     
    156161    tlist2.AddToList(&cont);
    157162    //
     163    tlist2.AddToList(&fillpin);
    158164    tlist2.AddToList(&calcalc);
    159     tlist2.AddToList(&fillpin);
    160165    //
    161166    // Create and setup the eventloop
  • 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());
  • trunk/MagicSoft/Mars/macros/pedphotcalc.C

    r3203 r3255  
    3434#include "MGeomCamMagic.h"
    3535#include "MEvtLoop.h"
    36 #include "MCalibrationCam.h"
     36#include "MCalibrationChargeCam.h"
    3737#include "MExtractedSignalCam.h"
    3838#include "MExtractSignal.h"
    39 #include "MCalibrationCalc.h"
     39#include "MCalibrationChargeCalc.h"
    4040#include "MCerPhotEvt.h"
    4141#include "MCalibrate.h"
     
    109109 
    110110  // containers 
    111   MCalibrationCam    calcam;
    112   MExtractedSignalCam sigcam;
     111  MCalibrationChargeCam calcam;
     112  MExtractedSignalCam   sigcam;
    113113 
    114114  plist2.AddToList(&geomcam);
     
    121121  read2.DisableAutoScheme();
    122122 
    123   MExtractPINDiode     pincalc;
    124   MExtractBlindPixel   blindcalc;
    125   MExtractSignal       sigcalc;
    126   MCalibrationCalc    calcalc;
     123  MExtractPINDiode       pincalc;
     124  MExtractBlindPixel     blindcalc;
     125  MExtractSignal         sigcalc;
     126  MCalibrationChargeCalc calcalc;
    127127 
    128128  MFillH fillpin("MHCalibrationChargePINDiode", "MExtractedSignalPINDiode");
    129129  //
    130130  // Apply a filter against cosmics
    131   // (was directly in MCalibrationCalc in earlier versions)
     131  // (was directly in MCalibrationChargeCalc in earlier versions)
    132132  //
    133133  MFCosmics            cosmics;
    134134  MContinue            cont(&cosmics);
    135135
    136   //
    137   // As long as we don't have digital modules,
    138   // we have to set the color of the pulser LED by hand
    139   //
    140   calcalc.SetPulserColor(MCalibrationCalc::kECT1);
    141  
    142136  tlist2.AddToList(&read2);
    143137  tlist2.AddToList(&geomapl);
     
    151145  tlist2.AddToList(&cont);
    152146  //
     147  tlist2.AddToList(&fillpin);
    153148  tlist2.AddToList(&calcalc);
    154   tlist2.AddToList(&fillpin);
    155149 
    156150  // Execute second loop (calibration)
Note: See TracChangeset for help on using the changeset viewer.