Changeset 5531 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
11/30/04 20:38:44 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r5523 r5531  
    3939     - updated to new version of MPedCalcPedRun (only important for
    4040       intensity calibration)
     41     - installed the new possible handling of two MPedestalCam's - one
     42       for the signal extractor and another one (with the extractor
     43       resolution) for MCalibrationChargeCalc.
    4144     
    4245   * msignal/MExtractTimeAndCharge.cc
  • trunk/MagicSoft/Mars/macros/getExtractor.C

    r5530 r5531  
    107107
    108108  MExtractor *extractor   = NULL;
    109   Bool_t useTimeAndCharge = kFALSE;
    110109 
    111110  //
     
    148147      // ATTENTION: If an extractor deriving from MExtractTimeAndCharge is
    149148      //            used, you may want to use the timing calculated directly
    150       //            from there. Use the flag: "useTimeAndCharge" in this case
     149      //            from there.
    151150      //
    152151      // MExtractTimeHighestIntegral
     
    155154      //
    156155      // COMBINED TIME AND CHARGE EXTRACTORS:
    157       // (You have to set the variable "useTimeAndCharge" in order to use the
    158       //  time calculated by this extractor!)
    159156      // MExtractTimeAndChargeDigitalFilter
    160157      // MExtractTimeAndChargeSpline       
     
    169166      extractor = new MExtractTimeAndChargeSlidingWindow();
    170167      extractor->SetRange(0,18,2,14);
    171       useTimeAndCharge = kTRUE;
    172168      break;
    173169    case 23:
     
    179175      ((MExtractTimeAndChargeSpline*)extractor)->SetChargeType(MExtractTimeAndChargeSpline::kIntegral);     
    180176      extractor->SetRange(0,18,2,14);
    181       useTimeAndCharge = kTRUE;
    182177      break;
    183178    case 28:
     
    189184      extractor = new MExtractTimeAndChargeDigitalFilter;
    190185      extractor->SetRange(0,18,2,14);
    191       useTimeAndCharge = kTRUE;
    192186      break;
    193187    default:
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.cc

    r5511 r5531  
    16851685      fTimeExtractor = &timespline;
    16861686
     1687    //
     1688    // Look if the extractor is a pure charge or also a time extractor
     1689    //
     1690    if (fExtractor->InheritsFrom("MExtractTimeAndCharge"))
     1691      {
     1692        SetTimeAndCharge();
     1693        if (fExtractorCam.GetSize() == pedcam.GetSize())
     1694          {
     1695            plist.AddToList(&fExtractorCam);
     1696            calcalc.SetNamePedestalCam(fExtractorCam.GetName());
     1697          }
     1698        else
     1699          *fLog << warn << "Used Extractor derives from MExtractTimeAndCharge, "
     1700                << "but no MExtractorCam has been handed over! " << endl;
     1701      }
     1702   
    16871703    MTaskEnv taskenv("ExtractSignal");
    16881704    taskenv.SetDefault(fExtractor);
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.h

    r5308 r5531  
    3737#ifndef MARS_MBadPixelsCam
    3838#include "MBadPixelsCam.h"
     39#endif
     40#ifndef MARS_MPedestalCam
     41#include "MPedestalCam.h"
    3942#endif
    4043
     
    98101  MCalibrationRelTimeCam          fRelTimeCam;          // Calibration constants rel. times
    99102 
     103  MPedestalCam                    fExtractorCam;        // Pedestal Cam with extractor resolution
     104
    100105  MCalibrationCam::PulserColor_t fColor;                // Colour of the pulsed LEDs
    101106 
     
    143148  Bool_t IsHistsStorage () const { return TESTBIT(fStorage,kHistsStorage); }
    144149
    145   void DrawTab(MParList &plist, const char *cont, const char *name, Option_t *opt);
     150  void   SetTimeAndCharge( const Bool_t b=kTRUE ) { b
     151                                                      ? SETBIT(fFlags,kTimeAndCharge)
     152                                                      : CLRBIT(fFlags,kTimeAndCharge); } 
     153
     154  void   DrawTab(MParList &plist, const char *cont, const char *name, Option_t *opt);
    146155 
    147156  void   DisplayResult        ( MParList &plist );
     
    177186  MBadPixelsCam                   &GetBadPixels()            { return fBadPixels;        }
    178187 
    179   void SetBadPixels(const MBadPixelsCam &bad)               { bad.Copy(fBadPixels); }
    180   void SetExtractor(MExtractor* ext)                        { fExtractor = ext;     }
    181   void SetTimeExtractor(MExtractTime* ext)                  { fTimeExtractor = ext; }
    182   void SetQECam(const MCalibrationQECam &qe)                { qe.Copy(fQECam);      }
    183   void SetColor(const MCalibrationCam::PulserColor_t color) { fColor = color;       }
    184   void SetInput(MRunIter *iter)                             { fRuns = iter;         }
     188  // Containers and pointers
     189  void SetBadPixels    ( const MBadPixelsCam &bad)                   { bad.Copy(fBadPixels); }
     190  void SetColor        ( const MCalibrationCam::PulserColor_t color) { fColor = color;       }
     191  void SetExtractor    ( MExtractor* ext)                            { fExtractor = ext;     }
     192  void SetExtractorCam ( const MPedestalCam  &ped)                   { ped.Copy(fExtractorCam); } 
     193  void SetInput        ( MRunIter *iter)                             { fRuns = iter;         }
     194  void SetQECam        ( const MCalibrationQECam &qe)                { qe.Copy(fQECam);      }
     195  void SetTimeExtractor( MExtractTime* ext)                          { fTimeExtractor = ext; }
    185196   
    186197  // Displays
     
    198209  void SetDebug             ( const Bool_t b=kTRUE ) { b ? SETBIT(fFlags,kDebug)     : CLRBIT(fFlags,kDebug); }
    199210  void SetIntensity         ( const Bool_t b=kTRUE ) { b ? SETBIT(fFlags,kIntensity) : CLRBIT(fFlags,kIntensity); }
    200   void SetTimeAndCharge      ( const Bool_t b=kTRUE ) { b ? SETBIT(fFlags,kTimeAndCharge) : CLRBIT(fFlags,kTimeAndCharge); } 
    201211 
    202212  // Devices
Note: See TracChangeset for help on using the changeset viewer.