Changeset 1848


Ignore:
Timestamp:
03/21/03 09:12:32 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mfileio/MCT1ReadPreProc.cc

    r1845 r1848  
    457457    ProcessRunHeader(outpars);
    458458
    459 
    460459    //rwagner: ReInit whenever new run commences
    461460    // rc==-1 means: ReInit didn't work out
    462461
    463     if (!fTaskList->ReInit(fParList))
     462    MTaskList *tlist = (MTaskList*)fParList->FindCreateObj("MTaskList");
     463    if (!tlist)
     464        return -1;
     465
     466    if (!tlist->ReInit(fParList))
    464467        return -1;
    465468
     
    764767        return kFALSE;
    765768
    766     //
    767     //  look for the task list
    768     //
    769     fTaskList = (MTaskList*)pList->FindCreateObj("MTaskList");
    770     if (!fTaskList)
    771         return kFALSE;
    772 
    773 
    774769    fNumFilterEvts = 0;
    775770    fNumEvents     = 0;
     
    788783void MCT1ReadPreProc::ProcessEvent(const struct eventrecord &event)
    789784{
    790   if (fRawRunHeader->GetRunNumber() == 1)
    791   {
    792   *fLog << "eventrecord" << endl;
    793   *fLog << "isecs_since_midday = " << event.isecs_since_midday << endl;
    794   *fLog << "isecfrac_200ns     = " << event.isecfrac_200ns << endl;
    795   *fLog << "snot_ok_flags      = " << event.snot_ok_flags << endl;
    796   *fLog << "ialt_arcs          = " << event.ialt_arcs << endl;
    797   *fLog << "iaz_arcs           = " << event.iaz_arcs << endl;
    798   *fLog << "ipreproc_alt_arcs  = " << event.ipreproc_alt_arcs << endl;
    799   *fLog << "ipreproc_az_arcs   = " << event.ipreproc_az_arcs << endl;
    800   *fLog << "ifieldrot_arcs     = " << event.ifieldrot_arcs << endl;
    801 
    802   *fLog << "srate_millihz      = " << event.srate_millihz << endl;
    803   *fLog << "fhourangle         = " << event.fhourangle << endl;
    804   *fLog << "fmcenergy_tev      = " << event.fmcenergy_tev << endl;
    805   *fLog << "fmcsize_phel       = " << event.fmcsize_phel << endl;
    806   *fLog << "imcimpact_m        = " << event.imcimpact_m << endl;
    807   *fLog << "imcparticle        = " << event.imcparticle << endl;
    808   *fLog << "imctriggerflag     = " << event.imctriggerflag << endl;
    809   } 
    810 
     785    /*
     786    if (fRawRunHeader->GetRunNumber() == 1)
     787    {
     788        *fLog << "eventrecord" << endl;
     789        *fLog << "isecs_since_midday = " << event.isecs_since_midday << endl;
     790        *fLog << "isecfrac_200ns     = " << event.isecfrac_200ns << endl;
     791        *fLog << "snot_ok_flags      = " << event.snot_ok_flags << endl;
     792        *fLog << "ialt_arcs          = " << event.ialt_arcs << endl;
     793        *fLog << "iaz_arcs           = " << event.iaz_arcs << endl;
     794        *fLog << "ipreproc_alt_arcs  = " << event.ipreproc_alt_arcs << endl;
     795        *fLog << "ipreproc_az_arcs   = " << event.ipreproc_az_arcs << endl;
     796        *fLog << "ifieldrot_arcs     = " << event.ifieldrot_arcs << endl;
     797
     798        *fLog << "srate_millihz      = " << event.srate_millihz << endl;
     799        *fLog << "fhourangle         = " << event.fhourangle << endl;
     800        *fLog << "fmcenergy_tev      = " << event.fmcenergy_tev << endl;
     801        *fLog << "fmcsize_phel       = " << event.fmcsize_phel << endl;
     802        *fLog << "imcimpact_m        = " << event.imcimpact_m << endl;
     803        *fLog << "imcparticle        = " << event.imcparticle << endl;
     804        *fLog << "imctriggerflag     = " << event.imctriggerflag << endl;
     805    }
     806    */
    811807
    812808    for (Int_t i=0; i<iMAXNUMPIX; i++)
Note: See TracChangeset for help on using the changeset viewer.