Changeset 5069 for trunk/MagicSoft/Mars/mtemp/mifae/programs
- Timestamp:
- 09/16/04 16:06:56 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/mifae/programs/calib.cc
r4394 r5069 178 178 Float_t meanSigma[577]; 179 179 Float_t meanFADC2Phe[577]; 180 Float_t meanFADC2Phe_error[577]; 180 181 Float_t meanFADCtoPh[577]; 181 182 Float_t prob[577]; … … 192 193 meanSigma[i] = calpix.GetSigma(); 193 194 meanFADC2Phe[i]=calpix.GetMeanConvFADC2Phe(); 195 meanFADC2Phe_error[i]=calpix.GetMeanConvFADC2PheErr(); 194 196 meanFADCtoPh[i]=calpix.GetMeanConvFADC2Phe()/qepix.GetQECascadesFFactor(0); 195 197 prob[i]=calpix.GetProb(); 196 fout << i << '\t' << meanCharge[i] << '\t' << meanSigma[i]<< '\t' << meanFADC2Phe[i]<< '\t' << meanFADCtoPh[i]<< '\t' <<prob[i]<< '\t' <<(Int_t)calpix.IsHiGainSaturation()<<endl;198 fout << i << '\t' << meanCharge[i] << '\t' << meanSigma[i]<< '\t' << meanFADC2Phe[i]<< '\t' << meanFADC2Phe_error[i]<< '\t' <<meanFADCtoPh[i]<< '\t' <<prob[i]<< '\t' <<(Int_t)calpix.IsHiGainSaturation()<< '\t' <<(Int_t)calpix.IsFFactorMethodValid()<<endl; 197 199 } 198 200 199 201 fout.close(); 200 202 203 /*****************************************************/ 204 /* THIRD LOOP: Q in fadc event by event CALIBRATION */ 205 /*****************************************************/ 206 207 MParList plist4; 208 MTaskList tlist4; 209 plist4.AddToList(&tlist4); 210 211 // containers 212 213 MCerPhotEvt nphot; 214 plist4.AddToList(&geomcam); 215 plist4.AddToList(&pedloop.GetPedestalCam()); 216 plist4.AddToList(&nphot); 217 218 //tasks 219 MReadMarsFile read4("Events"); 220 static_cast<MRead&>(read4).AddFiles(caliter); 221 read4.DisableAutoScheme(); 222 223 MCalibrate::CalibrationMode_t calMode=MCalibrate::kNone; 224 225 MCalibrate photcalc(calMode); 226 227 tlist4.AddToList(&read4); 228 tlist4.AddToList(&geomapl); 229 tlist4.AddToList(&extractor); 230 tlist4.AddToList(&photcalc); 231 232 // Create and setup the eventloop 233 MEvtLoop datloop; 234 datloop.SetParList(&plist4); 235 236 // if (!datloop.Eventloop(nmaxevents)) 237 // return; 238 outname+="_evt"; 239 240 datloop.PreProcess(); 241 242 fout.open(outname); 243 while(tlist4.Process()) 244 { 245 for(int i=0;i<577;i++) 246 fout<<nphot[i].GetNumPhotons()<<" "; 247 fout<<endl; 248 } 249 fout.close(); 250 datloop.PostProcess(); 201 251 return; 202 252
Note:
See TracChangeset
for help on using the changeset viewer.