Changeset 3124 for trunk


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

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3122 r3124  
    2626   * mcalib/MHCalibrationPixel.[h,cc], mcalib/MCalibrationPix.[h,cc],
    2727     mcalib/MCalibrationCalc.[h,cc]
     28     macros/calibration.C
    2829     - implemented new histograms:
    2930       HSinglePheFADCSlices and HPedestalFADCSlices
     
    3233       variable: MCalibrationCalc::fBlindPixelSinglePheCut, to be set
    3334       with a setter
    34      - as the blind pixel signal seems to be delayed a bit, the
    35        extraction range is now by default: 10,20. The extractor takes
    36        already care of the fact that part of the signal lies in the
    37        LoGain Sample.
    38 
    3935
    4036
  • 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
  • trunk/MagicSoft/Mars/mcalib/MCalibrationCalc.cc

    r3123 r3124  
    115115const UInt_t MCalibrationCalc::fPINDiodeId   = 9999;
    116116const Byte_t MCalibrationCalc::fgSaturationLimit = 254;
    117 const Int_t  MCalibrationCalc::fgBlindPixelFirst = 10;
    118 const Int_t  MCalibrationCalc::fgBlindPixelLast  = 20;
     117const Int_t  MCalibrationCalc::fgBlindPixelFirst = 3;
     118const Int_t  MCalibrationCalc::fgBlindPixelLast  = 14;
    119119const Int_t  MCalibrationCalc::fgBlindPixelSinglePheCut = 400;
    120120
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationBlindPixel.h

    r3120 r3124  
    2626  static const Double_t fgBlindPixelElectronicAmpError;
    2727
    28   static const Int_t   fPSDNbins;
    29   static const Int_t   fPulserFrequency;
     28  static const Int_t    fPSDNbins;
     29  static const Int_t    fPulserFrequency;
    3030 
    3131  TH1I* fHBlindPixelCharge;        // Histogram with the single Phe spectrum
     
    9999
    100100  enum     { kFitOK, kOscillating };
    101 
    102101 
    103102public:
     
    176175  Bool_t CheckOscillations();
    177176
    178  
    179177private:
    180178
Note: See TracChangeset for help on using the changeset viewer.