Ignore:
Timestamp:
12/06/04 13:44:36 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mjobs
Files:
3 edited

Legend:

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

    r5387 r5562  
    5555#include "MBadPixelsCam.h"
    5656
    57 #include "MCalibrationChargePINDiode.h"
    58 
    5957#include "MCalibrationQECam.h"
    6058#include "MCalibrationBlindCam.h"
    6159#include "MCalibrationChargeCam.h"
    6260#include "MCalibrationRelTimeCam.h"
    63 /*
    64 #include "MCalibrationIntensityQECam.h"
    65 #include "MCalibrationIntensityBlindCam.h"
    66 #include "MCalibrationIntensityChargeCam.h"
    67 #include "MCalibrationIntensityRelTimeCam.h"
    68 */
     61#include "MCalibrationChargePINDiode.h"
     62
    6963#include "MReadReports.h"
    7064#include "MReadMarsFile.h"
     
    126120}
    127121
    128 Bool_t MJCalibrateSignal::ReadCalibration(TObjArray &l, MBadPixelsCam &cam, MTask* &ext1, MTask* &ext2, TString &geom) const
     122Bool_t MJCalibrateSignal::ReadCalibration(TObjArray &l, MBadPixelsCam &cam, MExtractor* &ext1, MExtractor* &ext2, TString &geom) const
    129123{
    130124    const TString fname = Form("%s/calib%06d.root", fPathIn.Data(), fSequence.GetSequence());
     
    145139        return kFALSE;
    146140    }
    147     ext1 = o ? (MTask*)o->Clone() : NULL;
     141    ext1 = o ? (MExtractor*)o->Clone() : NULL;
    148142
    149143    o = file.Get("ExtractTime");
     
    153147        return kFALSE;
    154148    }
    155     ext2 = o ? (MTask*)o->Clone() : NULL;
     149    ext2 = o ? (MExtractor*)o->Clone() : NULL;
    156150    if (!ext1 && !ext2)
    157151    {
     
    176170//
    177171// MJCalibration allows to setup several option by a resource file:
    178 //   MJCalibration.Display: full, datacheck, normal
    179 //   MJCalibration.RelTimeCalibration: yes,no
    180 //   MJCalibration.DataCheck: yes,no
    181 //   MJCalibration.Debug: yes,no
    182 //   MJCalibration.Intensity: yes,no
    183 //   MJCalibration.UseBlindPixel: yes,no
    184 //   MJCalibration.UsePINDiode: yes,no
    185 //   MJCalibration.Geometry: MGeomCamMagic, MGeomCamECO1000
     172//   MJCalibrateSignal.DataCheck: yes,no
    186173//
    187174// For more details see the class description and the corresponding Getters
     
    244231    MBadPixelsCam              badpix;
    245232
    246     MTask *extractor1=0;
    247     MTask *extractor2=0;
     233    MExtractor *extractor1=0;
     234    MExtractor *extractor2=0;
    248235    TString geom;
    249236
     
    281268    else
    282269        *fLog << inf << "No Camera geometry found using default <MGeomCamMagic>" << endl;
     270
     271    //
     272    // Switch off noise calculation
     273    //
     274    if (extractor1)
     275        extractor1->SetNoiseCalculation(kFALSE);
     276    if (extractor2)
     277        extractor2->SetNoiseCalculation(kFALSE);
    283278
    284279    // This is necessary for the case in which it is not in the files
     
    335330    MPedCalcFromLoGain     pedlo;
    336331    pedlo.SetPedestalUpdate(kTRUE);
    337     // FIXME: How to get the fixed value 15 automatically?
    338     const Float_t win = static_cast<MExtractor*>(extractor1)->GetNumHiGainSamples();
    339     pedlo.SetExtractWindow(15, (UShort_t)TMath::Nint(win));
     332
     333    if (extractor1)
     334    {
     335        // FIXME: How to get the fixed value 15 automatically?
     336        const Float_t win = extractor1->GetNumHiGainSamples();
     337        pedlo.SetExtractWindow(15, (UShort_t)TMath::Nint(win));
     338    }
    340339
    341340    MMcPedestalCopy        pcopy;
  • trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.h

    r5308 r5562  
    1313class MGeomCam;
    1414class MSequence;
     15class MExtractor;
    1516class MPedestalCam;
    1617class MBadPixelsCam;
     
    2526    Bool_t WriteResult();
    2627    Bool_t ReadCalibration(TObjArray &o, MBadPixelsCam &bpix,
    27                            MTask* &ext1, MTask* &ext2, TString &geom) const;
     28                           MExtractor* &ext1, MExtractor* &ext2, TString &geom) const;
    2829
    2930    Bool_t IsDataCheck() const { return fIsDataCheck; }
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.cc

    r5561 r5562  
    1717!
    1818!   Author(s): Thomas Bretz, 1/2004 <mailto:tbretz@astro.uni-wuerzburg.de>
    19 !             Markus Gaug, 02/2004 <mailto:markus@ifae.es>
     19!   Author(s): Markus Gaug, 02/2004 <mailto:markus@ifae.es>
    2020!
    2121!   Copyright: MAGIC Software Development, 2000-2004
Note: See TracChangeset for help on using the changeset viewer.