Changeset 3974


Ignore:
Timestamp:
05/05/04 16:03:46 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3971 r3974  
    2828       pedestal. About 6 times faster than MArrivalTimeCalc
    2929
     30   * mjobs/MJCalibration.cc
     31     - changed names of the MHCameras to contain run name
    3032
    3133 2004/05/04: Raquel de los Reyes
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.cc

    r3963 r3974  
    111111#include "MHCalibrationCam.h"
    112112#include "MHCalibrationChargeCam.h"
     113#include "MHCalibrationChargeBlindPix.h"
    113114#include "MHCalibrationRelTimeCam.h"
    114115#include "MCalibrationRelTimeCam.h"
     
    131132
    132133#include "MArrivalTimeCam.h"
    133 #include "MArrivalTimeCalc.h"
    134 #include "MArrivalTimeCalc2.h"
    135134
    136135#include "MStatusDisplay.h"
     
    220219
    221220    // Create histograms to display
    222     MHCamera disp1 (geomcam, "Charge",            "Fitted Mean Charges");
    223     MHCamera disp2 (geomcam, "SigmaCharge",       "Sigma of Fitted Charges");
    224     MHCamera disp3 (geomcam, "RSigma",            "Reduced Sigmas");
    225     MHCamera disp4 (geomcam, "RSigmaPerCharge",   "Reduced Sigma per Charge");
    226     MHCamera disp5 (geomcam, "NumPhes",           "Nr. of Phe's (F-Factor Method)");
    227     MHCamera disp6 (geomcam, "ConvFADC2Phes",     "Conversion Factor (F-Factor Method)");
    228     MHCamera disp7 (geomcam, "TotalFFactor",      "Total F-Factor (F-Factor Method)");
    229     MHCamera disp8 (geomcam, "CascadesQEFFactor", "Cascades QE (F-Factor Method)");
    230     MHCamera disp9 (geomcam, "CascadesQEBlindPix","Cascades QE (Blind Pixel Method)");
    231     MHCamera disp10(geomcam, "CascadesQEPINDiode","Cascades QE (PIN Diode Method)");
    232     MHCamera disp11(geomcam, "CascadesQECombined","Cascades QE (Combined Method)");
    233     MHCamera disp12(geomcam, "FFactorValid",      "Pixels with valid F-Factor calibration");
    234     MHCamera disp13(geomcam, "BlindPixelValid",   "Pixels with valid BlindPixel calibration");
    235     MHCamera disp14(geomcam, "PINdiodeValid",     "Pixels with valid PINDiode calibration");
    236     MHCamera disp15(geomcam, "CombinedValid",     "Pixels with valid Combined calibration");
    237     MHCamera disp16(geomcam, "Saturation",        "Pixels with saturated Hi Gain");
    238     MHCamera disp17(geomcam, "ConversionMeans",   "Conversion HiGain.vs.LoGain Means");
    239     MHCamera disp18(geomcam, "ConversionSigmas",  "Conversion HiGain.vs.LoGain Sigmas");
    240     MHCamera disp19(geomcam, "HiGainPickup",      "Number Pickup events Hi Gain");
    241     MHCamera disp20(geomcam, "LoGainPickup",      "Number Pickup events Lo Gain");
    242     MHCamera disp21(geomcam, "HiGainBlackout",    "Number Blackout events Hi Gain");
    243     MHCamera disp22(geomcam, "LoGainBlackout",    "Number Blackout events Lo Gain");
    244     MHCamera disp23(geomcam, "Excluded",          "Pixels previously excluded");
    245     MHCamera disp24(geomcam, "Bad;UnSuitable",        "Pixels not suited for further analysis");
    246     MHCamera disp25(geomcam, "Bad;UnReliable",        "Pixels not reliable for further analysis");
    247     MHCamera disp26(geomcam, "Bad;HiGainOscillating", "Oscillating Pixels High Gain");
    248     MHCamera disp27(geomcam, "Bad;LoGainOscillating", "Oscillating Pixels Low Gain");
    249     MHCamera disp28(geomcam, "Cal;AbsTimeMean",       "Abs. Arrival Times");
    250     MHCamera disp29(geomcam, "Cal;AbsTimeRms",        "RMS of Arrival Times");
    251     MHCamera disp30(geomcam, "time;MeanTime",         "Mean Rel. Arrival Times");
    252     MHCamera disp31(geomcam, "time;SigmaTime",        "Sigma Rel. Arrival Times");
    253     MHCamera disp32(geomcam, "time;TimeProb",         "Probability of Time Fit");
    254     MHCamera disp33(geomcam, "time;NotFitValid",      "Pixels with not valid fit results");
    255     MHCamera disp34(geomcam, "time;Oscillating",      "Oscillating Pixels");
    256 
    257 
    258    
     221    MHCamera disp1 (geomcam, Form("%s%s","Charge",(fRuns->GetRunsAsFileName()).Data()),
     222                    "Fitted Mean Charges");
     223    MHCamera disp2 (geomcam, Form("%s%s","SigmaCharge",(fRuns->GetRunsAsFileName()).Data()),
     224                    "Sigma of Fitted Charges");
     225    MHCamera disp3 (geomcam, Form("%s%s","RSigma",(fRuns->GetRunsAsFileName()).Data()),
     226                    "Reduced Sigmas");
     227    MHCamera disp4 (geomcam, Form("%s%s","RSigmaPerCharge",(fRuns->GetRunsAsFileName()).Data()), 
     228                    "Reduced Sigma per Charge");
     229    MHCamera disp5 (geomcam, Form("%s%s","NumPhes",(fRuns->GetRunsAsFileName()).Data()),
     230                    "Nr. of Phe's (F-Factor Method)");
     231    MHCamera disp6 (geomcam, Form("%s%s","ConvFADC2Phes",(fRuns->GetRunsAsFileName()).Data()),
     232                    "Conversion Factor (F-Factor Method)");
     233    MHCamera disp7 (geomcam, Form("%s%s","TotalFFactor",(fRuns->GetRunsAsFileName()).Data()),
     234                    "Total F-Factor (F-Factor Method)");
     235    MHCamera disp8 (geomcam, Form("%s%s","CascadesQEFFactor",(fRuns->GetRunsAsFileName()).Data()),
     236                    "Cascades QE (F-Factor Method)");
     237    MHCamera disp9 (geomcam, Form("%s%s","CascadesQEBlindPix",(fRuns->GetRunsAsFileName()).Data()),
     238                    "Cascades QE (Blind Pixel Method)");
     239    MHCamera disp10(geomcam, Form("%s%s","CascadesQEPINDiode",(fRuns->GetRunsAsFileName()).Data()),
     240                    "Cascades QE (PIN Diode Method)");
     241    MHCamera disp11(geomcam, Form("%s%s","CascadesQECombined",(fRuns->GetRunsAsFileName()).Data()),
     242                    "Cascades QE (Combined Method)");
     243    MHCamera disp12(geomcam, Form("%s%s","FFactorValid",(fRuns->GetRunsAsFileName()).Data()),
     244                    "Pixels with valid F-Factor calibration");
     245    MHCamera disp13(geomcam, Form("%s%s","BlindPixelValid",(fRuns->GetRunsAsFileName()).Data()),
     246                    "Pixels with valid BlindPixel calibration");
     247    MHCamera disp14(geomcam, Form("%s%s","PINdiodeValid",(fRuns->GetRunsAsFileName()).Data()),
     248                    "Pixels with valid PINDiode calibration");
     249    MHCamera disp15(geomcam, Form("%s%s","CombinedValid",(fRuns->GetRunsAsFileName()).Data()),
     250                    "Pixels with valid Combined calibration");
     251    MHCamera disp16(geomcam, Form("%s%s","Saturation",(fRuns->GetRunsAsFileName()).Data()),
     252                    "Pixels with saturated Hi Gain");
     253    MHCamera disp17(geomcam, Form("%s%s","ConversionMeans",(fRuns->GetRunsAsFileName()).Data()),
     254                    "Conversion HiGain.vs.LoGain Means");
     255    MHCamera disp18(geomcam, Form("%s%s","ConversionSigmas",(fRuns->GetRunsAsFileName()).Data()),
     256                    "Conversion HiGain.vs.LoGain Sigmas");
     257    MHCamera disp19(geomcam, Form("%s%s","HiGainPickup",(fRuns->GetRunsAsFileName()).Data()),
     258                    "Number Pickup events Hi Gain");
     259    MHCamera disp20(geomcam, Form("%s%s","LoGainPickup",(fRuns->GetRunsAsFileName()).Data()),
     260                    "Number Pickup events Lo Gain");
     261    MHCamera disp21(geomcam, Form("%s%s","HiGainBlackout",(fRuns->GetRunsAsFileName()).Data()),
     262                    "Number Blackout events Hi Gain");
     263    MHCamera disp22(geomcam, Form("%s%s","LoGainBlackout",(fRuns->GetRunsAsFileName()).Data()),
     264                    "Number Blackout events Lo Gain");
     265    MHCamera disp23(geomcam, Form("%s%s","Excluded",(fRuns->GetRunsAsFileName()).Data()),
     266                    "Pixels previously excluded");
     267    MHCamera disp24(geomcam, Form("%s%s","UnSuitable",(fRuns->GetRunsAsFileName()).Data()),
     268                    "Pixels not suited for further analysis");
     269    MHCamera disp25(geomcam, Form("%s%s","UnReliable",(fRuns->GetRunsAsFileName()).Data()),
     270                    "Pixels not reliable for further analysis");
     271    MHCamera disp26(geomcam, Form("%s%s","HiGainOscillating",(fRuns->GetRunsAsFileName()).Data()),
     272                    "Oscillating Pixels High Gain");
     273    MHCamera disp27(geomcam, Form("%s%s","LoGainOscillating",(fRuns->GetRunsAsFileName()).Data()),
     274                    "Oscillating Pixels Low Gain");
     275    MHCamera disp28(geomcam, Form("%s%s","AbsTimeMean",(fRuns->GetRunsAsFileName()).Data()),
     276                    "Abs. Arrival Times");
     277    MHCamera disp29(geomcam, Form("%s%s","AbsTimeRms",(fRuns->GetRunsAsFileName()).Data()),
     278                    "RMS of Arrival Times");
     279    MHCamera disp30(geomcam, Form("%s%s","MeanTime",(fRuns->GetRunsAsFileName()).Data()),
     280                    "Mean Rel. Arrival Times");
     281    MHCamera disp31(geomcam, Form("%s%s","SigmaTime",(fRuns->GetRunsAsFileName()).Data()),
     282                    "Sigma Rel. Arrival Times");
     283    MHCamera disp32(geomcam, Form("%s%s","TimeProb",(fRuns->GetRunsAsFileName()).Data()),
     284                    "Probability of Time Fit");
     285    MHCamera disp33(geomcam, Form("%s%s","TimeNotFitValid",(fRuns->GetRunsAsFileName()).Data()),
     286                    "Pixels with not valid fit results");
     287    MHCamera disp34(geomcam, Form("%s%s","TimeOscillating",(fRuns->GetRunsAsFileName()).Data()),
     288                    "Oscillating Pixels");
     289
    259290    // Fitted charge means and sigmas
    260291    disp1.SetCamContent(fCalibrationCam,  0);
     
    498529    if (fDisplayType == kFullDisplay)
    499530      {
     531
     532        MHCalibrationChargeBlindPix *blind = (MHCalibrationChargeBlindPix*)plist.FindObject("MHCalibrationChargeBlindPix");
     533        blind->DrawClone();
     534        gPad->GetCanvas()->SaveAs(Form("%s%s%s",blind->GetName(),(fRuns->GetRunsAsString()).Data(),".root"));
     535       
     536        MHCalibrationChargeCam *cam = (MHCalibrationChargeCam*)plist.FindObject("MHCalibrationChargeCam");
     537        cam->DrawClone();
     538        gPad->GetCanvas()->SaveAs(Form("%s%s%s",cam->GetName(),(fRuns->GetRunsAsString()).Data(),".root"));
     539       
     540        MHCalibrationRelTimeCam *rel = (MHCalibrationRelTimeCam*)plist.FindObject("MHCalibrationRelTimeCam");
     541        rel->DrawClone();
     542        gPad->GetCanvas()->SaveAs(Form("%s%s%s",rel->GetName(),(fRuns->GetRunsAsString()).Data(),".root"));
    500543
    501544        MHCalibrationCam *cam = (MHCalibrationCam*)plist.FindObject("MHCalibrationChargeCam");
     
    841884  MExtractSlidingWindow    extract2;
    842885  MExtractTimeSpline       timespline;
    843   MArrivalTimeCalc         arrcalc;
    844886  MCalibrationChargeCalc   calcalc;
    845887  MCalibrationRelTimeCalc  timecalc;
     
    877919      *fLog << warn << GetDescriptor()
    878920            << ": No extractor has been chosen, take default MExtractSlidingWindow " << endl;
    879       //      tlist.AddToList(&extract2);
    880       tlist.AddToList(&arrcalc);
     921      tlist.AddToList(&extract2);
    881922    }
    882923 
Note: See TracChangeset for help on using the changeset viewer.