Changeset 3360 for trunk


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

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3359 r3360  
    77   
    88   * mjobs/MJPedestal.cc
     9   * mjobs/MJCalibration.cc
     10   * macros/calibration.C
    911   
    1012     - put in call to MHCamera::Projection the name of teh calling
  • trunk/MagicSoft/Mars/macros/calibration.C

    r3323 r3360  
    2828{
    2929
    30     const char *inpath = "/remote/home/pc2/operator/Crab20040214/";
     30//    const char *inpath = "/remote/home/pc2/operator/NewCalBoxTest/";
     31//    const char *inpath = "/remote/home/pc2/operator/Crab20040214/";
     32    const char *inpath = "./";
    3133    //const TString inpath = "/mnt/Data/rootdata/CrabNebula/2004_02_10/";
    3234    //const TString inpath = "/mnt/Data/rootdata/CrabNebula/2004_01_26/";
     
    3638    MRunIter cruns;
    3739
    38     pruns.AddRuns(15487,15494,inpath);
    39     cruns.AddRuns(15495,15508,inpath);
     40    pruns.AddRun(14400,inpath);
     41    cruns.AddRuns(14401,14409,inpath);
     42//    pruns.AddRuns(15487,15494,inpath);
     43//    cruns.AddRuns(15495,15508,inpath);
     44//    pruns.AddRun(19816,inpath);  // CalboxTest
     45//    cruns.AddRun(19820,inpath); // 3blue
     46//    cruns.AddRun(19820,inpath);   // 1blue
    4047
    4148    gStyle->SetOptStat(1111);
     
    4350
    4451    MStatusDisplay *display = new MStatusDisplay;
    45     display->SetUpdateTime(500);
     52    display->SetUpdateTime(3000);
    4653    display->Resize(850,700);
    4754
     
    95102    MHCalibrationChargePINDiode histpin;
    96103    MHCalibrationChargeBlindPix histblind;
     104//    histblind.SetSinglePheCut(80);
    97105    //
    98106    // As long, as we don't have digital modules,
     
    110118    plist.AddToList(&histtime);
    111119    plist.AddToList(&histcharge);
    112     plist.AddToList(&histpin);
     120//    plist.AddToList(&histpin);
    113121    plist.AddToList(&histblind);
    114122
     
    120128    MExtractPINDiode       pincalc;
    121129    MExtractBlindPixel     blindcalc;
     130//    blindcalc.SetRange(11,16);
     131
    122132    MArrivalTimeCalc2      timecalc;
    123133    MCalibrationChargeCalc calcalc;
     
    125135   
    126136    MFillH filltime( "MHCalibrationRelTimeCam"    , "MArrivalTimeCam");
    127     MFillH fillpin  ("MHCalibrationChargePINDiode", "MExtractedSignalPINDiode");
     137//   MFillH fillpin  ("MHCalibrationChargePINDiode", "MExtractedSignalPINDiode");
    128138    MFillH fillblind("MHCalibrationChargeBlindPix", "MExtractedSignalBlindPixel");
    129139    MFillH fillcam  ("MHCalibrationChargeCam"     , "MExtractedSignalCam");
     
    139149    //
    140150    MFCosmics            cosmics;
     151    cosmics.SetMaxEmptyPixels(0.4);
    141152    MContinue            cont(&cosmics);
    142153
     
    145156    tlist.AddToList(&sigcalc2);
    146157    tlist.AddToList(&blindcalc);
    147     tlist.AddToList(&pincalc);
     158//    tlist.AddToList(&pincalc);
    148159    //
    149160    // In case, you want to skip the cosmics rejection,
     
    189200    //
    190201    histblind.DrawClone("all");
    191     histcharge[5].DrawClone("time");
     202    histcharge[5].DrawClone("all");
     203    histcharge(5).DrawClone("all");
    192204    histtime[5].DrawClone("fourierevents");
    193205
     
    469481      c.cd(i+2*j);
    470482      gPad->SetBorderMode(0);
    471       TH1D *obj2 = (TH1D*)obj1->Projection();
     483      TH1D *obj2 = (TH1D*)obj1->Projection(obj1.GetName());
    472484     
    473485//      obj2->Sumw2();
     
    558570        }
    559571     
     572        // Just to get the right (maximum) binning
     573        TH1D *half[2];
     574        half[0] = obj1->Projection("Sector 6-1-2");
     575        half[1] = obj1->Projection("Sector 3-4-5");
     576
     577        half[0]->Reset();
     578        half[1]->Reset();
     579
     580        TH1D *dummy = obj1->Projection("Dummy");
     581
     582        for (int i=1; i<7/*obj1->GetGeomCam().GetNumSectors()*/; i++)
     583            half[(i/3)%2]->Add(obj1->ProjectionS(i, "Dummy"));
     584
     585        for (int i=0; i<2; i++)
     586        {
     587            half[i]->SetLineColor(kRed+i);
     588            half[i]->SetDirectory(0);
     589            half[i]->SetBit(kCanDelete);
     590            half[i]->Draw("same");
     591        }
     592
     593        delete dummy;
     594
    560595      gPad->Modified();
    561596      gPad->Update();
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.cc

    r3323 r3360  
    7878{
    7979
    80   TH1D *obj2 = (TH1D*)obj1->Projection();
     80  TH1D *obj2 = (TH1D*)obj1->Projection(obj1->GetName());
    8181  obj2->Draw();
    8282  obj2->SetBit(kCanDelete);
Note: See TracChangeset for help on using the changeset viewer.