Ignore:
Timestamp:
03/16/05 17:38:52 (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

    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.