Changeset 17148 for trunk/Mars/mraw


Ignore:
Timestamp:
09/09/13 12:39:18 (11 years ago)
Author:
ftemme
Message:
Merging changes from the MC branch in the trunk
Location:
trunk/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars

  • trunk/Mars/mraw/MRawEvtData.cc

    r11870 r17148  
    114114//
    115115MRawEvtData::MRawEvtData(const char *name, const char *title)
    116     : fRunHeader(0), fNumBytesPerSample(1), fIsSigned(false)
     116    : fRunHeader(0), fNumBytesPerSample(1), fTriggerType(0), fIsSigned(false)
    117117{
    118118    fName  = name  ? name  : "MRawEvtData";
     
    359359
    360360    fNumBytesPerSample = fRunHeader ? fRunHeader->GetNumBytesPerSample() : 1;
     361
     362
     363    if (fRunHeader == 0)
     364    {
     365        fTriggerType = 0x0000;
     366    }
     367    else
     368    {
     369        switch(fRunHeader->GetRunType())
     370        {
     371        case MRawRunHeader::kRTMonteCarlo|MRawRunHeader::kRTData:
     372            fTriggerType = 0x0004; break;
     373        case MRawRunHeader::kRTMonteCarlo|MRawRunHeader::kRTPedestal:
     374            fTriggerType = 0x0400; break;
     375        case MRawRunHeader::kRTMonteCarlo|MRawRunHeader::kRTCalibration:
     376            fTriggerType = 0x0164; break;
     377        default:
     378            fTriggerType = 0x0000; break;
     379        }
     380    }
    361381
    362382    fHiGainPixId       = new MArrayS(numconnected);
  • trunk/Mars/mraw/MRawEvtData.h

    r14870 r17148  
    1212//class ifstream;
    1313#include <iosfwd>
     14#include <stdint.h>
    1415
    1516class MRawRunHeader;
     
    3637
    3738    MArrayB *fABFlags;            //-> A information about the exact trigger position
    38     MArrayS *fStartCells;         //
     39    MArrayS *fStartCells;         // {fits: unit=uint16 ; name=StartCellData }
     40
     41    UShort_t fTriggerType;       // {fits: unit=uint16 ; name=TriggerType }
    3942
    4043    UShort_t fNumBytesPerSample;
  • trunk/Mars/mraw/MRawEvtHeader.h

    r14792 r17148  
    5353    MTime   *fTime;            //! object to store the time in (ReadEvt)
    5454
    55     UInt_t   fDAQEvtNumber;    // Number of Event [fits: name=EventNum]
     55    UInt_t   fDAQEvtNumber;    // Number of Event {fits: name=EventNum ; unit=uint32}
    5656
    5757    UInt_t   fNumTrigLvl1;     // Number of 1st level tiggers between 2 events
Note: See TracChangeset for help on using the changeset viewer.