Changeset 4022 for trunk


Ignore:
Timestamp:
05/09/04 20:55:34 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r4020 r4022  
    3131   * Makefile.rules:
    3232     - added DYLIB to rmbin
     33
     34   * mraw/MRawEvtData.cc:
     35     - changed some output
     36
     37   * mraw/MRawEvtHeader.[h,cc]:
     38     - skip the rest of the header if the time is invalid. Otherwise
     39       merpps force-mode will corrupt the data when further processing
     40     - implemented GetNumBytes returning the size of the header
    3341
    3442
  • trunk/MagicSoft/Mars/mraw/MRawEvtData.cc

    r3800 r4022  
    438438    {
    439439        *fLog << err << "RawEvtData::AddPixel: Error, number of samples in ";
    440         *fLog << "TArrayC doesn't match actual number" << endl;
     440        *fLog << "TArrayC " << ns << " doesn't match current number " << nSamp << endl;
    441441        return;
    442442    }
  • trunk/MagicSoft/Mars/mraw/MRawEvtHeader.cc

    r3800 r4022  
    310310        if (!DecodeTime(abstime))
    311311        {
    312             *fLog << warn << "WARNING - Event time in event header invalid... abort." << endl;
     312            *fLog << warn << "WARNING - Event time in event header invalid..." << endl;
     313            // Skip the rest of the header in case of merpps force-mode
     314            fin.seekg(GetNumBytes()-12, ios::cur);
    313315            return kCONTINUE;
    314316        }
     
    335337void MRawEvtHeader::SkipEvt(istream &fin, UShort_t ver)
    336338{
    337     fin.seekg(36+fPixLoGainOn->GetSize(), ios::cur);
     339    fin.seekg(GetNumBytes(), ios::cur);
    338340}
    339341
     
    361363UInt_t MRawEvtHeader::GetTriggerID() const
    362364{
    363   UInt_t trigID=0;
    364 
    365   trigID = fTrigPattern[0];
    366 
    367   return trigID;
    368 }
     365    return fTrigPattern[0];
     366}
  • trunk/MagicSoft/Mars/mraw/MRawEvtHeader.h

    r3800 r4022  
    4747    Bool_t DecodeTime(UInt_t abstime[2]) const;
    4848
     49    Int_t GetNumBytes() const { return 36+fPixLoGainOn->GetSize(); }
     50
    4951public:
    5052    MRawEvtHeader(const char *name=NULL, const char *title=NULL);
Note: See TracChangeset for help on using the changeset viewer.