Changeset 17049 for branches/Mars_MC/mraw/MRawEvtData.cc
- Timestamp:
- 08/27/13 14:19:15 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Mars_MC/mraw/MRawEvtData.cc
r11870 r17049 114 114 // 115 115 MRawEvtData::MRawEvtData(const char *name, const char *title) 116 : fRunHeader(0), fNumBytesPerSample(1), f IsSigned(false)116 : fRunHeader(0), fNumBytesPerSample(1), fTriggerType(0), fIsSigned(false) 117 117 { 118 118 fName = name ? name : "MRawEvtData"; … … 359 359 360 360 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 } 361 381 362 382 fHiGainPixId = new MArrayS(numconnected);
Note:
See TracChangeset
for help on using the changeset viewer.