Changeset 3797


Ignore:
Timestamp:
04/22/04 16:21:43 (21 years ago)
Author:
reyes
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mjobs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.cc

    r3740 r3797  
    4848//
    4949// If the flag SetFullDisplay() is set, all MHCameras will be displayed.
    50 // if the flag SetDataCheck() is set, only the most important ones are displayed
     50// if the flag SetDataCheckDisplay() is set, only the most important ones are displayed
    5151// Otherwise, (default: SetNormalDisplay()), a good selection of plots is given
    5252//
     53// If the flag SetDataCheck() is set, the calibration is used as in the data check at
     54// La Palma, which mean especially running it on raw data files.
     55//
    5356// See also: MHCalibrationChargePix, MHCalibrationChargeCam, MHGausEvents
    5457//           MHCalibrationChargeBlindPix, MHCalibrationChargePINDiode
     
    114117
    115118#include "MReadMarsFile.h"
     119#include "MRawFileRead.h"
    116120#include "MGeomApply.h"
    117121#include "MBadPixelsMerge.h"
     
    146150MJCalibration::MJCalibration(const char *name, const char *title)
    147151    : fRuns(0), fColor(MCalibrationCam::kNONE), fDisplayType(kNormalDisplay),
    148       fRelTimes(kFALSE), fExtractorLevel(2), fArrivalTimeLevel(2)
     152      fRelTimes(kFALSE), fDataCheck(kFALSE), fExtractorLevel(2), fArrivalTimeLevel(2)
    149153{
    150154  fName  = name  ? name  : "MJCalibration";
     
    241245//
    242246// If the flag SetFullDisplay() is set, all MHCameras will be displayed.
    243 // if the flag SetDataCheck() is set, only the most important ones are displayed
     247// if the flag SetDataCheckDisplay() is set, only the most important ones are displayed
    244248// and otherwise, (default: SetNormalDisplay()), a good selection of plots is given
    245249//
     
    422426    gStyle->SetOptFit();
    423427
    424     if (fDisplayType == kDataCheck)
     428    if (fDisplayType == kDataCheckDisplay)
    425429      {
    426430        TCanvas &c1 = fDisplay->AddTab("Fit.Charge");
     
    935939  *fLog << endl;
    936940 
     941  // Setup Tasklist
     942  MParList plist;
     943  MTaskList tlist;
     944  plist.AddToList(&tlist);
     945 
    937946  MReadMarsFile read("Events");
    938   read.DisableAutoScheme();
    939   static_cast<MRead&>(read).AddFiles(*fRuns);
    940  
     947  MRawFileRead rawread("");
     948
     949  if (fDataCheck)
     950  {
     951//     rawread.AddFiles(*fRuns);
     952     tlist.AddToList(&rawread);
     953  }
     954  else
     955  {
     956      read.DisableAutoScheme();
     957      static_cast<MRead&>(read).AddFiles(*fRuns);
     958      tlist.AddToList(&read);
     959  }
     960
     961
    941962  MCalibrationChargePINDiode pindiode;
    942963  MCalibrationChargeBlindPix blindpix;
    943964 
    944   // Setup Tasklist
    945   MParList plist;
    946965  plist.AddToList(&pedcam);
    947966  plist.AddToList(&fBadPixels);
     
    951970  plist.AddToList(&blindpix);
    952971
    953   MTaskList tlist;
    954   plist.AddToList(&tlist);
    955  
    956972  MGeomApply               apply;
    957973  //    MBadPixelsMerge          merge(&fBadPixels);
     
    9881004  MContinue cont(&cosmics);
    9891005 
    990   tlist.AddToList(&read);
    9911006  //    tlist.AddToList(&merge);
    9921007  tlist.AddToList(&apply);
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.h

    r3737 r3797  
    3636  MCalibrationCam::PulserColor_t fColor;                   // Colour of the pulsed LEDs
    3737
    38   enum  Display_t   { kFullDisplay, kDataCheck, kNormalDisplay }; // Possible Display types
     38  enum  Display_t   { kFullDisplay, kDataCheckDisplay, kNormalDisplay }; // Possible Display types
    3939 
    4040  Display_t fDisplayType;                                  // Chosen Display type
    4141
    4242  Bool_t fRelTimes;                                        // Flag if relative times have to be calibrated
     43  Bool_t fDataCheck;                                       // Flag if the data check is run on raw data
    4344  UInt_t fExtractorLevel;                                  // Level signal extractor (e.g. MExtractSignal2)
    4445  UInt_t fArrivalTimeLevel;                                // Level arr. time extractor (e.g. MArrivalTimeCalc2)
     
    7172
    7273  // Displays
    73   void SetFullDisplay()    { fDisplayType = kFullDisplay;   }
    74   void SetDataCheck()      { fDisplayType = kDataCheck;    }
    75   void SetNormalDisplay()  { fDisplayType = kNormalDisplay; }
     74  void SetFullDisplay()      { fDisplayType = kFullDisplay;      }
     75  void SetDataCheckDisplay() { fDisplayType = kDataCheckDisplay; }
     76  void SetNormalDisplay()    { fDisplayType = kNormalDisplay;    }
    7677
    7778  // Rel. Time
    7879  void SetRelTimeCalibration(const Bool_t b=kTRUE) { fRelTimes         = b; }
     80
     81  // Data Check
     82  void SetDataCheck         (const Bool_t b=kTRUE) { fDataCheck        = b; SetDataCheckDisplay(); }
    7983
    8084  // Extractors
Note: See TracChangeset for help on using the changeset viewer.