Changeset 17049 for branches


Ignore:
Timestamp:
08/27/13 14:19:15 (11 years ago)
Author:
ftemme
Message:
Added the variable MRawEvtData::fTriggerType, for writing the fitscolumn TriggerType in fitouput of ceres, the value of fTriggerType is calculated by using MRawRunHeader::GetRunType(). Maybe this variable should move to MRawEvtHeader
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Mars_MC/mraw/MRawEvtData.cc

    r11870 r17049  
    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);
Note: See TracChangeset for help on using the changeset viewer.