Changeset 6838


Ignore:
Timestamp:
03/16/05 17:38:52 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r6831 r6838  
    2525   * callisto.cc:
    2626     - set changed extractor in MJCalibrateSignal from MJPedestal
     27      - don't process 'range finding' for MonteCarlo data
    2728
    2829   * callisto.rc:
     
    3132   * mjobs/MJCalibrateSignal.[h,cc]:
    3233     - removed obsolete flag for ModifiedExtractWin
     34     - allow also NULL for SetExtractor
     35     - rearanged the too MWriteRootFile instantiations otherwise
     36       callisto crashes in MWriteRootFile::ChangeFile
    3337
    3438   * mdata/MDataChain.cc:
  • trunk/MagicSoft/Mars/callisto.cc

    r6829 r6838  
    507507        job2.SetPathIn(kInpathY);
    508508        job2.SetDataType(kDataType);
    509         job2.SetPulsePosCheck();
     509        job2.SetPulsePosCheck(kDataType!=MJCalib::kIsUseMC);
    510510        job2.SetPathOut(kOutpathY); // for updating the extractor
    511511
     
    576576        job4.SetPathData(kInpathD);
    577577        job4.SetDataType(kDataType);
    578         job4.SetExtractor(*job2.GetExtractor());
     578        if (kDataType!=MJCalib::kIsUseMC)
     579            job4.SetExtractor(job2.GetExtractor());
    579580
    580581        // Where to search for calibration files
  • trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc

    r6828 r6838  
    140140}
    141141
    142 void MJCalibrateSignal::SetExtractor(const MExtractor &ext)
     142void MJCalibrateSignal::SetExtractor(const MExtractor *ext)
    143143{
    144144    if (fExtractor)
    145145        delete fExtractor;
    146146
    147     fExtractor = (MExtractor*)ext.Clone();
     147    fExtractor = ext ? (MExtractor*)ext->Clone() : NULL;
    148148}
    149149
     
    647647    MTaskEnv fillflorian("FinalFantasy");
    648648    fillflorian.SetDefault();
     649
     650    // Write the special MC tree
     651    MWriteRootFile writemc(2, fname, fOverwrite?"RECREATE":"NEW");
     652    writemc.SetName("WriteMC");
     653    writemc.AddContainer("MMcEvtBasic", "OriginalMC");
    649654
    650655    // The second rule is for the case reading raw-files!
     
    695700    write.AddContainer("MTimeCC",                   "CC",         kFALSE);
    696701
    697     // Write the special MC tree
    698     MWriteRootFile writemc(2, fname, fOverwrite?"RECREATE":"NEW");
    699     writemc.SetName("WriteMC");
    700     writemc.AddContainer("MMcEvtBasic", "OriginalMC");
    701 
    702702    // Now setup tasklist for events
    703703    MTaskList tlist2;
  • trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.h

    r6828 r6838  
    4747    void SetRelTimesUpdate ( const Bool_t b=kTRUE )  { fIsRelTimesUpdate  = b; }
    4848
    49     void SetExtractor(const MExtractor &ext);
     49    void SetExtractor(const MExtractor *ext=NULL);
    5050
    5151    ClassDef(MJCalibrateSignal, 0) // Tool to create a pedestal file (MPedestalCam)
  • trunk/MagicSoft/Mars/mjobs/MJPedestal.cc

    r6821 r6838  
    12731273            if (newlast+wshigain > data->GetNumHiGainSamples()+data->GetNumLoGainSamples()-1)
    12741274              {
    1275                 *fLog << err << "Pulse is too much to the right, cannot go beyond limits! "
    1276                       << " Cannot extract at all! ... " << endl;
     1275                *fLog << err << "Pulse is too much to the right, cannot go beyond limits! " << endl;
     1276                *fLog << " Cannot extract at all! ... " << endl;
    12771277                return kFALSE;
    12781278              }
    12791279            if (newlast+wslogain > data->GetNumLoGainSamples())
    12801280              {
    1281                 *fLog << err << "Pulse is too much to the right, cannot go beyond logaie limits! " << endl;
     1281                *fLog << err << "Pulse is too much to the right, cannot go beyond logain limits! " << endl;
    12821282                *fLog << endl;
    12831283                *fLog << "Try to use a different extractor (e.g. with a window size of only 4 sl.) or:" << endl;
Note: See TracChangeset for help on using the changeset viewer.