Ignore:
Timestamp:
07/13/05 19:06:26 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r7005 r7188  
    5252  // differences in gain of outer pixels)
    5353  //
    54   CalibrationFilename = new TString("/data1/magic/mc_data/root/Period025/gammas_nonoise/Gamma_zbin0_*.root");
     54  CalibrationFilename = new TString("nonoise/Gamma_zbin0_0_7_1000to1009_w0.root");
    5555  // File to be used in the calibration (must be a camera file without added noise)
    5656
    57 
    58   Char_t* AnalysisFilename = "Gamma_zbin1_0_*.root";  // File to be analyzed
    59 
     57  Char_t* AnalysisFilename = "Gamma_zbin0_0_*.root";  // File to be analyzed
    6058
    6159
     
    7674  // USER CHANGE: tail cuts for image analysis
    7775
    78   Float_t CleanLev[2] = {7., 5.};
    79   MImgCleanStd  clean(CleanLev[0], CleanLev[1]); // Applies tail cuts to image.
    80   clean.SetMethod(MImgCleanStd::kAbsolute);      // In absolute units (phot or phe- as chosen below)
    81 
     76  Float_t CleanLev[2] = {10., 5.}; // Tail cuts for the analysis loop
     77  MImgCleanStd clean2(CleanLev[0], CleanLev[1]); // Applies tail cuts to image.
     78  clean2.SetMethod(MImgCleanStd::kAbsolute);
    8279
    8380  //  USER CHANGE: signal extraction
    84   //
    85   //  MExtractFixedWindowPeakSearch sigextract;
    86   //  sigextract.SetWindows(6, 6, 4);
    8781
    8882  //  MExtractTimeAndChargeDigitalFilter sigextract;
     
    9185
    9286  MExtractTimeAndChargeSpline sigextract;
     87  sigextract.SetChargeType(MExtractTimeAndChargeSpline::kIntegral);
    9388  sigextract.SetRiseTimeHiGain(0.5);
    9489  sigextract.SetFallTimeHiGain(0.5);
     
    9691  // USER CHANGE: high to low gain ratio. DEPENDS on EXTRACTOR!!
    9792  // One should calculate somewhere else what this factor is for each extractor!
    98   Float_t hi2low = 12.; // tentative value for spline with risetime 0.5, fall time 0.5
     93
     94  //  Float_t hi2low = 10.83;
     95  // value for digital filter, HG window 4, LG window 6
     96
     97  Float_t hi2low = 11.28;
     98  // value for spline with risetime 0.5, fall time 0.5, low gain stretch 1.5
    9999
    100100
     
    108108
    109109
     110  MImgCleanStd  clean(0.,0.);
     111  // All pixels containing any photon will be accepted. This is what we want
     112  // for the calibration loop (since no noise is added)
     113  clean.SetMethod(MImgCleanStd::kAbsolute);
     114  // In absolute units (phot or phe- as chosen below)
     115
    110116  MSrcPosCam src;
    111117  //
    112   // ONLY FOR WOBBLE MODE!!
    113   //   src.SetX(120.);  // units: mm
     118  // ONLY FOR WOBBLE MODE!! : set the rigt source position on camera!
     119  //   src.SetX(120.);   // units: mm. Value for MC w+ files
     120  //   src.SetX(-120.);  // units: mm. Value for MC w- files
    114121
    115122  src.SetReadyToSave();
     
    244251  //
    245252
     253
    246254  MProgressBar bar;
    247255  bar.SetWindowName("Calibrating...");
     
    273281  tlist.RemoveFromList(&read);
    274282
     283  tlist.AddToListBefore(&clean2, &clean);
     284  tlist.RemoveFromList(&clean);
     285
    275286  //
    276287  // Analyzed only the desired fraction of events, skip the rest:
Note: See TracChangeset for help on using the changeset viewer.