Ignore:
Timestamp:
04/12/03 16:50:35 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mfileio
Files:
2 edited

Legend:

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

    r1936 r1952  
    708708    //  look for the HourAngle container in the plist
    709709    //
    710     fHourAngle = (MParameterD*)pList->FindCreateObj("MParameterD","HourAngle");
     710    fHourAngle = (MParameterD*)pList->FindCreateObj("MParameterD", "HourAngle");
    711711    if (!fHourAngle)
    712712        return kFALSE;
     
    716716    //  look for the ThetaOrig container in the plist
    717717    //
    718     fThetaOrig = (MParameterD*)pList->FindCreateObj("MParameterD","ThetaOrig");
     718    fThetaOrig = (MParameterD*)pList->FindCreateObj("MParameterD", "ThetaOrig");
    719719    if (!fThetaOrig)
    720720        return kFALSE;
     
    826826// Mars structures and data members
    827827//
    828 void MCT1ReadPreProc::ProcessEvent(const struct eventrecord &event)
     828Bool_t MCT1ReadPreProc::ProcessEvent(const struct eventrecord &event)
    829829{
    830830    /*
     
    912912    fThetaOrig->SetVal(theta);
    913913
    914     //*fLog << "Theta, smearedTheta = " << theta << ",  " << SmearTheta(theta)
    915     //      << endl;
     914    if (theta>TMath::Pi()/2)
     915        return kCONTINUE;
    916916
    917917    // store hour angle
     
    959959    fMcTrig->SetReadyToSave();
    960960    fMcEvt->SetReadyToSave();
     961
     962    return kTRUE;
    961963}
    962964
     
    10851087    fIn->read((Byte_t*)&event, sizeof(struct eventrecord));
    10861088
    1087     ProcessEvent(event);
     1089    switch (ProcessEvent(event))
     1090    {
     1091    case kFALSE:
     1092        return kFALSE;
     1093    case kCONTINUE:
     1094        return kCONTINUE;
     1095    }
    10881096
    10891097    fNumEvents++;
  • trunk/MagicSoft/Mars/mfileio/MCT1ReadPreProc.h

    r1899 r1952  
    6868    Bool_t CheckFilePosition();
    6969    void   ProcessRunHeader(const struct outputpars &outpars);
    70     void  ProcessEvent(const struct eventrecord &event);
     70    Bool_t ProcessEvent(const struct eventrecord &event);
    7171
    7272    Double_t SmearTheta(Double_t theta);
Note: See TracChangeset for help on using the changeset viewer.