Changeset 9531
- Timestamp:
- 12/21/09 10:06:41 (15 years ago)
- Location:
- trunk/MagicSoft
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r9530 r9531 24 24 - allow unprescaled Calibration instead of requiring it (needed 25 25 for MCs) 26 - changed the default for "no pattern" so that events with file 27 format <5 are correctly treated. This might result in a small 28 bias in the case newer files miss the calibration pattern, but 29 that's unavoidable 30 31 * mtrigger/MTriggerPatternDecode.cc: 32 - decode trigger pattern for files older than format version 5 33 according to the file type 26 34 27 35 * resources/calibration_spline.rc: 28 36 - added dummy periods up to 89 37 38 * mmc/MMcFadcHeader.hxx: 39 - changed version to 10 (got a warning for newer MCs) 29 40 30 41 -
trunk/MagicSoft/Mars/mtrigger/MTriggerPatternDecode.cc
r9490 r9531 29 29 // Decodes the trigger pattern from MRawEvtData into MTriggerPattern. 30 30 // 31 // For files before file version 5 the trigger pattern is set to 00000000.32 // This can be changed using the information about the file-type.31 // For files before file version 5 the trigger pattern is set according 32 // to the file type 33 33 // 34 34 // For more details see: MTriggerPattern … … 70 70 Int_t MTriggerPatternDecode::PreProcess(MParList *pList) 71 71 { 72 fRunHeader = (MRawRunHeader*)pList->Find CreateObj("MRawRunHeader");72 fRunHeader = (MRawRunHeader*)pList->FindObject("MRawRunHeader"); 73 73 if (!fRunHeader) 74 74 { … … 77 77 } 78 78 79 fEvtHeader = (MRawEvtHeader 79 fEvtHeader = (MRawEvtHeader*)pList->FindObject("MRawEvtHeader"); 80 80 if (!fEvtHeader) 81 81 { … … 86 86 fPattern = (MTriggerPattern*)pList->FindCreateObj("MTriggerPattern"); 87 87 if (!fPattern) 88 {89 *fLog << err << "MRawEvtHeader not found... abort." << endl;90 88 return kFALSE; 91 }92 89 93 90 return kTRUE; … … 96 93 // -------------------------------------------------------------------------- 97 94 // 98 // For files before file version 5 the trigger pattern is set to 00000000.99 // This can be changed using the information about the file-type.100 95 // 101 96 Int_t MTriggerPatternDecode::Process() 102 97 { 103 // No setting necessary because MTriggerPattern::reset() has104 // been called just before105 98 if (fRunHeader->GetFormatVersion()<5) 99 { 100 switch (fRunHeader->GetRunType()&0xff) 101 { 102 case MRawRunHeader::kRTData: 103 fPattern->fPrescaled = MTriggerPattern::kTriggerLvl1; 104 fPattern->fUnprescaled = MTriggerPattern::kTriggerLvl1; 105 return kTRUE; 106 107 case MRawRunHeader::kRTPedestal: 108 fPattern->fPrescaled = MTriggerPattern::kPedestal; 109 fPattern->fUnprescaled = MTriggerPattern::kPedestal; 110 return kTRUE; 111 112 case MRawRunHeader::kRTCalibration: 113 fPattern->fPrescaled = MTriggerPattern::kCalibration; 114 fPattern->fUnprescaled = MTriggerPattern::kCalibration; 115 return kTRUE; 116 } 106 117 return kTRUE; 118 } 107 119 108 120 const UInt_t pattern = ~fEvtHeader->GetTriggerID(); -
trunk/MagicSoft/include-Classes/MMcFormat/MMcFadcHeader.hxx
r8325 r9531 133 133 void DrawPixelContent(Int_t num) const { } 134 134 135 ClassDef(MMcFadcHeader, 9) //Stores Montecarlo Information describing the FADC behaviour135 ClassDef(MMcFadcHeader, 10) //Stores Montecarlo Information describing the FADC behaviour 136 136 }; 137 137
Note:
See TracChangeset
for help on using the changeset viewer.