Changeset 9317 for trunk/MagicSoft/Mars/msimcamera
- Timestamp:
- 02/11/09 12:36:28 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msimcamera/MSimCalibrationSignal.cc
r9306 r9317 160 160 Bool_t MSimCalibrationSignal::CallReInit() 161 161 { 162 if (GetNumExecutions() >0)162 if (GetNumExecutions()!=1) 163 163 return kTRUE; 164 164 … … 170 170 } 171 171 172 fRunHeader->SetReadyToSave(); 173 172 174 return tlist->ReInit(fParList); 173 175 } … … 190 192 for (UInt_t idx=0; idx<fGeom->GetNumPixels(); idx++) 191 193 { 194 const Int_t num = TMath::Nint(gRandom->Gaus(fNumPhotons, fNumPhotons/10)); 195 192 196 // FIXME: How does the distribution look like? Poissonian? 193 for ( UInt_t i=0; i<fNumPhotons; i++)197 for (Int_t i=0; i<num; i++) 194 198 { 195 199 MPhotonData &ph = fEvt->Add(cnt++); … … 212 216 // -------------------- MSimGeomCam --------------------- 213 217 218 // =====> Move to MSimReadoutWindow ? 219 214 220 const Double_t freq = fRunHeader->GetFreqSampling()/1000.; 215 221 … … 230 236 231 237 // FIXME: Jitter! (Own class?) 232 fTrigger->SetVal( pp*freq);238 fTrigger->SetVal((pp+pw)*freq); 233 239 fTrigger->SetReadyToSave(); 234 240 … … 236 242 const UInt_t p = fRunHeader->IsCalibrationRun() ? MTriggerPattern::kCalibration : MTriggerPattern::kPedestal; 237 243 fEvtHeader->SetTriggerPattern(~(p | (p<<8))); 244 fEvtHeader->SetCalibrationPattern(0/*BIT(16)<<16*/); // CT1 Pulser, see MCalibrationPatternDecode 238 245 fEvtHeader->SetReadyToSave(); 239 246
Note:
See TracChangeset
for help on using the changeset viewer.