Ignore:
Timestamp:
02/09/05 19:37:19 (20 years ago)
Author:
moralejo
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r5819 r6318  
    5252  // differences in gain of outer pixels)
    5353  //
    54   CalibrationFilename = new TString("/data1/magic/mc_data/root/Period021_0.73_mirror/gammas_nonoise/Gamma_zbin0_*.root");
     54  CalibrationFilename = new TString("/users/emc/moralejo/mcdata/Period021_0.73_mirror/gammas_nonoise/Gamma_zbin0_*.root");
     55
    5556  // File to be used in the calibration (must be a camera file without added noise)
    5657
    57   Char_t* AnalysisFilename = "Gamma_zbin*.root";  // File to be analyzed
     58  Char_t* AnalysisFilename = "Gamma_*w0.root";  // File to be analyzed
     59  //  Char_t* AnalysisFilename = "Gamma_*1000to1009*w0.root";  // File to be analyzed
    5860
    5961
     
    7274  Float_t accepted_fraction = 1.;
    7375
    74   Float_t CleanLev[2] = {3., 2.}; // Tail cuts for image analysis
     76  Float_t CleanLev[2] = {5.75, 3.84}; // Tail cuts for image analysis
     77  MImgCleanStd  clean(CleanLev[0], CleanLev[1]); // Applies tail cuts to image.
     78  //  clean.SetMethod(MImgCleanStd::kScaled);
    7579
    7680  //  Int_t BinsHigh[2] = {5, 10}; // First and last FADC bin of the range to be integrated,
     
    8185  //  sigextract.SetRange(BinsHigh[0], BinsHigh[1], BinsLow[0], BinsLow[1]);
    8286
    83   MExtractFixedWindowPeakSearch sigextract;
    84   sigextract.SetWindows(6, 6, 4);
     87//     MExtractFixedWindowPeakSearch sigextract;
     88//     sigextract.SetWindows(6, 6, 4);
     89
     90   MExtractTimeAndChargeDigitalFilter sigextract;
     91   sigextract.SetNameWeightsFile("/users/emc/moralejo/Mars/msignal/MC_weights.dat");
     92   sigextract.SetNameWeightsFile("/users/emc/moralejo/Mars/msignal/cosmics_weights.dat");
     93   sigextract.SetRange(1, 14, 3, 14);
    8594
    8695  MSrcPosCam src;
     
    136145  MCalibrateData calib; // Transforms signals from ADC counts into photons.
    137146  calib.SetCalibrationMode(MCalibrateData::kFfactor);
     147  calib.SetSignalType(MCalibrateData::kPhe);
    138148
    139149  //    MBlindPixelCalc   blind;
    140150  //    blind.SetUseInterpolation();
    141 
    142   MImgCleanStd      clean(CleanLev[0], CleanLev[1]); // Applies tail cuts to image.
    143151
    144152  MHillasCalc       hcalc; // Calculates Hillas parameters not dependent on source position.
     
    223231  //
    224232
    225   MProgressBar bar;
    226   bar.SetWindowName("Calibrating...");
     233  //  MProgressBar bar;
     234  //  bar.SetWindowName("Calibrating...");
    227235
    228236  MEvtLoop evtloop;
    229   evtloop.SetProgressBar(&bar);
     237  //  evtloop.SetProgressBar(&bar);
    230238  evtloop.SetParList(&plist);
    231239
     
    261269  tlist.AddToListBefore(&skip, &sigextract);
    262270
    263   bar.SetWindowName("Analyzing...");
     271  //  bar.SetWindowName("Analyzing...");
    264272
    265273  tlist.RemoveFromList(&mccalibcalc); // Removes calibration task from list.
Note: See TracChangeset for help on using the changeset viewer.