Changeset 9347 for trunk/MagicSoft/Mars/msimcamera
- Timestamp:
- 02/18/09 12:07:41 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/msimcamera
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msimcamera/MSimGeomCam.cc
r9342 r9347 37 37 // MPhotonEvent 38 38 // fNameGeomCam [MGeomCam] 39 // IntendedTrigPos [MParameterD]40 39 // MRawRunHeader 40 // [IntendedPulsePos [MParameterD]] 41 // [MPulseShape] 41 42 // 42 43 // Output Containers: … … 103 104 104 105 fPulse = (MPulseShape*)pList->FindObject("MPulseShape"); 106 /* 105 107 if (!fPulse) 106 108 { … … 108 110 return kFALSE; 109 111 } 110 112 */ 111 113 fPulsePos = (MParameterD*)pList->FindObject("IntendedPulsePos", "MParameterD"); 114 /* 112 115 if (!fPulsePos) 113 116 { … … 115 118 return kFALSE; 116 119 } 117 120 */ 118 121 fHeader = (MRawRunHeader*)pList->FindObject("MRawRunHeader"); 119 122 if (!fHeader) … … 168 171 169 172 // ------ FIXME: Move somewhere else? MSimCalibrationSignal ------ 170 173 /* 171 174 if (!fEvt->IsSorted()) 172 175 { 173 *fLog << err << "ERROR - M PhotonEvent must be sorted!" << endl;176 *fLog << err << "ERROR - MSimGeomCam: MPhotonEvent must be sorted!" << endl; 174 177 return kERROR; 175 178 } 176 179 */ 177 180 const Float_t freq = fHeader->GetFreqSampling()/1000.; 178 181 … … 185 188 186 189 // Length (ns), Pulse position (Units ns) 187 const Float_t pp = fPulsePos ->GetVal();188 const Float_t pw = fPulse ->GetPulseWidth();190 const Float_t pp = fPulsePos ? fPulsePos->GetVal() : 0; 191 const Float_t pw = fPulse ? fPulse->GetPulseWidth() : 0; 189 192 190 193 fStat->SetTimeMedDev(fEvt->GetTimeMedianDev()); -
trunk/MagicSoft/Mars/msimcamera/MSimSignalCam.cc
r9274 r9347 35 35 // MPhotonEvent 36 36 // MPhotonStatistics 37 // [TriggerPos [MParameterD]] 37 38 // 38 39 // Output Containers: … … 90 91 91 92 fTrigger = (MParameterD*)pList->FindObject("TriggerPos", "MParameterD"); 93 /* 92 94 if (!fTrigger) 93 95 { … … 95 97 return kFALSE; 96 98 } 97 99 */ 98 100 fSignal = (MSignalCam*)pList->FindCreateObj("MSignalCam"); 99 101 if (!fSignal) … … 111 113 { 112 114 const UInt_t npix = fSignal->GetNumPixels(); 115 116 if (npix==0) 117 { 118 *fLog << err << "ERROR - MSignalCam has 0 entries. Presumably MGeomApply::ReInit not done." << endl; 119 return kFALSE; 120 } 113 121 114 122 if (fCont.GetSize()!=npix) … … 163 171 // What about events with trigger<0? 164 172 const Float_t trig = fTrigger && fTrigger->GetVal()>=0 ? fTrigger->GetVal() : 0; 165 const Float_t first = fStat->GetTimeFirst()+trig /*+50+40*/;173 const Float_t first = fStat->GetTimeFirst()+trig; 166 174 167 175 // Loop over all pixels and set signal and arrival time.
Note:
See TracChangeset
for help on using the changeset viewer.