Ignore:
Timestamp:
02/12/04 19:54:27 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r3084 r3124  
    2626//const TString calfile = "/mnt/users/mdoro/Mars/Data/20040201_1441*_C_OffMrk421-1_E.root";
    2727
    28 const TString pedfile = "/mnt/Data/rootdata/CrabNebula/2004_01_27/20040126_12386_P_Cab-On_E.root";
    29 const TString calfile = "/mnt/Data/rootdata/CrabNebula/2004_01_27/20040126_12525_C_Cab-On_E.root";
     28const TString pedfile = "/mnt/Data/rootdata/CrabNebula/2004_02_10/20040210_14607_P_CrabNebula_E.root";
     29const TString calfile = "/mnt/Data/rootdata/CrabNebula/2004_02_10/20040210_14608_C_CrabNebula_E.root";
     30
     31//const TString pedfile = "/mnt/Data/rootdata/CrabNebula/2004_01_26/20040125_10412_P_Crab-On_E.root";
     32//const TString calfile = "/mnt/Data/rootdata/CrabNebula/2004_01_26/20040125_1041*_C_Crab-On_E.root";
    3033
    3134//const TString pedfile = "/mnt/Data/rootdata/Miscellaneous/2003_12_19/20031218_03522_P_Park_E.root";
     
    220223    MCalibrationCalc     calcalc;
    221224   
     225    //
     226    // Set the range (other than default)
     227    // of FADC slices for the blind pixel
     228    //
     229    // calcalc.SetBlindPixelRange(10,25);
     230
     231    //
     232    // Set the cut upon which a superposition of the blind pixel
     233    // FADC slices will be filled into the SinglePHE histogram
     234    //
     235    calcalc.SetBlindPixelSinglePheCut(500);
     236
     237    //
     238    // Skip the HiGain vs. LoGain calibration
     239    //
     240    calcalc.SkipHiLoGainCalibration();
     241
     242    //
     243    // As long, as we don't have digital modules,
     244    // we have to set the color of the pulser LED by hand
     245    //
     246    calcalc.SetPulserColor(MCalibrationCalc::kECT1);
     247
     248    //
     249    // In case, we want to exclude a pre-defined list of bad pixels:
     250    // (This is a preliminary feature)
     251    //
     252    // calcalc.ExcludePixelsFromAsciiFile("badpixels.dat");
     253   
     254    //
     255    // In case, you want to skip the blind pixel method:
     256    // (NOT RECOMMENDED!!!)
     257    //
     258    // calcalc.SkipBlindPixelFit();
     259
     260    //
     261    // In case, you want to skip the quality checks
     262    // (NOT RECOMMENDED!!!)
     263    //
     264    // calcalc.SkipQualityChecks();
     265
     266    //
     267    // In case, we want to apply another fit function to the
     268    // blind pixel
     269    //
     270    MCalibrationBlindPix *bp = calcam.GetBlindPixel();
     271//    bp->ChangeFitFunc(MHCalibrationBlindPixel::kEPolya);
     272    bp->ChangeFitFunc(MHCalibrationBlindPixel::kEPoisson5);
     273
    222274    //
    223275    // Apply a filter against cosmics
     
    226278    MFCosmics            cosmics;
    227279    MContinue            cont(&cosmics);
    228 
    229     //
    230     // Skip the HiGain vs. LoGain calibration
    231     //
    232     calcalc.SkipHiLoGainCalibration();
    233 
    234     //
    235     // Making the step size a bit bigger, gives us
    236     // faster results
    237     //
    238     //    timecalc.SetStepSize(0.05);
    239 
    240     //
    241     // As long, as we don't have digital modules,
    242     // we have to set the color of the pulser LED by hand
    243     //
    244     calcalc.SetPulserColor(MCalibrationCalc::kECT1);
    245 
    246     //
    247     // In case, we want to exclude a pre-defined list of bad pixels:
    248     // (This is a preliminary feature)
    249     //
    250    calcalc.ExcludePixelsFromAsciiFile("badpixels.dat");
    251    
    252     //
    253     // In case, you want to skip the blind pixel method:
    254     // (NOT RECOMMENDED!!!)
    255     //
    256     // calcalc.SkipBlindPixelFit();
    257 
    258     //
    259     // In case, you want to skip the quality checks
    260     // (NOT RECOMMENDED!!!)
    261     //
    262     // calcalc.SkipQualityChecks();
    263 
    264     //
    265     // In case, we want to apply another fit function to the
    266     // blind pixel
    267     //
    268     MCalibrationBlindPix *bp = calcam.GetBlindPixel();
    269 //    bp->ChangeFitFunc(MHCalibrationBlindPixel::kEPolya);
    270 //    bp->ChangeFitFunc(MHCalibrationBlindPixel::kEPoisson4);
    271280
    272281    tlist2.AddToList(&read2);
     
    298307    // print the most important results of all pixels
    299308    //
    300     calcam.Print();
     309    //    calcam.Print();
    301310
    302311    //
    303312    // just one example how to get the plots of individual pixels
    304313    //
    305     calcam[543].DrawClone();
     314    //    calcam[563].DrawClone();
     315    //    calcam[564].DrawClone();
    306316
    307317    // Create histograms to display
Note: See TracChangeset for help on using the changeset viewer.