Changeset 6289 for trunk/MagicSoft


Ignore:
Timestamp:
02/08/05 11:56:02 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r6283 r6289  
    2020
    2121                                                 -*-*- END OF LINE -*-*-
     22
     23 2005/02/08 Thomas Bretz
     24
     25   * mpointing/MPointingPosInterpolate.cc:
     26     - use debug option in addition to switch off output from internal
     27       eventloop. It is confusing having this output inside another
     28       eventloop.
     29     - updated missing connections in class description
     30
     31
    2232
    2333 2005/02/07 Thomas Bretz
  • trunk/MagicSoft/Mars/mpointing/MPointingPosInterpolate.cc

    r6169 r6289  
    3232//
    3333//  Input Containers:
    34 //   MRawEvtData
     34//    MRawEvtData
     35//    MReportDrive
     36//    MTimeDrive
     37//    MTime
    3538//
    3639//  Output Containers:
    37 //   MPointingPos
     40//    MPointingPos
    3841//
    3942//
     
    104107{
    105108
    106     *fLog << endl << "["<< GetName()
    107           << "]: Loading report file \"" << fFilename << "\" into TSpline..." << endl;
     109    *fLog << inf << "Loading report file \"" << fFilename << "\" into TSpline..." << endl;
     110
     111    if (!fDebug)
     112        gLog.SetNullOutput();
    108113
    109114    //
     
    136141
    137142    if (!evtloop.PreProcess())
     143    {
     144        gLog.SetNullOutput(kFALSE);
    138145        return kFALSE;
     146    }
    139147
    140148    TArrayD reportTime(fNumStartEvents);
     
    172180        {
    173181            *fLog << warn <<"["<< GetName()
    174                 << "]: Warning: this report has the same time that the previous one...skipping it " << endl;
     182                << "]: Warning: this report has the same time that the previous one...skipping it " << endl;
    175183            continue;
    176184        }
     
    194202    tlist.PrintStatistics();
    195203
    196     *fLog << "["<< GetName() << "]: loaded " << n-1 << " ReportDrive from "
    197           << fFirstDriveTime << " to " << fLastDriveTime << endl << endl;
     204    gLog.SetNullOutput(kFALSE);
     205
     206    *fLog << inf << GetDescriptor() << ": loaded " << n-1 << " ReportDrive from "
     207          << fFirstDriveTime << " to " << fLastDriveTime << endl;
    198208
    199209    if (fDebug)
     
    222232        c->SaveAs("pointing.root");
    223233    }
     234
    224235    return kTRUE;
    225236}
     
    278289
    279290    //const Int_t run = fRunHeader->GetRunNumber();
    280   const MTime* StartRunTime = &fRunHeader->GetRunStart();
    281   Int_t time = StartRunTime->GetTime();
     291  const MTime &StartRunTime = fRunHeader->GetRunStart();
     292  Int_t time = StartRunTime.GetTime();
    282293
    283294   switch(fTimeMode)
    284295    {
    285296     case kRunTime:
    286          time = StartRunTime->GetTime();
    287 
    288297         //
    289298         // Check that we have drive report for this time
    290299         //
    291          if( *StartRunTime<fFirstDriveTime || *StartRunTime>fLastDriveTime)
     300         if( StartRunTime<fFirstDriveTime || StartRunTime>fLastDriveTime)
    292301         {
    293              *fLog << err << GetDescriptor() << ": Run time " << *StartRunTime
     302             *fLog << err << GetDescriptor() << ": Run time " << StartRunTime
    294303                   << " outside range of drive reports  (" << fFirstDriveTime
    295304                   << ", " << fLastDriveTime << ")" << endl;
     
    301310                   << fSplineZd->Eval( time )<< ", "  <<fSplineAz->Eval( time )<< ")" << endl;
    302311         }
    303     break;
     312         break;
    304313
    305314    case kEventTime:
    306         time = fEvtTime->GetTime();
    307 
    308315        if (fDebug)
    309316          {
     
    333340              }
    334341        }
    335     break;
     342        break;
    336343    }
    337344
     
    340347    //
    341348    //if( *StartRunTime<fFirstDriveTime || *StartRunTime>fLastDriveTime)
    342     if( *StartRunTime>fLastDriveTime)
    343     {
    344         *fLog << err << GetDescriptor() << ": Run time " << *StartRunTime
     349    if( StartRunTime>fLastDriveTime)
     350    {
     351        *fLog << err << GetDescriptor() << ": Run time " << StartRunTime
    345352              << " outside range of drive reports  (" << fFirstDriveTime
    346353              << ", " << fLastDriveTime << ")" << endl;
Note: See TracChangeset for help on using the changeset viewer.